Linking Error into SecureBootloader

I am working with CubeOrangePlus.
I am working on the Secure Bootloader process given on: ardupilot/Tools/scripts/signing/README.md at master · ArduPilot/ardupilot · GitHub

I follow the steps as given in the readme.md file.

  1. Generate a public-private key using :
    Tools/scripts/signing/generate_keys.py NAME

  2. Build secure bootloader using :slight_smile:
    Tools/scripts/build_bootloaders.py CubeOrangePlus --signing-key=NAME_public_key.dat

This steps help me with generating secure bootloader.

  1. Now I am generating secure FW using following commands
    ./waf configure --board CubeOrangePlus --signed-fw

after configure when I fire ./waf copter command to build then I am getting error.

I also try for alternative ways
./waf configure --board CubeOrangePlus --signed-fw --private-key NAME_private_key.dat

./waf copter --upload
here when I fire the last ./waf copter --upload command at that time, I also get the same error.

Can anyone help me to resolve this issue.?
Am I missing something?
Do I have to change something into code to make it work.?

Hi,

I think your code is to big to fit into the memory. You will have to reduce the size that is why the linker complains. If you search for “cannot move location counter backwards” on Internet you will
see the root cause.

Regards,
Alb