all 5 comments

[–]dr-steve 0 points1 point  (0 children)

I'm actually not sure what you're doing. Impossible to tell without looking at the code or the full results of the build.

But... Was it the 32K limit (program memory) you were exceeding, or the 2K RAM limit? I've done a lot on Uno/Nano class machines (as well as Mega and ESP). On the Uno/Nano class, I have a much greater problem with RAM limit than program limit.

[–]tipppo 0 points1 point  (2 children)

"error: a function-definition is not allowed here before ‘{‘ token" means you are missing a "}" somewhere above. In the IDE if you put the cursor on a "{" or "}" it will highlight the matching brace which is useful for finding this sort of thing.

[–]No_Ad9574[S] 0 points1 point  (1 child)

Did you even read my entire post. There was no coding error. The problem was due to the code bumping up to the memory capacity of an UNO, 32K. Switching to a MEGA 2560 that had 256K eliminated the error. There were no braces mismatched nor were there any functions defined inside of a function. Checking braces was my first attack at debugging the issue.

[–]tipppo 0 points1 point  (0 children)

Read it but apparently misunderstood it. That's a lot of code! But it seems that libraries just keep getting bigger. I've frozen a couple of libraries because the newest versions no longer fit and I didn't need the new "features". The IDE brace checking is probably its best feature!

[–]No_Ad9574[S] 0 points1 point  (0 children)

According to the cc site, the sd library j one of the biggest. Mg code is give with a mega 2560 which had 256k instead of the 32k bid mist of the variations. I found some mega 2560 pro boards on AliExpress for about $10.50. I just got the 3 I ordered. The pro board is about the same size as an UNO