-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flash_safe_execute fails with FreeRTOS timer #2213
Comments
I've got no idea if it's related to your problem or not (I've not yet used FreeRTOS myself), but I see that you're using |
Can you try to wrap your write_flash function with __not_in_flash_func? eg I never used On a side note, are you really needing to write your flash that often? This can wear out your flash quite fast... |
|
@sykacek this is the code I am currently working on : https://github.com/rvt/OpenAce/blob/initial/src/lib/webserver/ace/webserver.cpp This is what I use to generate the The website itself can be found here : https://github.com/rvt/OpenAce/tree/initial/src/SystemGUI |
Your code is buggy, and you are writing off the end of your buffer corrupting stuff.
|
When I run the code below on my RP2040, LED blinks for less than a second and then the whole system fails (I can't access it over the serial, it is frozen). It compiles without any warnings and CMake is also ok.
I encountered the same behavior when I was accessing flash without
flash_safe_execute
, I though that using it would prevent the issues, what am I doing wrong? In the critical flash section I have also tried usingsave_and_disable_interrupts()
withoutflash_safe_execute
andflash_safe_execute_core_init
but LED just went on and the system froze again.this didn't help. I attach
FreeRTOSConfig.h
below.I am using latest git pull of PICO SDK and FreeRTOS 202406-LTS, with FreeRTOS-Kernel 11.1.0., arm-none-eabi-gcc (15:10.3-2021.07-4) 10.3.1 20210621 (release). I attach
CMakeLists.txt
just in caseThanks for help!
The text was updated successfully, but these errors were encountered: