STLink Downloading Issue
Hello,
have you tried to connect under reset (-c SWD UR)
-c SWD UR -P ${workspace_loc}${config_name:{project_name}}\${project_name}.bin 0x08000000 -Rst
>> My opinion is ST-LINK_CLI.exe isn’t proper for .bin file downloading? If it is true how can I build .hex file?
ST-Link_CLI is proper for .bin & .hex loading
If you are looking to generate .hex file, this is possible through :
Project Properties > C/C++ Build > Settings > Build Steps (TAB) > Post-build steps :
replace this command:
arm-none-eabi-objcopy -O binary "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.bin"
by the following command:
arm-none-eabi-objcopy -O ihex "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.hex"
Edit :
You can also program you chip using SystemWorkbench (without debug)
in Project Explorer view > right click in your project > contextual menu > Target > Program chip
Regards,
Tarek