Hi all,
I am debugging production programming station, which includes 4 J-Link plus programmers. Each one of them programs different chip on a PCBA. There are 4 identical stations and I have the same issue on all of them.
Every 20 or 30 tries of programming the same PCBA, I get an error "Programming canceled by user" when programming STM32F469NG MCU over JTAG. The error occurs right after restoring, where "Secure chip" should take place (please find attached log file and JFlash project file).
BAT file contents:
start /min "JFlash.exe" "C:\Program Files (x86)\Segger\JLink_V682d\JFlash.exe" -USB%1 -openprj%2 -open%3 -jflashlog%4 -connect -auto -disconnect -exit
The bat file is called by a LabView application. Bat file starts the JFlash project and does following actions: unsecures chip, erases internal flash, programs hex file to internal flash, secures chip and disconnects.
The error always occurs at the same place.
I tried with V6.80b and V6.82d J-Flash versions.
I tried putting -securechip command to the BAT file instead of JFlash project
I tried without securing and unsecuring chip.
I tried starting application enabled and disabled.
None of these things fixed the issue
By running only BAT file 100 times, I didn't get this error. It seems that it only occurs when I am running it from LabView.
I can assure that "Cancel" button is not pressed during programming
What can cause this error?
I am debugging production programming station, which includes 4 J-Link plus programmers. Each one of them programs different chip on a PCBA. There are 4 identical stations and I have the same issue on all of them.
Every 20 or 30 tries of programming the same PCBA, I get an error "Programming canceled by user" when programming STM32F469NG MCU over JTAG. The error occurs right after restoring, where "Secure chip" should take place (please find attached log file and JFlash project file).
BAT file contents:
start /min "JFlash.exe" "C:\Program Files (x86)\Segger\JLink_V682d\JFlash.exe" -USB%1 -openprj%2 -open%3 -jflashlog%4 -connect -auto -disconnect -exit
The bat file is called by a LabView application. Bat file starts the JFlash project and does following actions: unsecures chip, erases internal flash, programs hex file to internal flash, secures chip and disconnects.
The error always occurs at the same place.
I tried with V6.80b and V6.82d J-Flash versions.
I tried putting -securechip command to the BAT file instead of JFlash project
I tried without securing and unsecuring chip.
I tried starting application enabled and disabled.
None of these things fixed the issue
By running only BAT file 100 times, I didn't get this error. It seems that it only occurs when I am running it from LabView.
I can assure that "Cancel" button is not pressed during programming
What can cause this error?