cancel
Showing results for 
Search instead for 
Did you mean: 

After flashing ST67W61 with t01, you can not re-flash the module

Nkh
Associate II

We have several custom boards with ST67W61 modules. If we flash the device with t02, per instructions on wiki,  we are able to successfully communicate with these devices and also re-flash them if need be. So far so good.

However if the device is flashed with t01 it is no longer flashable or even usable unless you do a full chip erase. I'm mentioning this here in case other people run into this problem.

QConn_Flash\QConn_Flash_Cmd.exe --port COMxx --erase --whole_chip

 

Note that this issue only occurs with t01 binaries and not with t02. 

D:\temp\x-cube-st67w61-main\Projects\ST67W6X_Scripts\Binaries>QConn_Flash\QConn_Flash_Cmd.exe --port COM38 --config NCP_Binaries\mission_t02_flash_prog_cfg.ini --efuse=NCP_Binaries\efusedata.bin
[08:14:13.300] - Serial port is COM38
[08:14:13.300] - ==================================================
[08:14:13.300] - FW get address from partiton file D:\temp\x-cube-st67w61-main\Projects\ST67W6X_Scripts\Binaries\NCP_Binaries\./partition.bin
[08:14:13.300] - Address=0x10000
[08:14:13.300] - FW get size from partiton file D:\temp\x-cube-st67w61-main\Projects\ST67W6X_Scripts\Binaries\NCP_Binaries\./partition.bin
[08:14:13.300] - Size=1785856
[08:14:13.300] - Program Start
[08:14:13.300] - ========= eflash loader cmd arguments =========
[08:14:13.318] - serial port is COM38
[08:14:13.318] - cpu_reset=False
[08:14:13.475] - com speed: 2000000
[08:14:13.475] - ========= Interface is uart =========
[08:14:13.475] - Bootrom load
[08:14:13.475] - ========= get_boot_info =========
[08:14:13.475] - ========= image get bootinfo =========
[08:14:13.746] - tx rx and power off, press the machine!
[08:14:13.746] - cutoff time is 0.05
[08:14:13.810] - power on tx and rx
[08:14:14.826] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[08:14:14.826] - clean buf
[08:14:14.826] - send sync
[08:14:15.048] - ack is b'c127bd414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141054141414141414141410541414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141414141a541414141a741c14141a541c141414141e14141a741c141414141c14141a541414141414141e14141a741e14141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141c14141a541414141a54141a741414141a74141a741e14141a741c14141e14141a741414141e141414141a14141a741414141414141414141a541414141e141414141a141414141e14141a741c14141a541414141a14141a741414141e14141a54141a74141a741c14141a741e14141a741e141414141a14141a541c14141a741414141c14141a1414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141054141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141410541414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141054141414141414141414141414141414141414141414141414141414141414141414141414141410541414141414141414141414141414141410541414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141c1'
[08:14:15.048] - reshake
[08:14:15.319] - tx rx and power off, press the machine!
[08:14:15.319] - cutoff time is 0.05
[08:14:15.383] - power on tx and rx
[08:14:16.399] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[08:14:16.400] - clean buf
[08:14:16.401] - send sync
[08:14:16.428] - ack is b'a7754141a741a1a14141414141414141414141414141414141414105414141054141414141414141414141414141410541414141414141414141414141414141414141414105414141054141414141414141414141414141414141414141414141414141414141414141414141414141414141414105414141054141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141410541414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141410541414141414141054141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141054141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141410541414141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141410541414141414141414141414141414141414141414105414141414141414141414141414141414141410541414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141410541414141414141414105414141414141414141414141414141414141414141414141410541414141414141414141414141414141410541414141414141414141414141414141414141054141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141054141414141414141414141414141414141414141414141414141414141414141414141414141414141414141'
[08:14:16.428] - reshake
[08:14:16.702] - tx rx and power off, press the machine!
[08:14:16.702] - cutoff time is 0.05
[08:14:16.766] - power on tx and rx
[08:14:17.785] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[08:14:17.785] - clean buf
[08:14:17.785] - send sync
[08:14:17.802] - ack is b'c11505414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141054141414141414141410541414141414141414141414141414141414141414141414141414141414141054141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141054141414141414141414141414141414141054141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414105414141414141414141414105414141414141414141414141414141414141414141414105414141414141414141414141414141414141410541414141414141414141414141414141414141414141414141414141410541414141414141414141414141414141414141414141414141414105414141414141414141414141410541414141414141414141414141414141414141414141414141414141410541414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141054141414141414141414141414141414141054141414141414141414141414141414141414141414141414141414141414141414141414141414141054141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141054141414141414141414141414141414141414141414141414141414141054141410541414141414141054141410541414141414141414141414141414141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141410541414141414141414141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141414141410541414141414141414141414141414141414141414141414141414141414141414141414141414141414141414105414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141c1'
[08:14:17.802] - reshake
[08:14:17.818] - shake hand fail
[08:14:17.818] - shake hand fail
[08:14:17.818] - ========= ChipID:  =========
[08:14:17.818] - Get bootinfo time cost(ms): 4342.48828125
[08:14:17.818] - {"ErrorCode": "0050","ErrorMsg":"CHIP IMG LOAD SHAKEHAND FAIL"}
[08:14:17.818] - Burn Retry
[08:14:17.818] - Burn return with retry fail

 

1 REPLY 1
TarikAb
ST Employee

Hi @Nkh

 

I do not observe the behavior described in your message.

On my setup, which uses the X-NUCLEO-67W61M1 and NUCLEO-U575ZI-Q boards, I use the batch scripts provided here.

I launched the batch script several times, and the flashing process is always successful with both t01 and t02 binaries.

The flashing process is based on the configuration set in the mission_t01_flash_prog_cfg.ini or mission_t02_flash_prog_cfg.ini file. As indicated in the file, the erase parameter is set to 2, meaning a chip erase.

When I edit the ini file and set the erase parameter to 0, the flashing process fails. This issue can be resolved by adding the --erase --whole_chip option to the command, as you did. However, there are three differences compared with your observation of the failure:

  • The issue appears only when I change the erase value in the original ini file.
  • The issue occurs in the same manner regardless of the binary being flashed (t01 or t02).
  • The issue occurs after a successful handshake. In the capture you shared above, the handshake fails.

Can you provide more details about your setup? Did you try flashing the manufacturing binary?

Regards


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.