Boot Loading Sequence - Aceinna IMU383 Series User Manual

Hide thumbs Also See for IMU383 Series:
Table of Contents

Advertisement

IMU383 Series User's Manual
________________________________________________________________________
9.2.5

Boot Loading Sequence

1. Reset unit using nRST pin or power cycle.
2. Wait about 1 second.
3. Read BOOT_STATUS register and check for boot mode compatibility (register
should have pattern 0x06AB in NORMAL mode or 0x46AB in BOOT mode). If
register has pattern 0x46AB that means unit already in boot mode. So skip steps
4,5,6.
4. Send "Enter Boot Mode" command to unit.
5. Wait about 1 second.
6. Read BOOT_STATUS status register to ensure, that device entered Boot Mode
(register should have pattern 0x46AB)
7. Send application fragments to unit one by one (up to 16*256-bytes fragments –
4K). If desired check BOOT_STATUS register after each fragment to ensure it
was successfully accepted (bits "Last Operation Status" and "CRC check status"
should be 0). Note: if application size is not even to 256 bytes, the final
application segment needs to be padded to 256 bytes by value 0xff
8. Issue "Program Block" command and wait about 300 – 500 ms or when DRDY
becomes active again allowing command to complete (time includes erasing of
FLASH pages). After that check BOOT_STATUS register (bits "Last Operation
Status", "CRC check status", "Application image compatibility" and
"Programming status" should be all 0).
9. Cycle through steps 7 and 8 until whole image is programmed.
10. Send "Activate New Application" command to unit.
11. Check BOOT_STATUS register to see if command succeeded.
12. Send Reset command or toggle "nRST" signal. Unit will reboot and start
executing new application. Wait for about 1 second and then read
BOOT_STATUS register. It should have pattern 0x06AB.
NOTE: Sending SPI messages to the unit allowed only when DRDY signal is active (low) except
very first command after unit reset.
NOTE: After sending each data fragment to the unit it's recommended to read back
BOOT_STATUS register to check if programming procedure had some errors. If "CRC check
status" bit is set to 1 – same fragment can be resent. If "Last Operation Status" bit set to 1 whole
procedure needs to be repeated from start (as many times as needed).
Doc# 7430-1398-01
Downloaded From
Oneyac.com
Page 56

Advertisement

Table of Contents
loading

Related Products for Aceinna IMU383 Series

This manual is also suitable for:

Imu383za seriesImu383za-400

Table of Contents