Error with Teachable Machine and Arduino Nano 33 BLE

I am a student who is creating a prototype with a Teachable Machine and Arduino Nano 33 BLE. I followed the official repository ( teachablemachine-community/GettingStarted.md at master · googlecreativelab/teachablemachine-community · GitHub ) to connect both resources, and when the board is connected to the computer the model of AI works, but my problem arises that when I try to compile the imported model on the board, I get the following error message:

C:\Users\Windows\AppData\Local\Temp\arduino_build_476579/linker_script.ld:138 cannot move location counter backwards (from 200531b8 to 2003fc00)
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for the Arduino Nano 33 BLE board.

One possible cause would be out of memory on the Arduino but when building a much smaller model I still get the same error message. I don't understand what is happening and I have no idea how I can solve this problem. I would greatly appreciate an answer that could help me.

This is not a complete error message.
In the IDE, go to the Preferences and make sure that both checkboxes "Show verbose output..." are set

Then compile the code again and insert the error message in the forum as text with code tags.

Ok, I changed the preferences as you indicated and thanks to that I noticed another error, which was that I was trying to run a library on the wrong architecture (I had the board selected on the mbed nano architecture and it should be running on the mbed architecture). I have already fixed that error, but I keep getting the above message.

C:\Users\Windows\AppData\Local\Temp\arduino_build_334592/linker_script.ld:138 cannot move location counter backwards (from 200531b8 to 2003fc00)
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compilando para la tarjeta Arduino Nano 33 BLE.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.