• Configuring Keil and Startup files problem

    Hello everyone,

    I am new to ARM, and I would like to set it up for programming in Assembly language. I am using Keil 5 and I am using LPC1768. I made a new project and built simple assembly program, but no .hex file was generated. Then I found out that…

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

    {

    volatile unsigned…