Closed wojciiii closed 4 years ago
So we're generating:
/local/mcu/zephyrproject/sdk/zephyr-sdk-0.11.3-beta/sysroots/x86_64-pokysdk-linux/usr/bin/openocd -s /local/mcu/zephyrproject/zephyr/boards/arm/nucleo_wb55rg/support -s /local/mcu/zephyrproject/sdk/zephyr-sdk-0.11.3-beta/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts '-c set _ZEPHYR_BOARD_SERIAL 066DFF545057717867195937' -f /local/mcu/zephyrproject/zephyr/boards/arm/nucleo_wb55rg/support/openocd.cfg -c init -c targets -c 'reset halt' -c 'flash write_image erase /local/mcu/zephyrproject/zephyr/samples/hello_world/build/nucleo_wb55rg/zephyr/zephyr.hex' -c 'reset halt' -c 'verify_image /local/mcu/zephyrproject/zephyr/samples/hello_world/build/nucleo_wb55rg/zephyr/zephyr.hex' -c 'reset run' -c shutdown
I'm not sure if set _ZEPHYR_BOARD_SERIAL 066DFF545057717867195937
is expected, but hla_serial 066DFF545057717867195937
should work..
We should check how to get that.
So for some reason, the following command doesn't work:
west flash -d build/nucleo_wb55rg/ -r openocd --serial 066EFF3832394D3457191438
But this one does:
west flash -d build/nucleo_wb55rg/ -r openocd --cmd-pre-init 'hla_serial 066DFF545057717867195937'
Reading --serial
helper: selects FTDI instance by its serial number, defaults to empty
.
So it looks like --serial
is specific to some probe manufacturer and this makes this option restricted to ARC devices.
For STM32, the above working command is advised.
@wojciiii can you have a test and close the point if satisfied?
Thank you. This works as expected and solves my current problem.
Perhaps this should be noted somewhere in the documentation. I was clearly mislead by reading the documentation since I assumed that --serial would be enough to identify the device that I wanted to flash. :)
See my previous comment.
Describe the bug
I have two "nucleo_wb55rg" boards attached.
# west flash -r openocd --serial 0670FF363931594E43053025
flashes the board with serial 0670FF3837334D4E43065316.
To Reproduce Steps to reproduce the behaviour:
Expected behaviour When I provide the --serial option to west/openocd command I expect only the board with the provided to be flashed.
Impact I have no way of choosing which board to flash when multiple boards are flashing when working remote. This is annoying.
Logs and console output
Environment (please complete the following information):
Additional context N/A