Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 23:37 Go to next message
Lee Noack is currently offline Lee NoackFriend
Messages: 2
Registered: November 2019
Junior Member
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 14:31 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
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.


--

Tauno Voipio
Re: GCC Toolchain for LPC2148 Legay Arm7 (Armv3) [message #1817358 is a reply to message #1816904] Thu, 21 November 2019 04:06 Go to previous messageGo to next message
Lee Noack is currently offline Lee NoackFriend
Messages: 2
Registered: November 2019
Junior Member
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 14:19 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
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.



--

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


Current Time: Fri Apr 26 13:32:46 GMT 2024

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

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

Back to the top