boards/tracker-t1000-e.json set the application's usb_product to "T1000-E-BOOT". PlatformIO's nordicnrf52 builder turns that key into -DUSB_PRODUCT, which lands in the USB device descriptor, so a running node enumerates as "T1000-E-BOOT" while the Seeed bootloader enumerates as "T1000-E". The firmware that is not the bootloader is the one wearing the bootloader's name. That misidentification is load-bearing in the web flasher. flasher.meshcore.io calls navigator.serial.requestPort() with no filters, so the row label in the browser's port chooser -- which the browser builds from the USB iProduct string -- is the only signal the user has. The nRF52 flow prompts twice, once for the 1200-baud DFU touch and again for the flash itself, with no re-enumeration watcher in between, and at that second prompt the two candidate rows read: T1000-E-BOOT (239a:8029) <- the application T1000-E (2886:0057) <- the actual bootloader which is backwards at the moment the user has to tell them apart. The same define is also the Adafruit core's CFG_DEFAULT_NAME, so it is what a companion advertises over BLE whenever the intended name is too long for the GAP device-name attribute and setName() silently fails (#1769). The string is user-visible over Bluetooth as well. Name the application after the firmware it runs rather than after the board. This deliberately differs from the hardware-name convention in the other nRF52 board files ("WisCore RAK4631 Board", "Seeed Wio Tracker L1") because the string's job here is to distinguish the running application from a bootloader that will never claim to be MeshCore; "Seeed T1000-E" would sit one word away from the bootloader's "T1000-E". Upload and flashing are unaffected -- PlatformIO's port autodetect matches on hwids (VID:PID), not on this string. On Linux the /dev/serial/by-id symlink does change, from usb-Seeed_Studio_T1000-E-BOOT_<serial>-if00 to usb-Seeed_Studio_MeshCore_T1000-E_<serial>-if00, so anything pinned to the old path needs updating.
60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
"build": {
|
|
"arduino": {
|
|
"ldscript": "nrf52840_s140_v7.ld"
|
|
},
|
|
"core": "nRF5",
|
|
"cpu": "cortex-m4",
|
|
"extra_flags": "-DARDUINO_WIO_WM1110 -DNRF52840_XXAA",
|
|
"f_cpu": "64000000L",
|
|
"hwids": [
|
|
["0x239A", "0x8029"],
|
|
["0x239A", "0x0029"],
|
|
["0x239A", "0x002A"],
|
|
["0x239A", "0x802A"]
|
|
],
|
|
"usb_product": "MeshCore T1000-E",
|
|
"mcu": "nrf52840",
|
|
"variant": "Seeed_T1000-E",
|
|
"bsp": {
|
|
"name": "adafruit"
|
|
},
|
|
"softdevice": {
|
|
"sd_flags": "-DS140",
|
|
"sd_name": "s140",
|
|
"sd_version": "7.3.0",
|
|
"sd_fwid": "0x0123"
|
|
},
|
|
"bootloader": {
|
|
"settings_addr": "0xFF000"
|
|
}
|
|
},
|
|
"connectivity": ["bluetooth"],
|
|
"debug": {
|
|
"jlink_device": "nRF52840_xxAA",
|
|
"svd_path": "nrf52840.svd",
|
|
"openocd_target": "nrf52.cfg"
|
|
},
|
|
"frameworks": ["arduino"],
|
|
"name": "Seeed T1000-E",
|
|
"upload": {
|
|
"maximum_ram_size": 235520,
|
|
"maximum_size": 811008,
|
|
"speed": 115200,
|
|
"protocol": "nrfutil",
|
|
"protocols": [
|
|
"jlink",
|
|
"nrfjprog",
|
|
"nrfutil",
|
|
"stlink",
|
|
"cmsis-dap",
|
|
"blackmagic"
|
|
],
|
|
"use_1200bps_touch": true,
|
|
"require_upload_port": true,
|
|
"wait_for_upload_port": true
|
|
},
|
|
"url": "https://www.seeedstudio.com/SenseCAP-Card-Tracker-T1000-E-for-Meshtastic-p-5913.html",
|
|
"vendor": "Seeed Studio"
|
|
}
|