cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32 linux crypto question not start @ main

FLast.11
Associate III
Posted on January 17, 2017 at 10:18

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:4242

Remote debugging using :4242

0x08000354 in SystemInit () at system_stm32f2xx.c:154

154      RCC->CR &= (uint32_t)0xFFFBFFFF;

(gdb) s

157      RCC->CIR = 0x00000000;

(gdb) s

s169    }

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)0690X000006061bQAA.png

1 REPLY 1
Posted on January 17, 2017 at 14:33

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()

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..