sirri 28 Posted March 2, 2013 Share Posted March 2, 2013 Is it possible to compile STM32F4Discovery using Energia? Quote Link to post Share on other sites
roadrunner84 466 Posted March 2, 2013 Share Posted March 2, 2013 No, Energia can only build for msp430. The Arduino environment is identical, but builds for avr. As the core is gcc, it would be possible to make another one for stm32. Alternatively you can use arm-gcc and Eclipse. sirri 1 Quote Link to post Share on other sites
Rickta59 589 Posted March 2, 2013 Share Posted March 2, 2013 The not-yet-released beta version of Arduino version 1.5 has better support for non-avr chips and a more flexible scheme for invoking arbitrary toolchains. Look at the how it deals with the ARM chip in programmer.txt ... # SAM3 compile variables # --------------------- name=Arduino ARM (32-bits) Boards compiler.path={runtime.ide.path}/hardware/tools/g++_arm_none_eabi/bin/ compiler.c.cmd=arm-none-eabi-gcc compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf compiler.c.elf.cmd=arm-none-eabi-g++ compiler.c.elf.flags=-Os -Wl,--gc-sections compiler.S.flags=-c -g -assembler-with-cpp compiler.cpp.cmd=arm-none-eabi-g++ compiler.cpp.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf compiler.ar.cmd=arm-none-eabi-ar compiler.ar.flags=rcs compiler.objcopy.cmd=arm-none-eabi-objcopy compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 compiler.elf2hex.flags=-O binary compiler.elf2hex.cmd=arm-none-eabi-objcopy compiler.ldflags= compiler.size.cmd=arm-none-eabi-size compiler.define=-DARDUINO= # this can be overriden in boards.txt build.extra_flags= ... However, you would still have to supply an implementation of the library code. Not sure how useful the ATMEL SAM chip stuff would be. There is an older version of an STM32 Arduino implementation called Maple from Leaflabs. It is significant effort to support an Arduino style API for arbitrary chips. The new tree for arduino 1.5 is here: https://github.com/arduino/Arduino/tree/ide-1.5.x Personally I would just learn to use the ARM Eclipse plugin. http://gnuarmeclipse.livius.net/blog/ -rick sirri 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.