I want to use fstorage to write data to a file. The File with three records: 0x1111="Tablet1", 0x2222="data: abcdef", 0x3333="26". How to implement it? Can anyone guide me?
I want to use fstorage to write data to a file. The File with three records: 0x1111="Tablet1", 0x2222="data: abcdef", 0x3333="26". How to implement it? Can anyone guide me?
If you call flash storage function from an interrupt handler you can not wait for the callback in the interrupt handler, because then you will block the callback which has the same priority. You need instead to call the flash storage function from main context. There are primarily two ways to do that. One way is to use the scheduler. Another way is to call the flash storage function conditionally in the main loop, where you only call it when a specific flag is true. Then you set that flag true in the interrupt handler (ancs interrupt handler)
i have compile your code but it only show at segger rtt only the start and erasing a flash page at adresss0x7900 .neither writing nor reading the data