Creating an MBED bootloader with VisualGDB

Sysprogs forums Forums VisualGDB Creating an MBED bootloader with VisualGDB

This topic contains 3 replies, has 2 voices, and was last updated by  support 6 days, 1 hour ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13150

    Zeratuls
    Participant

    Hi,

    I´m trying to apply this tutorial to create a bootloader but using MBED proyects:

    https://visualgdb.com/tutorials/arm/bootloader/

    I´m sure that I followed the tutorial step by step. The compilation of the Bootloader project is correct but the MainApplication project  is never completed.

    Looking at the log I only find this error:

    2>c:/sysgcc/arm-eabi/bin/arm-eabi-objcopy.exe: ‘Debug/MainApplication.elf’: No such file
    2>make: *** [Debug/MainApplication.bin] Error 1

    Could you please suggest something to solve this issue? Maybe that tutorial is not valid for Mbed projects?

    Thanks

    #13151

    support
    Keymaster

    Hi,

    This looks like an invalid path specified in one of the commands, rather than an incompatibility with mbed. We would advise double-checking every modification to Makefile you made just before this problem started occurring. If you are not sure, please try following the tutorial from the beginning and double-checking that the projects build successfully after each step. Once you locate the step that breaks the build, please double-check the edits made in this step.

    If you don’t understand the meaning or role of some edits/custom commands, let us know and we will update the tutorial explaining them in more detail.

    #13152

    Zeratuls
    Participant

    You’re right. The problem was spaces instead tabs in makefile. The compilation of both projects is correct.

    Now the problem is that it runs only the MainApplication and not the Bootloader first.

    I attached the .map of MainApplication. I set size of the Bootloader to 0x40000, so it is bigger than in the tutorial.

    Thanks

     

    • This reply was modified 6 days, 8 hours ago by  Zeratuls.
    Attachments:
    You must be logged in to view attached files.
    #13160

    support
    Keymaster

    Hi,

    This is explained in step 22 of the tutorial. Please follow the instructions shown in step 23 (the debug settings page will look slightly different due to a recent update to our OpenOCD debug method).

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.