April 15, 2011 - 8:46am
Guest |
Can anyone tell me what are the setting & steps to build a project using ride 7 software for ARM controller LPC2148 whose code is written in ASM (*.s OR *.inc) ? Can anyone also give me a demo ASM code for this LPC2148 Microcontroller ?
The error which i get while building the Project is like this......
----------------Build Started: 'Application0' in configuration 'Standard'--------------------------
Building C:\Documents and Settings\HomeUsers\Desktop\DENI\deni.s
Running: ARM Assembler
"C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -MD -D_LPC2148_ -mcpu=arm7tdmi-s "C:\Documents and Settings\HomeUsers\Desktop\DENI\deni.s" -o "C:\Documents and Settings\HomeUsers\Desktop\DENI\deni.o" -I "." -I "C:\Program Files\Raisonance\Ride\Lib\ARM\include" -c -Wa,-EL
"C:\Program Files\Raisonance\Ride\Bin\rexrdr.exe" "C:\Documents and Settings\HomeUsers\Desktop\DENI\deni.lst" 0 "C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-objdump.exe" --disassemble -all --source "C:\Documents and Settings\HomeUsers\Desktop\DENI\deni.o"
"C:\Program Files\Raisonance\Ride\Bin\rexrdr.exe" "C:\Documents and Settings\HomeUsers\Desktop\DENI\deni.o.sizetmp" 0 "C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-size.exe" "C:\Documents and Settings\HomeUsers\Desktop\DENI\deni.o"
Building C:\Documents and Settings\HomeUsers\Desktop\DENI\Application0.rapp
Running: LD Linker
"C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -mcpu=arm7tdmi-s -Wl,-T -Xlinker "C:\Documents and Settings\HomeUsers\Desktop\DENI\Application0.elf.ld" -u _start -Wl,-static -Wl,--gc-sections -nostartfiles -Wl,-Map -Xlinker "C:\Documents and Settings\HomeUsers\Desktop\DENI\Application0.map"
C:\Program Files\Raisonance\Ride\Lib\ARM\crt0_LPC21x.o: In function `_reset_inibss_loop':
(.text+0x7c): undefined reference to `main'
collect2: ld returned 1 exit status
Build failed
|
Hi Deni,
It looks like you do not have a C file in your project.
Can you try to create a simple C file with just the following:
Add this file in your project, along with your startup file, and try to program this on your target.
Warning: The file should have a ".c" extension, but NOT ".C", as uppercase .C is handled as a C++ by gcc, which will make the link phase a difficult experience :rolleyes:
Best Regards