cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while flashing the code through NUCLEO-L053R8 SWD.

Kumar Chaya
Associate II

Hello,

I'm having problem in ST-Link getting flash. While I'm trying to flash through Raspberry pi linux version.

We are developing QR code application and I have a python script to flash to the MCU, the oython script access the directory which has a .hex file, which needs to be flashed. While flashing the following errors..

Scan QR code to start :

2020-09-11 16:14:38- QR Code Entered:

2020-09-11 16:14:38- Flashing MCU with /home/pi/haxiot/hw-production/iem/hxc-iem-v00_23.hex

2020-09-11 16:15:00- STDERR:

2020-09-11T16:14:54 INFO common.c: Loading device parameters....

2020-09-11T16:14:57 ERROR common.c: Failed to read core_id

2020-09-11T16:15:00 WARN common.c: unknown chip id! 0x146a158

2020-09-11 16:15:00- STDOUT:

st-flash 1.5.1-31-g625f4cd

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_GET_CURRENT_MODE

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_GET_CURRENT_MODE

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_DEBUG_ENTER

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_GET_VERSION

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_DEBUG_RESETSYS

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_DEBUG_READCOREID

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_JTAG_READDEBUG_32BIT

2020-09-11 16:15:01- Resetting through ST-Link

2020-09-11 16:15:22- st-flash 1.5.1-31-g625f4cd

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_GET_CURRENT_MODE

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_GET_CURRENT_MODE

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_DEBUG_ENTER

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_GET_VERSION

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_DEBUG_RESETSYS

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_DEBUG_READCOREID

[!] send_recv send request failed: LIBUSB_ERROR_TIMEOUT

[!] send_recv STLINK_JTAG_READDEBUG_32BIT

2020-09-11 16:15:22- Reset complete.

2020-09-11 16:15:23-

*************Results**********************

QR code:

EUI:

Result:FAILED

Reason:Could not flash mcu

Any suggestions on how to overcome this issue?

Thank you

0 REPLIES 0