• in my arm program,why the program can't execute the instruction ldr pc,=main ,my program can't go into the main function,but goback to execue bl init_sdram
    //head.S .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 //init.c #include "lcd.h" void init_sdram(void...
  • in my arm program,why the program can't execute the instruction ldr pc,=main ,my program can't go into the main function,but goback to execue bl init_sdram
    //head.S .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 //init.c #include "lcd.h" void init_sdram(void...
  • main() runs again after completion of code
    Hello, I wrote a simple c program in keil to set the voltage on/off for two motors for 10 sec. But when i debug the program, it runs correctly till the end and at the last step of the code it returns...
  • main() runs again after completion of code
    Hello, I wrote a simple c program in keil to set the voltage on/off for two motors for 10 sec. But when i debug the program, it runs correctly till the end and at the last step of the code it returns...
  • locating code without a 'main' function
    I'm using the BL51 linker/locator to locate (without code banking using the ROM(SMALL) directive) a piece of code at a specific location using the CODE control. The code I'm trying to locate a piec of...