- Notifications
You must be signed in to change notification settings - Fork523
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
So, I encountered this mind boggling problem with my complex IoT project, but just to make sure I'm not going crazy, I created a minimal sample using (https://github.com/maxgerhardt/platform-raspberrypi#5a533d6b36844183bb72794bc53091206165e921 ), and I'm getting the same problem: Very-very likely not related to Arduino-Pico, but I'm out of ideas, and maybe someone has seen something similar. Scenario:
Given this simple program: It compiles to this: and it works fine. Now changing JUST the It compiles to this: And the firmware doesn't work.
And it still builds, clearly showing that Anyone has encountered this before? haha |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 3 comments 5 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
That's the Arduino IDE doing it's thing. It doesn't understand Moral of the story is to use comments not if blocks to remove includes in the main INO. For other .c files, I don't believe the IDE scans then so you can use if blocks there, if you really want. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Thanks for insight about how the Arduino IDE figures out dependencies, but some more details:
|
BetaWas this translation helpful?Give feedback.
All reactions
-
Ok, my guess is that PlatformIO still ends up using the Arduino IDE somehow, or uses a similar process to help/suggest dependencies? |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I would imagine so. You can check by looking at the MAP files and seeing if there are FreeRTOS functions present. In any case, it is weird if you're not expecting it! |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I already checked yesterday through PlatformIO's "Inspect" menu, and the extra size is indeed coming from FreeRTOS symbols, so that's what is happening as you suggested. Now that I know this is a thing, there is indeed plenty of of discussions I can find online, such as (arduino/Arduino#1841 ) . 👍 Again, thanks for the help, Earle. |
BetaWas this translation helpful?Give feedback.
All reactions
-
And of course, now that I know what's going on, I can see PlatformIO has settings to change this behaviour (https://docs.platformio.org/en/latest/librarymanager/ldf.html#ldf-mode The default is |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Was about to tell you this. It blindly scans the |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
hey, I just ran into this issue two years later but couldn't find the discussion until I was about to post my own, so I'm going to leave more notes here so hopefully more people stumble across it. the LVGL Arduino library creates a conditional dependency on FreeRTOS that, similarly, automatically links in FreeRTOS even if |
BetaWas this translation helpful?Give feedback.