2019-04-09 12:56 AM
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
2019-04-09 07:32 AM
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)