From: Freddie C. <fre...@op...> - 2013-04-06 16:00:52
|
load_image can be used only to upload to RAM. If you want to upload to flash (sth that cannot be written "directly" with mww, mwh or mwb commands), you should use: flash write_image erase filename.ext ext should be hex, elf or bin. If you use bin you may need to specify offset, so it's best to use hex or elf only. Before using this command the chip should be reset and halted, so a two-step procedure is usually like this: reset init flash write_image ... In new versions of OpenOCD there's a programming helper command, but I haven't tried it yet (; Regrds, FCh |