Closed sentientthings closed 2 years ago
Hi @sentientthings, sorry for the delay in getting back to you.
I have the same issue when compiling the example code. Which is odd because one of my projects heavily uses SPI and has not run afoul of this bug.
Another workaround is to uncomment line 148 and to comment out line 149 of builder/frameworks/arduino/core_v2.py
https://github.com/nigelb/platform-apollo3blue/blob/b936fa3f4d426236b4452aabc2ceb2909f14631f/builder/frameworks/arduino/core_v2.py#L148-L149
Like this older version :
I will look into this and see if I can locate the source of this issue.
Hi @sentientthings, sorry for the delay in getting back to you.
I have the same issue when compiling the example code. Which is odd because one of my projects heavily uses SPI and has not run afoul of this bug.
Another workaround is to uncomment line 148 and to comment out line 149 of
builder/frameworks/arduino/core_v2.py
Like this older version :
I will look into this and see if I can locate the source of this issue.
Thank you
Hi @sentientthings,
I believe I have located the issue.
It seems to be that this behavior exists in some versions of the compiler toolchain and not in others.
I have modified the platform.json
to select a version of the compiler that works on both Windows and Linux, though I don't have a way to test it on OSX.
Please update platform-apollo3blue
and let me know how you go.
Weirdly there is at least one (that I ran across) c++ standard library (it was either queue or map) that was causing this to happen to me even with the update compiler version. It also seems that other people have been having problems as well as SparkFun changed from --specs=nano.specs
to --specs=nosys.specs
here: https://github.com/sparkfun/Arduino_Apollo3/commit/8f1280a3f3c3e32ec50b285de2c8edcf26f66900. I updated this project to use --specs=nosys.specs
by default and allowed it to be changed in one's platformio.ini
file.
When I compile SPI example: https://github.com/sparkfun/Arduino_Apollo3/blob/main/libraries/Apollo3/examples/Example6_SPI/Example6_SPI.ino
I get the following error:
It appears that functions _getpid and _kill are missing.
Adding the following into the code sample:
Fixes the issue.
I believe I followed the Readme correctly but it looks like my installation is missing something. I did have to add a lib_extra_dir path in my platformio.ini to enable some of the libs to be found:
Is this my particular installation that has an issue? Any ideas how to fix it?