Source program is as follows (simple lamps procedures, the arm is 2440) :
Int main ()
{
Unsigned int * pGPFCON=(unsigned int *) 0 x56000050;
Unsigned int * pGPFDAT=(unsigned int *) 0 x56000054;
* pGPFCON=0 x100;
* pGPFDAT=0;
return 0;
}
The makefile is as follows:
All:
Arm - Linux - GCC - c - o led. O led. C
Arm - Linux - GCC - c - o start. O start. S
Arm - Linux - ld - Ttext 0 XFFFFFFFC start. O led. O - o led. The elf
Arm - Linux - objcopy - O binary - S led. The elf led. Bin
Arm - Linux - objdump -d led. The elf & gt; Leds. Dis
Clean:
Rm *. Bin * o * * elf. Dis
CodePudding user response:
You are using 2440 baremetal model test program?If yes, use should be led. If bin objcopy after things with connector it doesn't matter,
Program you don't have a prototype of this address to burning,
Objdump parsed when the elf address overflow, so just show 2 assembly code,