After executing the instructon bl read_nand_to_sdram, my arm program will not execute the instruction ldr sp,=0x34000000 , but goback to execute the instruction bl init_sdram,why?
.global _start .text _start: ldr sp,=4095 bl init_sdram bl read_nand_to_sdram ldr sp,=0x34000000 ldr lr,=loop ldr pc,=main loop: b loop
Hi,
I think the initial SP value would not be good.
The SP value should be aligned by 8 bytes.
Why did you set SP to 4095?
You'd better set it 4096 or 4088.
Best regards,
Yasuhiko Koumoto.
thankyou,i forgot to disable watchdog,i am careless
View all questions in Embedded forum