Trying to update to version notecard-wl-7.4.2.16888 from notecard-wl-7.2.2.16518. It states that I have to use manual method with programmer.
When I enter the bootloader command nothing happens, and the unit is unresponsive.
I am on windows and the com port does not change to DFU mode.
I have note carrier B 2.1 so I can’t force it into boot loader mode.
What am I doing wrong?
Mike
1 Like
Hey Mike,
Sorry you ran into issues here. You’re correct that you have to manually update via STM32CubeProgrammer.
Are you running the bootloader
command from the In-Browser Terminal or from a different serial terminal emulator? After you run the command does the device disconnect, or does just nothing happen?
When flashing the firmware have you tried the CLI yet? I’ve found that I get better error messages from the STM32CubeProgrammer CLI then their GUI. It might give us a hint at what’s up here. Notecard Firmware Updates - Blues Developers
TJ
I’m using the In-Browser Terminal when I enter the command. From there nothing happens, just the serial interface stops responding. I am able to input commands but get no response.
Mike
Ok a couple of more questions.
-
Were you able to communicate with your Notecard from the In-Browser Terminal before? (aka have you successfully used this Notecard before trying to upgrade its firmware)
-
Have you tried power cycling the device and then tried to run bootloader
again?
-
If you’re using the CubeProgrammer GUI, can you check if you need to switch from USB to UART (with appropriate baud, parity, etc.) in CubeProgrammer when looking for your device? Notecard Firmware Updates - Blues Developers
You’re correct that there’s no physical way to put the Notecard in BOOT mode from the Notecarrier B, but you shouldn’t need to so hopefully we can figure out what’s up.
TJ
Yes, the notecard lora is connected and working just fine.
It’s just the firmware update process that doesn’t seem to work.
Looking at the windows device manager I see the serial port and when I run the bootloader command the serial device does not disappear and I am unable to talk to the device.
Only after unplugging and replunging can I again talk to the device.
Seems to me I updated the firmware before, but I think I just did it from the terminal session.
Mike
Yes, I did do an update before but not using this method. You help me with a bug in the API verify command Verify not working.
Mike
Ok, The instructions don’t match the effort.
After entering the bootloader command and disconnecting the usb port.
In CubeProgrammer I select Uart and connect and it returns the following:
10:34:51 : STM32CubeProgrammer API v2.17.0 | Windows-64Bits
10:35:02 : UR connection mode is defined with the HWrst reset mode
10:35:02 : RTS low
10:35:02 : DTR low
10:35:02 : Serial Port COM4 is successfully opened.
10:35:02 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
10:35:07 : Timeout error occured while waiting for acknowledgement.
10:35:07 : Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again...
10:36:15 : UR connection mode is defined with the HWrst reset mode
10:36:15 : RTS low
10:36:15 : DTR low
10:36:15 : Serial Port COM4 is successfully opened.
10:36:15 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
10:36:15 : Activating device: OK
10:36:15 : Board : --
10:36:15 : Chip ID: 0x497
10:36:15 : BootLoader protocol version: 3.3
10:36:18 : UPLOADING OPTION BYTES DATA ...
10:36:18 : Bank : 0x00
10:36:18 : Address : 0x1fff7800
10:36:18 : Size : 104 Bytes
10:36:18 : UPLOADING ...
10:36:18 : Size : 1024 Bytes
10:36:18 : Address : 0x8000000
10:36:18 : Read progress:
10:36:19 : Data read successfully
10:36:19 : Time elapsed during the read operation is: 00:00:01.151
10:39:09 : Memory Programming ...
10:39:09 : Opening and parsing file: notecard-wl-7.4.2.16888$20240827231908.bin
10:39:09 : File : notecard-wl-7.4.2.16888$20240827231908.bin
10:39:09 : Size : 206.71 KB
10:39:09 : Address : 0x08000000
10:39:09 : Erasing memory corresponding to segment 0:
10:39:09 : Erasing internal memory sectors [0 103]
10:39:11 : Download in Progress:
10:39:42 : File download complete
10:39:42 : Time elapsed during download operation: 00:00:32.691
10:39:42 : Verifying ...
10:39:42 : Read progress:
10:40:10 : Download verified successfully
10:40:10 : RUNNING Program ...
10:40:10 : Address: : 0x08000000
10:40:10 : Start operation achieved successfully
10:40:12 : Error: GETID command not acknowledged!
10:40:12 : Reemission of GetID command
10:40:13 : Timeout error occured while waiting for acknowledgement.
10:40:13 : Error: GETID command not acknowledged!
10:40:13 : Reemission of GetID command
10:40:14 : Timeout error occured while waiting for acknowledgement.
10:40:14 : Error: GETID command not acknowledged!
10:40:15 : Timeout error occured while waiting for acknowledgement.
10:40:15 : Error: GETID command not acknowledged!
10:40:16 : Reemission of GetID command
10:40:17 : Timeout error occured while waiting for acknowledgement.
10:40:17 : Error: GETID command not acknowledged!
10:40:17 : Reemission of GetID command
10:40:17 : Error: GETID command not acknowledged!
10:40:17 : Error: GETID command not acknowledged!
10:40:17 : Reemission of GetID command
10:40:17 : Error: GETID command not acknowledged!
10:40:17 : Reemission of GetID command
10:40:17 : Error: GETID command not acknowledged!
10:40:17 : Warning: Connection to device 0x497 is lost
10:40:18 : Disconnected from device.
I was then able to load the new firmware using the rest of the instructions.
{
"device": "dev:0080e11500088001",
"name": "Blues Wireless Notecard",
"board": "3",
"version": "notecard-wl-7.4.2.16888",
"sku": "NOTE-LWUS",
"ordering_code": "LZ0WZ0N0ZZBD",
"lora": true,
"body": {
"org": "Blues Wireless",
"product": "Notecard",
"target": "wl",
"version": "notecard-wl-7.4.2",
"ver_major": 7,
"ver_minor": 4,
"ver_patch": 2,
"ver_build": 16888,
"built": "Aug 27 2024 19:08:01"
}
}
~ DeviceUID dev:0080e11500088001 (NOTE-LWUS) running firmware wl-7.4.2.16888
Mike
3 Likes