Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » GCC Toolchain for LPC2148 Legay Arm7 (Armv3)(GCC Toolchain for Legacy Arm7 (Armv3))
GCC Toolchain for LPC2148 Legay Arm7 (Armv3) [message #1816730] Tue, 05 November 2019 18:37 Go to next message
Eclipse UserFriend
Hi,

I have an old project that appears to have been compiled in WINARM. I was wondering if there is a toolchain out there for Eclipse that I can still program, compile and load this older device?

Most of the toolchains that I see promote Cortex M or Cortex A devices.

Regards,
Lee.
Re: GCC Toolchain for LPC2148 Legay Arm7 (Armv3) [message #1816904 is a reply to message #1816730] Mon, 11 November 2019 09:31 Go to previous messageGo to next message
Eclipse UserFriend
At least the ARM GCC from Ubuntu 18.04LTS repository (gcc-arm-none-eabi 6.3.1) compiles ARM7TDMI code happily in both ARM (32 bit) and Thumb (16 bit) modes.
I took one old source (vdprintf.c) and ran: arm-none-eabi-gcc -c -mtune=arm7tdmi -mthumb -Wa,-adhlmns=vdprint.lst -Os vdprintf.c , and got good object and listing.

It seems to me that the compiler builders do not feel the old ARM worth mentioning.
Re: GCC Toolchain for LPC2148 Legay Arm7 (Armv3) [message #1817358 is a reply to message #1816904] Wed, 20 November 2019 23:06 Go to previous messageGo to next message
Eclipse UserFriend
Yes, It seems that way to me too. I'm running Windows 10 but looks like I may have to at least run a Virtual Machine. I did get it to compile despite it listing ARMv3 as deprecated. I have the cannot find entry symbol _start; defaulting to 00008000 issue which I believe, if using -nostartfiles, GCC doesn't have a standard entry point. Now how to resolve this isn't very well presented it so will take some more experimenting.
My assembler startup file has the following so no reference to _start.

@ Start main()
.extern main
LDR R0, =main
MOV LR, PC
BX R0
MTrap: B MTrap @ Trap if main() terminated
Re: GCC Toolchain for LPC2148 Legay Arm7 (Armv3) [message #1817391 is a reply to message #1817358] Thu, 21 November 2019 09:19 Go to previous message
Eclipse UserFriend
The reference to _start() may be lurking in your linker script - have a look at it.

When developing the ARM code (both ARM7TDMI and Cortexes), I have ended to create an own linker script to each.

Previous Topic:GDB add 0x80000000 to global addresses readed from files
Next Topic:FYI Progress / error reports inconsistency
Goto Forum:
  


Current Time: Thu Jun 12 11:10:49 EDT 2025

Powered by FUDForum. Page generated in 0.04318 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top