Programming one Binary File into Flash within EWARM
Copyright IAR Systems AB 2009 Page 1 of 7
Programming one Binary File into Flash with EWARM
IDE version: EWARM v5.xx
Revised 2009-04-30
Background
IAR Embedded Workbench for ARM is able to download an application into flash memory by its
integrated flash loaders. The flash loader requires a simple-code (*.sim) file to work which is
generated by the debugger during the build process. If the application is just one binary (*.bin) file
without source code (and debug information), EWARM is not able to download it directly. If so, it is
normally necessary to use a third-party flash programming tool. However, EWARM provides a feature
that can link one binary file of any kind (e.g. bin, bmp, wav, etc.) in your project. Through this feature,
it is also possible to download one binary file into flash memory within EWARM.
Example
MCU used in this example: STM32
The required steps are listed below with one picture for each step, so that your can see the
configurations. Here we take STM32 for example.
In case of other devices, the steps can be easily customized.
Step 1:
Create a new empty project in EWARM. Create a source file which should only contain an empty
main() function. Add this source file (e.g. main.c) into the project, as the picture below:
评论0