sparkfun / Logomatic

Main firmware for the Logomatic Version 2
http://www.sparkfun.com/products/10216
Other
14 stars 26 forks source link

Migrating to arm-none-eabi-* from arm-elf #11

Closed finger563 closed 8 years ago

finger563 commented 8 years ago

I'm trying to migrate this over from arm-elf-gcc to arm-none-eabi-gcc, and I've updated the makefiles to change the compiler / mcu settings and remove the WinARM settings, so that I can get a proper elf / FW.SFE out of it. However, the code does not execute properly after the bootloader loads it. Do you know of anything else that must change when moving to this different compiler?

sielenk commented 8 years ago

I am using a Linux toolchain, too. And I did not change much: https://github.com/sielenk/Logomatic/commits/mine/Firmware/Main/Makefile Since the processor used does not have a FPU, I used the target arm-softfloat-eabi, though. Maybe that is your problem: try adding -mfloat-abi=soft to the compiler options.

finger563 commented 8 years ago

Hmmm, yea that's what I thought; but sadly no luck. I'll keep trying and see what I can figure out :/

finger563 commented 8 years ago

So I managed to get it working, and I didn't need the -mfloat-abi=soft, based on your example (I had split mine up and was trying to use the arch and tune parameters, which weren't working). Final question: do you have any idea how to enable the FIO? My old code (which was built using CrossStudio), was able to use it and I see the addresses defined in the header files, but for some reason I don't get any of my expected output when I use it in my code (works when I switch back to just using IODIR/IOSET/IOCLR, etc.).

finger563 commented 8 years ago

Nevermind, figured out the issue. Thanks!