Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Compile for 32bit ARM target on 64bit Ubuntu
Compile for 32bit ARM target on 64bit Ubuntu [message #1754989] Sat, 25 February 2017 00:00 Go to next message
Eclipse UserFriend
Hi All,
This is the first time here Smile

I am running Neon2 on Ubuntu 64bit 16.04LTS. I have installed arm-linux-gnueabi and I can build a sample HelloWorld using cross-compile without any issue.
But I need to build for a 32 bit target board. I tried using -m32 option but it throws an error.

Anyone has similar setup? what settings do I need on my Neon?

Thanks
Silas
Re: Compile for 32bit ARM target on 64bit Ubuntu [message #1755057 is a reply to message #1754989] Mon, 27 February 2017 11:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi Silas,

Can I recommend heading over to http://gnuarmeclipse.github.io/ it has lots of documentation on how to build for ARM using Eclipse. They even have extensions to CDT allowing easier use of ARM toolchains.

Sadly I don't have an answer to your specific question, so hopefully gnuarmeclipse can help.

Jonah
Re: Compile for 32bit ARM target on 64bit Ubuntu [message #1755796 is a reply to message #1755057] Wed, 08 March 2017 04:21 Go to previous message
Eclipse UserFriend
Building for ARM doesn't use the -m32 option. GCC accepts either -mcpu=[target] or -march=[arch].
https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/ARM-Options.html
Previous Topic:Live view variable debug
Next Topic:Extending Embedded Target Debug Register View
Goto Forum:
  


Current Time: Tue Jul 15 13:13:13 EDT 2025

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

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

Back to the top