Cannot move location counter backwards error when trying to build

Hello, I am working with a NUCLEO-WB55RG, when building I get the following error:

[main] Building folder: mbed-torch-fusion-os 
[build] Starting build
[proc] Executing command: /usr/bin/cmake --build /home/assil/mbed-torch-fusion-os/build --config Develop --target all --
[build] [1/1 100% :: 0.754] Linking CXX executable SoftMaxTorchRunner.elf
[build] FAILED: SoftMaxTorchRunner.elf

. . .

mbed-nucleo-wb55rg.link_script.ld:92 cannot move location counter backwards (from 20104e88 to 2002fc00)
[build] collect2: error: ld returned 1 exit status

I am extremely new to MbedOS and microcontrollers, so I would appreciate any help, thank you.

that means usually that your code is too large and will not fit into memory.

1 Like