-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Does not seem to compile with RP2040 and Arduino-mbed #147
Comments
Now look at it more closely, it seems to be a TaskManagerIO issue. Probably should transfer it there. |
Solved. Have to force TaskManagerIO into Arduino-mbed mode by specifying Maybe we should also whitelist RP2040 Arduino as Arduino-mbed? Looks like Arduino Nano RP2040 Connect is also using it. A better longterm solution would be detecting Arduino-mbed directly so no more whitelisting is necessary. |
See #148 and TcMenu/TaskManagerIO#38 |
OK great thanks, that is now merged, I'll leave this open to check if any subsequent changes are needed either here or in SimpleCollections. |
I think that this will need the same change to be made: Possibly also in SimpleCollections for the threading support. I'm doing some work on that at the moment.. |
This should be implemented in #148.
From a quick search, yes. It's necessary for proper CAS locking support but it might not fail immediately. |
Thanks a lot for the PR. I've just merged it. For simple collections the case is easier, it just needs to know if it is mbed based, so that one is very easy, just check for MBED and remove anything else. In fact longer term, I could move all mbed choices to use the LDREX/STREX hardware CAS code I've written, it is implicitly safe in all scenarios on any ARM cortex 4 and above. But I was trying to introduce that code slowly. |
Plan of action:
|
Agreed, it's not optimal, looking at the build flags in platformIO, I would say, release what we have for now. I'll try and take a look through the build paramters for all the boards in Arduino and platformIO. As long as that is always defined, it would be safe to use. |
I've taken all the changes locally, and simplified the SimpleCollections check down to just So far testing looks good on:
Left to do:
I've got another very small change in IoAbstraction that I'm testing at the same time, once I finish the testing I'll do a release. |
I tried to setup a development environment with PlatformIO and Raspberry Pi Pico, which uses Arduino-mbed, and the compilation printed a lot of errors starting with something like
What my
platformio.ini
looks like:The text was updated successfully, but these errors were encountered: