Reputation: 101473
Is it possible to compile C/C++ code for the ARM Cortex M3 (LPC1768) using vanilla GCC with the --target
switch, or will I need to compile GCC, binutils, etc to do this?
Upvotes: 10
Views: 16222
Reputation: 47572
CodeSourcery G++ supports a wide range of ARM processors including Cortex-M3. Its also free unless you need professional support.
Upvotes: 3
Reputation: 126
You can find an excellent series of tutorial style blog posts here, for example this one about bare metal programming for the M3.
Upvotes: 4
Reputation: 495
As already said, those are not your only two options. I suggest trying this toolchain prepared by ARM engineers: GNU Tools for ARM Embedded Processors . It's specifically tailored for Cortex-M and Cortex-R cores, and it doesn't require registration to download it.
Upvotes: 10