1. Optimization is set to 0 flash read and write errors, set to 3 flash read and write correctly?
2. Please tell me what effect the optimization is on flash reading and writing when it is set to 0nRF5_SDK_15.3.0_59ac345.peter.flash.rar?
1. Optimization is set to 0 flash read and write errors, set to 3 flash read and write correctly?
2. Please tell me what effect the optimization is on flash reading and writing when it is set to 0nRF5_SDK_15.3.0_59ac345.peter.flash.rar?
Hi,
Fstorage is only able to write full words to flash. The data you are trying to write is not word-aligned. You can add the aligned-attribute to make sure that it is aligned:
static char __attribute__((aligned)) Test[9] = { "12345678" };
Best regards,
Jørgen
Thank you
Thank you