Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5031

General • Re: Trouble compiling arduino-core examples

$
0
0
This gets worse.

I tried to test the simplest possible example under Rasberry Pi Pico ..... rp2040 .... Temperature.

No includes, nothing , just one line of code beyond the trivia:

Code:

void setup() {  Serial.begin(115200);  delay(5000);}void loop() {  Serial.printf("Core temperature: %2.1fC\n", analogReadTemp());  delay(1000);}
I have not modified it, I have not saved it elsewhere. It failing to compiler just where it was installed. I'm guessing this was included with the PhilHowler core which I installed using the IDE manager.

Code:

/Temperature.ino:9: undefined reference to `analogReadTemp'collect2: error: ld returned 1 exit statusexit status 1Error compiling for board Raspberry Pi Pico.
I got similar errors on other examples which tried to use analogRead().

What can I do to straighten this out? If it can't even compile its most trivial example sketch, what hope does my code have ??

TIA.

Statistics: Posted by pie_face — Sun Aug 25, 2024 4:18 pm



Viewing all articles
Browse latest Browse all 5031

Trending Articles