Page 5 of 5
Re: [New] Side project: ChibiToolchain
Posted: Sun Sep 16, 2012 3:54 pm
by Tectu
Just to be sure here: Does this now work somehow without big hacking on Linux properly?
~ Tectu
Re: [New] Side project: ChibiToolchain
Posted: Sun Sep 16, 2012 4:18 pm
by Giovanni
I use something very similar on Ubuntu but it does require hacking if you want to use ST-Link, and you have to build OpenOCD yourself.
Giovanni
Re: [New] Side project: ChibiToolchain
Posted: Mon Sep 17, 2012 1:58 pm
by Mallo
Hello,
I have just setup a toolchain with Eclipse+YAGARTO+OpenOCD for STM32 using the guide and works well:
http://hertaville.com/2012/05/28/gcc-ar ... discovery/I have just found your ChibiStudio thorugh website.
It has a single 7z file and seems convenient to use. I would like to test it using an example project.
Where can I download a simple eclipse project for, e.g., stm32f4discovery?
I looked in the forum but I cannot find the eclipse project, only some files and makefiles.
I also would like to test ChibiOS. I am currently using FreeRTOS for some of my projects at work.
I read that FreeRTOS licence does not permit to publish comparison between it and other OS. How does ChibiOS performs, in general, with respect to FreeRTOS on a STM32 platform?
Kind regards
Re: [New] Side project: ChibiToolchain
Posted: Mon Sep 17, 2012 2:06 pm
by Abhishek
Hi Mallo,
When you open the IDE, you will find all STM32 sample projects in the ChibiOS/RT STM32 demos folder on the left hand side. You can choose your project from there, and right click and select 'Open' from the context menu.
Also, all of the sample projects are located in the chibios/demos folder inside the archive.
Best Regards
Abhishek
Re: [New] Side project: ChibiToolchain
Posted: Mon Sep 17, 2012 3:28 pm
by Giovanni
There are two demos for the STM32F4-Discovery already imported, just compile and run

Giovanni
Re: [New] Side project: ChibiToolchain
Posted: Tue Sep 18, 2012 9:11 am
by Mallo
Hello,
I put the files in C:\ChibiStudio and import the workspace and I am able to find the examples.
I tested the stm32F4discovery ones, and they works good on OpenOCD 6 ans st-linkv2 dongle.
Great work!
I like the Eclipse customization with EmbSys Registers for STM32.
Thank you very much for your project.
Now, I will try to play a bit with the example and understand the OS. Will I be able to do some trace of ChibiOS using st-link v2 (swd)?
Kind regards
Re: [New] Side project: ChibiToolchain
Posted: Tue Sep 18, 2012 9:18 am
by Giovanni
You can, also try the ChibiOS debug plugin, it allows to inspect the status of the RTOS easily.
Giovanni
Re: [New] Side project: ChibiToolchain
Posted: Wed Sep 26, 2012 10:37 am
by Abhishek
jcbarlow wrote:Giovanni wrote:you could ask in the OpenOCD forum about this.
The OpenOCD forum on the Sparkfun site seems to have many unanswered questions these days. A better resource IMHO are the email lists that are now hosted on sourceforge.net
See <https://lists.sourceforge.net/lists/listinfo/openocd-user> and <https://lists.sourceforge.net/lists/listinfo/openocd-devel>
Hi,
Thanks for the reference. I got my answer there, and got OpenOCD v0.6.0 working with my Discovery board last Sunday.
The problem is in fact due to USB 3.0. Due a limitation in libusbx-1.0.12, it didn't support Intel USB 3.0 root hubs. Thus the device wasn't detected at all on my laptop, though it worked fine on other PCs with USB 2.0.
With OpenOCD v0.6.0 for windows compiled from the sources with the latest version of libusbx - libusb-1.0.13 it works well with the default drivers. The latest 32-bit binaries may be obtained from:
http://code.google.com/p/picusb/downloa ... ingw32.zip (courtesy an OpenOCD and libusb developer) . It is however a bit larger than Freddie's binaries.
Hope this information is useful to someone.
Cheers
Abhishek