Are you in interruption context when trying to read/write in the callback ?toggle quoted messageShow quoted text
I doubt this is a good idea to access a filesystem from such place... (may sleep, may block...)
You should defer the read/write
see https://docs.zephyrproject.org/latest/reference/kernel/threads/workqueue.html#system-workqueue & co
Le 22/09/2020 à 14:26, Nikos Karamolegkos a écrit :
Update: if I write and read in a function without some condition (i.e button is pressed) works fine. The problem is when the write/read process is taking place to button_pressed callback function.