Other Parts Discussed in Thread: UNIFLASH, SYSCONFIG
Hello,
My setup:
1) Stack: 5.30 (newest)
2) Bim offchip without modifications
3) SimplePeripheral offchip
Modifications:
- BTN1: call oadCreateFactoryImageBackup() => copy internal image as factory image to external flash
- BTN2: call markSwitchFactoryImg() => after reset reset interal image to factory image
- postbuild modified: use user generated pem file for oad_image_tool
- postbuild added: generate production hex: srec_cat.exe %bim_path%\Release\bim.hex -intel %sp_path%\Release\sp_oad.bin" -bin -o production.hex -intel
- release build
4) Launchpad CC26X2R
Steps:
- UniFlash Tool: Flash production.hex to Launchpad => App ok
- press BTN1: oadCreateFactoryImageBackup() => App ok
- press BTN2: markSwitchFactoryImg() => after system reset Bim is running Bim_revertFactoryImage(): Bim_copyImage is done but the following crc check fails. Bim stops
- hard reset: Bim is running checkImagesIntFlash(): crc check is ok (only crc stat is checked). internal image is started correctly.
Any idea why the crc check is failing on Bim_revertFactoryImage()? The identical copy of the image has been running after flashing, so the crc check must have been succeeded before.
In this case always a manual hard reset would be needed after factory image reset...
I tried some variations of setting internal image before doing the steps above, without success (same behaviour):
- UniFlash of sp_oad.bin instead of production hex
- use default pem for oad_image_tool
- run OAD (with ti_oad_example app) with sp_oad.bin (crc check ok)
Many thanks for your help!
Regards,
Matthias