Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 220609

Forum Post: RE: Is there a upload hex file in the IAR?

$
0
0
What do you mean by upload?, saving a HEX file from IAR to be used with a custom C# BSL loader later, I often do. Using a real target board and unused memory will be 0xff, for simulated mode there is a settings in: linker/checksum to fill unused code memory with 0xff. Compile your code as normally(green arrow) or debug a running target (white arrow) Now click View/Memory from top menu, select Flash region right click a spot in window and select Memory Save... Save from 0xc000 to 0xffff for example, with options of output format. I actually prefer the MSP_txt as my C# program understands the header start location and transforms ascii to hex. As you always have to end with 0xffff to get the interrupt vectors included, I push up my code start location to the end of flash as I'm using the first 4K of flash for saved time-stamps, plus it makes the saved hex file smaller. My C# BSL loader detects continues 128bytes of 0xff and skips that block.

Viewing all articles
Browse latest Browse all 220609

Trending Articles