WARNING!!!! Before You Start Development¶
Contents
Before You start developing it is recommended to read whole unit image and save it to binary file to be able to recover unit if something unexpected happened
Unit image consists of:
- Bootloader
- Original (factory) application image
- Calibration and Configuration partitions.
If bootloader or calibration tables are damaged - unit will not work properly!!!.
Save unit image:¶
Install ST-Link Utility from here: https://www.st.com/en/development-tools/stsw-link004.html
Connect ST-Link debugger to OpenIMU Evaluation Kit. and to PC
Power On Evaluation Kit
Start ST-Link utility on your PC.
Click Device->Connect.
Enter value 0x80000 for OpenIMU300 and 0x20000 for OpenIMU330 into Size box and hit enter
Click File->SaveAs and save image to well known location. For OpenIMU300 image size should be 512K bytes. For OpenIMU330 image size should be 128 KBytes.
Recover unit image:¶
Connect ST-Link debugger to OpenIMU Evaluation Kit. and to PC
Power On Evaluation Kit
Start ST-Link utility on your PC.
Click Device->Connect.
Click File->open and open previously saved file.
Click Target->Program&Verify.
Make sure that Start address is 0x08000000 and click Start.
After reprogramming of OpenIMU300 unit (RI or ZI) perform write protection of sectors 0 and 2
After reprogramming of OpenIMU330BI unit perform write protection of last 6 sectors (58 to 63)