cancel
Showing results for 
Search instead for 
Did you mean: 

Prombem with Debugging the main program without bootloader-program

Slh
Senior

Hello,

i use "System Workbench for STM32 ac6" compiler and downloaded the FP-CLD-AZURE1 in this address. The program consist of 2 parts, bootloader and the main application. Since the main program is downloaded to flash in the address 0x8004000 and I can not debug it, I tried downloading the main program without a boot loader and for this purpose I made these two changes in the main program:

1- In linker file:

MEMORY

{

FLASH (rx)    : ORIGIN = 0x8004000, LENGTH = 496K -> (change to 0x8000000)

RAM (xrw)     : ORIGIN = 0x20000000, LENGTH = 96K

RAM2 (xrw)    : ORIGIN = 0x10000000, LENGTH = 32K

}

2 - In " system_stm32l4xx.c" i have changed "#define VECT_TAB_OFFSET 0x4000" to "#define VECT_TAB_OFFSET 0x00".

Now my problem is that when I'm debugging, I have this error:

"No source available for "main() at 0x8000baa" "

It should be noted that the program runs but does not debug.

thanks for help

1 REPLY 1
Slh
Senior

The problem was fixed as follows:

Go to Project Properties, C/C++ Build -> Settings. On the first tab (Tool Settings) under MCU GCC Compiler click Debugging and set Debug Level to Maximum (-g3)