I have been handed a working stm32f1 project that needs some major rewriting.
The first things I need to do are add some additional functionality quickly. That I can handle.
However, I need a build environment... Can I import a non-chibios project with all its includes and make files?
It is assumed that it builds under gcc... What would I need to do to get debugging working?
Can I import an existing Chibios example program and wipe out all the source file and install mine? I assume I need to update debug config and maybe make files.... Anything else?
Any pointers in the right directions would be appreciated!
Thanks
John Scott
Using ChibiStudio for non Chibios project...
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Using ChibiStudio for non Chibios project...
Hi,
ChibiStudio is Eclipse basically, you can compile and debug any project based on makefile. Just do File->New->"Makefile Project with Existing Code". Give it a name and point it to where the Makefile is. The project will appear in your workspace.
For debugging you can use OpenOCD launching it in ChibiStudio like for ChibiOS project, you need to create a "Debug Configuration" for your project.
ChibiOS projects are just Makefile projects as seen from Eclipse.
Giovanni
ChibiStudio is Eclipse basically, you can compile and debug any project based on makefile. Just do File->New->"Makefile Project with Existing Code". Give it a name and point it to where the Makefile is. The project will appear in your workspace.
For debugging you can use OpenOCD launching it in ChibiStudio like for ChibiOS project, you need to create a "Debug Configuration" for your project.
ChibiOS projects are just Makefile projects as seen from Eclipse.
Giovanni
Re: Using ChibiStudio for non Chibios project...
Great, thats what I expected, but there is a lot of Eclipse and openOCD stuff that I don't understand, So I figured I would ask.
I assume I can use the debug configuration from a stm32f1 demo as a starting place?
-Thanks
John Scott
I assume I can use the debug configuration from a stm32f1 demo as a starting place?
-Thanks
John Scott
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Using ChibiStudio for non Chibios project...
You can take a debug configuration of an F1 project, it is a file with extension .launch.
Open it with an editor and search/replace the project name, there are 3 instances, after that you should be able to see it in the debug toolbar menu, edit it and change the path to binaries.
There are guides about ChibiStudio on playembedded.org, this kind of things are explained there.
Giovanni
Open it with an editor and search/replace the project name, there are 3 instances, after that you should be able to see it in the debug toolbar menu, edit it and change the path to binaries.
There are guides about ChibiStudio on playembedded.org, this kind of things are explained there.
Giovanni
Who is online
Users browsing this forum: No registered users and 14 guests