From my experience it is at the moment not possible to change the FreeRTOSConfig.h file and let these change reflect in the newly compiled project. This is because the FreeRTOSConfig.h version for the Arduino framework is (seems) statically compiled.
Has anyone find a workaround, other than using the Espressif-IDE?
If not:
To whom to I send a request to include a version of FreeRTOSConfig.h that is dynamically compiled in the Arduin framework?
This seems a reasonable question because after all FreeRTOSConfig.h is a configuration file that provides a lot of flexibility. Right now there's absolutely no flexibility at all and that's at least a pity.
I've been able to edit the freeRTOSCOnfig.h file to meet my requirements.
You'll have to make the request to Espressif who writes the Arduino Core.
Great!
Do you mean that you changed: '…/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/freertos/FreeRTOSConfig.h' ?
OR
Did you find a way to change this file on a per project base?
I'm using the Arduino framework on platformIO.
Is the ting I did. You can try to request that Espressif make the core changes for you but I highly doubt they will customize the Arduino IDE core just for you.
Thank you,
So; you changed the FreeRTOSConfig.h file IN the Arduino framework. Nice to know that it's even possible. Now the changes apply to ALL future projects unless you revert the changes.
But
I want to change the file FreeRTOSConfig.h on a per project basis. This means that I want to compile that file dynamically.
This sounds like a platformIO/Espressif problem maybe caused by the way arduino packages work. I doubt either esp or arduino will be willing to make changes to make you happy. I don't really use esp32 in arduino ide but here is what I may do if have to:
Turn on verbose mode compile and upload.
Compile and upload so I can copy the commands from arduino IDE.
Replicate that command in command prompt to make sure they work.
Then inside FreeRTOSConfig.h define some #ifdef/#endif so each one corresponds to one of your projects.
Modify the compile command to add something like -DProject1=1 so you can specify only the part of the config to compile.
Hope this helps.
Under ESP-IDF, away from arduino, you have one set of configuration per project. Maybe you can give it a try. You might be able to run arduino libraries as well but I've not tried it. I only use ESP-IDF except for making simple projects on arduino.
I hereby confirm Idahowalker's statement that it is possible to change the contents of FreeRTOSConfig.h file in the Expressif version of the Arduino IDE.
At your advices:
- Then inside FreeRTOSConfig.h define some #ifdef/#endif so each one corresponds to one of your projects.
- Modify the compile command to add something like -DProject1=1 so you can specify only the part of the config to compile.
@1
I came to this same conclusion, but thank you anyway.
@2
That I have to investigate. To be frank; I don't quite understand what you mean. But I'll look into the -D modifier. It's in 'build_flags' if I'm correct.
And yes: ESP-IDF, just... Again another IDE to learn.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.