"Program chip" not working as expected
Hi,
I’m triying to program the Nucleo Board using “Program Chip” option in the project’s menu but I don’t get the result I expect.
What I want is to avoid going into debug mode everytime I want to flash my device. I have already read different threads where this is talked about but the only solution that was proposed by AC6 is not working.
To test it I have done the following.
I created a simple project with STM32CubeMX and just made a LED toggle every 100ms. I programmed the chip using the debug button. It goes to debug perspective and after I hit the run button I can see the LED toggling every 100ms.
Then, I stop the debugging and go to C/C++ perspective. I change the delay of the LED to 500ms, then I build the project and I right click the project and click on Target > Program chip...
Then I double click on the elf file of my project in the new window that has opened and then I get this in the console.
09:55:54 **** Programing project Camaleon Controller on chip ****
/home/twistx77/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.linux64_1.13.0.201701261144/tools/openocd/bin/openocd -f nucleo_f070rb.cfg -s /home/twistx77/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_1.12.0.201701261204/resources/openocd/scripts/st_board -s /home/twistx77/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_1.12.0.201701261204/resources/openocd/scripts -c “program \\\"Debug/Camaleon Controller.elf\\\" verify reset exit”
Open On-Chip Debugger 0.10.0-dev-00274-g2ee83e0-dirty (2017-01-26-11:43)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport “hla_swd”. To override use ‘transport select ‘.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
in procedure ‘program’
in procedure ‘init’ called at file “embedded:startup.tcl”, line 473
in procedure ‘ocd_bouncer’
- OpenOCD init failed **
shutdown command invoked
I can check that the new program hasn’t been flashed.
How can I fix that.
I just want a button to upload my hex file to the device and start running without debugging.
Thanks.