Skip to content

Fail to build in step 2: cannot move location counter backwards (from 20090e84 to 20040000) #23

@yudataguy

Description

@yudataguy

Running on Adafruit Feather RP2040 Adalogger

In step 2, when I try to build, the following error comes up after reaching 100%

[100%] Linking CXX executable ../bin/featherrp2040/LedBlinker.elf
<command-line>: note: this is the location of the previous definition
/home/xyz/.arduino15/packages/rp2040/tools/pqt-gcc/4.0.1-8ec9d6f/bin/../lib/gcc/arm-none-eabi/14.2.0/../../../../arm-none-eabi/bin/ld:/home/xyz/Downloads/code/fprime/led-blinker/build-fprime-automatic-featherrp2040/arduino-cli-sketch/memmap_default.ld:235 cannot move location counter backwards (from 20090e84 to 20040000)
collect2: error: ld returned 1 exit status
gmake[2]: *** [LedBlinker/CMakeFiles/LedBlinker.dir/build.make:340: bin/featherrp2040/LedBlinker.elf] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:7420: LedBlinker/CMakeFiles/LedBlinker.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
[ERROR] CMake erred with return code 2

settings.ini

[fprime]
project_root: .
framework_path: ./fprime
library_locations: ./fprime-arduino:./fprime-baremetal
config_directory: ./config
deployment_cookiecutter: https://github.com/fprime-community/fprime-arduino-deployment-cookiecutter.git

default_toolchain: featherrp2040

default_cmake_options:  FPRIME_ENABLE_FRAMEWORK_UTS=OFF
                        FPRIME_ENABLE_AUTOCODER_UTS=OFF

current connected board:

/dev/ttyACM0 serial   Serial Port (USB) Adafruit Feather RP2040 Adalogger rp2040:rp2040:adafruit_feather_adalogger rp2040:rp2040

It seems to be some kind of memory issue, since nothing has been added yet, not really sure what can possibly be wrong.

Update:
Tried w/ Pico board, got same result. default_toolchain: rpipico

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions