stm32 - Flashing image to STM3220g-EVAL board using Trace 32 -
i have stm3220g-eval board. doesn't seem have preloaded image in now, used other purposes. when power on, display shown blank.
i dont have stlink/v2 hardware. using trace32 , lauterbach flashing , debugging code.
i created simple c program, created elf file using arm-none-eabi-gcc toolchain, , able flash stm3220g-eval board using cmm script stm32 provided in demo folder of trace32.
what require flash default image stm3220g-eval using trace32. can provide me link boot image , cmm script flash same.
i tried demonstration builder platform , demonstration firmware provided in following link http://www.st.com/web/en/catalog/tools/fm116/sc959/ss1532/pf250374
as providing hex file, used trace 32 command data.load.asciihex load hex file. when press go, getting error( emulation poer fail).
can somesome provide me correct cmm script flash .hex file board.
if understand correctly trying flash "stm3220g-eval demonstration firmware" on stm3220g-eval board. hex-file talking "stm322xg_eval_fw_v1.2.0.hex", right?
this hex-file in intel hex file format. (see https://en.wikipedia.org/wiki/intel_hex) load file in intel hex format, should use data.load.intelhex
so how flash file in cpu:
- select cpu
system.cpu stm32f207ig
- connect cpu
system.up
- prepare flash-programming
do ~~/demo/arm/flash/stm32f2xx.cmm prepareonly
- arm flash programming
flash.reprogram all
- load intel hex file
data.load.intelhex stm322xg_eval_fw_v1.2.0.hex
- finalize flash programming
flash.reprogram off
(this start actual programming.)
Comments
Post a Comment