Keil uVision settings
In order to use the EOPX with Keil uVision, following has to be set in Keil:
- External Tool for Flash Programming
- User Program After Build
- Add postbuild.txt script to Keil project
Following figures illustrates the Keil uVision settings.
Setting Flash Programming tool
Command:
C:\Program Files\EnOcean\DolphinStudio\eopx.exe
Arguments:
-fprg "#H" -fcfg "$H@H_cfg.hex" -write
"#H" is replaced by uVision as the output .hex (C:\MyProject\Output\sample.hex)
"$H@H_cfg.hex" is replaced by uVision as configuration area file (C:\MyProject\Output\sample_cfg.hex)
Optionaly:
If you use the the setBist with [first_data_obj] parameter, the -fmap switch needs to be specified.
-fmap "$H@H.m51" -write
Setting Post-build tools
After the Build/Rebuild process was successful, the EOP2 post-build tools are executed in
order to patch the BIST CRC in program area and ProgramSize byte in
configuration area.
Run #1:
eopx.exe -fprg "#H" -fcfg "$H@H_cfg.hex" -script "$Ppostbuild.txt"
NOTE: If the –fcfg file does not exist, it will be created.
Creating postbuild script
Add new file "postbuild.txt" to your Keil project as shown on following figure:
Listing of postbuild.txt:
setBist
setVersion