This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Debug Bootloader Makefile settings for Eclipse

I haven't really found too much referencing how to setup an Eclipse DFU Bootloader project for Debugging.

What I know

To get the image to fit in the allocated memory you have to adjust to memory allocation settings in dfu_types.h and the linker file for the project.

Linker File settings

FLASH (rx) : ORIGIN = 0x3A000, LENGTH = 0x5C00

dfu_types.h setting

#define BOOTLOADER_REGION_START         0x0003A000

Makefile Settings

However there are any posts mentioned how to get the compiler optimization settings to play nice with the project. Changing from the default #CFLAGS += -Wall -Werror -Os can result in compile errors. And when this isn't the case, debugging can't find the main.c memory start to be able to trace the code. Can anyone recommend debug settings for the MakeFile?

Parents Reply Children
No Data
Related