2017-01-17 01:18 AM
Hi , i am new to linux,
i am using crypto 3.0 package and stm32F205xx and
encounter several problem :
i write my own makefile and linker script (mostly copy from guthub)
I use stlink-texane and gdb to debug, here are several question:
1)
Type ''apropos word'' to search for commands related to ''word''...
Reading symbols from main.elf...done.(gdb) tar ext:4242Remote debugging using :42420x08000354 in SystemInit () at system_stm32f2xx.c:154154 RCC->CR &= (uint32_t)0xFFFBFFFF;(gdb) s157 RCC->CIR = 0x00000000;(gdb) ss169 }I was wonder why it don't start @ main.c
Anything i would come wrong?
2) I try to apply some simple test say i add some variable
unsigned char test = 100 @ line 100
and then once i debug
''b main.c:100'' and continue
when i use ''p test'' (which i expected it come out 100, it gives another value
I would please if anyone can help.
Thanks
2)
2017-01-17 05:33 AM
In the CMSIS model startup_stm32f4xx.s calls SystemInit() prior to initialize the statics so you can setup the clocks, processor (FPU, VTOR, etc) and external memory interfaces.
It can stick in SystemInit() and called code if the clocks or PLL don't start properly.
You should review that code to understand why it can't finish and get back to main()