-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Building not possible, because constants like PI or OUTPUT can't be found #695
Comments
last four lines of error message: scons: *** [.pioenvs/genuino101/FrameworkArduinoVariant/variant.o] Error 1 Hope you can help me. Thank you very much. |
|
Yes and yes. Cli version is 2.10.1. I thought the error messages may look familiar to you so I uploaded them, but we are sure it's not the code. It has to be something with the platformio Ide or Atom. |
Still have the same problem even after deleting all these files and then reinstalling: Delete the app from the Applications folder |
Ok, let's resolve this issue "step-by-step". I propose to start from PlatformIO CLI.
I'm waiting for the results. Thanks. |
Hey. It's almost working I think. After the first step it told me there isn't such a directory and that the reason for that might be that I would have to update Atom to version 1.8 that got out a few days ago. I just continued. |
Could you provide an output from the uploading process using PlatformIO IDE? |
the last lines look like these: arc-elf32-objcopy -S -O binary -R .note -R .comment -R COMMON -R .eh_frame .pioenvs/genuino |
Thanks. The last, could you provide the same output from Arduino IDE? |
Well, I don't get an error message there. Uploading from Arduino IDE seems to work fine. |
Please go to Arduino IDE preferences ( |
|
it's a bit long, but I think the last part is the interesting one for you.. It's a different project, because I couldn't get the original to run in the Arduino IDE fast enough, because of the timer library. But this one gives the same output in Platformio as the original one. |
Hmm... Please open PlatformIO IDE and PlatformIO IDE Terminal and run this
Thanks. |
|
Hi @tennismichel ! |
Hey Valeros, thanks for your help! Now I can upload the project by pressing the master reset button when the system asks for it. But without pressing i get the same output as posted above. Should I replace the whole folder for the loader or only the exec file. Both give the same results in terms of uploading. |
Further I still get some errors like "String is not declared in this scope" with red dots in the code, but they won't stop me from building or uploading and the program works how it's supposed to be. |
@tennismichel could you try the latest http://docs.platformio.org/en/latest/installation.html#development-version ? |
The development software didn't make a difference. Still works the same way. When I upload the project it's waiting for the device until I press the Master reset button. After that the connection works, but I can read something like "Invalid signature... " before I get the "success" message. |
I've just fixed it. Please re-install http://docs.platformio.org/en/latest/installation.html#development-version It should be |
AMAZING, it worked! Thank you so much, Ivan!! |
Thank you that reported this issue. We will issue new release today. |
* develop: Fix issue with ``platformio init --ide`` command for Python 2.6 Version bump to 2.10.3 Fix issue with appending PIO version to Build Defines Add test for `init --ide eclipse` Version bump to 2.10.2 (issues #695) Fix firmware uploading to Arduino/Genuino 101 // Resolve #695 Use $PLATFORM from build environment instead from the board config Update Intel ARC32 Arduino framework to v1.0.6 // Issue #695 Update Intel ARC32 Arduino framework to v1.0.6 Add support for ST Nucleo L031K6 board to ARM mbed framework Revert mcu option for genuino101 Update intel_arc32 platform Update HISTORY.rst Fix upload size checker Process "$BUILD_UNFLAGS" variable Restore PIO macros if it was deleted by framework
Configuration
Operating system: OSX 10.11.4
PlatformIO Version (
platformio --version
): latestDescription of problem
When I want to build my project or any other project that worked previously, I get a lot of errors that all look kind of like the following..
.pioenvs/genuino101/FrameworkArduino/WCharacter.h:43:8: error: 'boolean' does not name a type
inline boolean isHexadecimalDigit(int c) attribute((always_inline));
.pioenvs/genuino101/FrameworkArduino/WCharacter.h:135:8: error: 'boolean' does not name a type
inline boolean isUpperCase(int c)
Additionally I can see that constants like PI or OUTPUT for the PIN Mode are not found or recognized.
The code shouldn't be the problem. It's working on other Mac's with Platformio and it has been working with mine earlier, too. Tried to reinstall the whole IDE, but it's still not working.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
-main:
Quadro_main.txt
-one of the header files:
RotorControl.txt
-main again:
Additional info
The text was updated successfully, but these errors were encountered: