Mercurial > public > ostc4
view ostc4pack/README.linux @ 425:86fcac4cc43a ImprovmentNVM_2
Added function to analyse the sampel ringbuffer:
The function will show 0 for used sectors, 4 for the sector currently in use and 5 for empty sectors. This allows identification of log sample index position and identification of a buffer corruption (more than 2 sectors have state 4)
The repair function writes dummy bytes to the end of the active buffer with the lower sector number. This decision is based on the fact that corruption results typically in a reset of index to buffer start address. After repair the writing will be continued using the hugher buffer marked as used.
author | ideenmodellierer |
---|---|
date | Sat, 15 Feb 2020 20:50:20 +0100 |
parents | 9c77cfe8c2b2 |
children |
line wrap: on
line source
README.linux ------------ 1. Compile the pack utilities cd src make checksum_final_add_fletcher make OSTC4pack_V4 2. Edit create_full_update_bin.sh Set BUILD_PATH to the location where you build the individual parts of the firmware using the OpenSTM23 IDE. Set BUILD_TYPE the either Debug or Release (or any other build style you defined in the OpenSTM23 IDE). Set the "build project names" as defined in the OpenSTM23 IDE. 3. Simpy run create_full_update_bin.sh Run it in the ostc4pack folder of the repository, and a file with name like OSTC4_<date>.bin is created containg the individual blobs.