[FINALLY] SPC5Studio and STM32

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
DEHiCKA
Posts: 17
Joined: Thu Feb 21, 2013 8:13 am
Has thanked: 4 times
Been thanked: 3 times

Re: [FINALLY] SPC5Studio and STM32

Post by DEHiCKA »

Giovanni wrote:Hi,
Just specify arm-none-eabi-gdb without a path in the debug configuration.
Giovanni

Giovanni,
It doesn't work for me without a path, "Cannot run program "arm-none-eabi-gdb": Launching failed"
Only works when I point directly to it.


Dennis.
Xamusk
Posts: 81
Joined: Sat Mar 05, 2011 10:47 pm

Re: [FINALLY] SPC5Studio and STM32

Post by Xamusk »

I hope it can get some features and quickly gain some ground over the opposition (CoIDE).

Maybe we could have GCC ARM Embedded 4.7, which includes newlib-nano (smaller printf and memory allocation code... maybe some integration with ChibiOS mem manager?). This finally builds newlib with -fno-exception!
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [FINALLY] SPC5Studio and STM32

Post by Giovanni »

Hi,

The ARM components that I posted contains exactly that compiler, just embedded into an Eclipse plugin so you don't have to install it separately and mess with environment variables.

Haven't tried the nanolib yet, it sounds interesting.

Giovanni
theShed
Posts: 50
Joined: Tue Feb 26, 2013 3:43 pm

Re: [FINALLY] SPC5Studio and STM32

Post by theShed »

Just tried using nano-lib with a simple demo and it made no difference at all to the code size; although a trawl through the map file revealed that the only function used from glibc was memset and I guess you can't do a lot with that...

What does have a significant affect though is changing the optimization from -O2 to -Os. That reduced the code size by a little over 11%, worth having on the smaller memory parts.

--
mike
Xamusk
Posts: 81
Joined: Sat Mar 05, 2011 10:47 pm

Re: [FINALLY] SPC5Studio and STM32

Post by Xamusk »

Great! Hopefully the newlib-nano is somewhere inside there.

If not, there's always the net to look: https://github.com/32bitmicro/newlib-nano-1.0
theShed
Posts: 50
Joined: Tue Feb 26, 2013 3:43 pm

Re: [FINALLY] SPC5Studio and STM32

Post by theShed »

To use newlib-nano you have to add:

Code: Select all

--specs=nano.specs 

to LDFLAGS. You can tell if it worked by looking in the map file, references to 'libc.a' will have changed to 'libc_s.a'

--
mike
Xamusk
Posts: 81
Joined: Sat Mar 05, 2011 10:47 pm

Re: [FINALLY] SPC5Studio and STM32

Post by Xamusk »

Looks like a good opportunity for a toggle button in the configurations :D
mr_michael_s
Posts: 13
Joined: Sat Jul 07, 2012 1:08 pm

Re: [FINALLY] SPC5Studio and STM32

Post by mr_michael_s »

I installed SPC5 Studio and the sample project and compiling works....

However how Do I create a new ChibiOS project for the STM32F4 ?
When I select "File->New->C Project->Executable->ChibiOS/RT C Application a project is created, however it doesn't contain any skeleton files. Are the wizards coming up automagically or is there something wrong in my eclipse ?

Thanks

Michael
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [FINALLY] SPC5Studio and STM32

Post by Giovanni »

Hi,

You don't have to select "ChibiOS/RT C Project" but "SPC5 C Application" under "Makefile project".

The ChibiOS kind of project is a leftover in the ChibiOS plugin and will be removed, please follow the help regarding SPC5Studio, the wizard comes up when you open "configuration.xml" in the newly created project.

Giovanni
mr_michael_s
Posts: 13
Joined: Sat Jul 07, 2012 1:08 pm

Re: [FINALLY] SPC5Studio and STM32

Post by mr_michael_s »

Ok, thanks. Been there already, This opens the SPC5 Application Configuration. Under Application Content there are two options "Structure" and "Graph" but when I select "Structure" ->"Exported Features" I can only add components like "com.example.xyz0". Am I expected to type something here or should there be a select box ???

Thanks


Michael
Post Reply