Creating new project in ChibiStudio. Step-by-step guide.

Discussions and support about ChibiStudio, the free development environment for ARM.
Roman
Posts: 7
Joined: Fri Oct 25, 2013 9:04 am

Creating new project in ChibiStudio. Step-by-step guide.

Post by Roman »

Hi,
Does anyone know whether there is a guide which explains how to quickly and accurately create a new project based on an existing configuration with inheritance compiler, debugger, etc.

For example, I try create new project by the following way:
- copy existing demo example;
- paste it with another name;
- start build ... oops - builds settings are empty.

What I am doing wrong?

Roman
Roman
Posts: 7
Joined: Fri Oct 25, 2013 9:04 am

Re: Creating new project in ChibiStudio. Step-by-step guide.

Post by Roman »

The simple copying from file manager resolved the problem, but now debugger doesn't work. It says: "Execution is suspended because error"
Attachments
gdbError.jpg
gdbError.jpg (21.78 KiB) Viewed 11868 times
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Creating new project in ChibiStudio. Step-by-step guide.

Post by Giovanni »

You need to change the project name in .project the import it in the workspace.

Giovanni
Roman
Posts: 7
Joined: Fri Oct 25, 2013 9:04 am

Re: Creating new project in ChibiStudio. Step-by-step guide.

Post by Roman »

Thank you very much! It works!

Roman
jafrey
Posts: 33
Joined: Tue Nov 05, 2013 12:15 am

Re: Creating new project in ChibiStudio. Step-by-step guide.

Post by jafrey »

Is there instructions yet though? I'm still just editing already existing STM32F4xx projects with my own code. I've tried exporting but I'm not the best with Eclipse and couldn't get that working.

Perhaps a template for "Project" that automatically sets up the correct stuff?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Creating new project in ChibiStudio. Step-by-step guide.

Post by Giovanni »

I will look into this but cannot promise a timeline.

Anyway, copying a project into a new directory, changing the name inside the ".project" file and then importing it in the workspace usually works just fine.

Giovanni
jafrey
Posts: 33
Joined: Tue Nov 05, 2013 12:15 am

Re: Creating new project in ChibiStudio. Step-by-step guide.

Post by jafrey »

Giovanni wrote:I will look into this but cannot promise a timeline.

Anyway, copying a project into a new directory, changing the name inside the ".project" file and then importing it in the workspace usually works just fine.

Giovanni


How do you 'import' it? Just add it as a new project? Import it as a Makefile project? Eclipse is powerful bu t a bit overwhelming for the new user.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Creating new project in ChibiStudio. Step-by-step guide.

Post by Giovanni »

Hi,

"File->Import...->General->Existing Projects into Workspace" then select the directory containing the project and make sure "Copy projects into workspace" is not selected if you already placed the project directory into the workspace.

After importing the project you will not see it immediately, you have to add it to une of the "Working Sets". Right click on one of the existing working sets, for example STM32F4xx then select properties and add the project.

Giovanni
jscott
Posts: 129
Joined: Tue Jul 03, 2012 3:50 pm

Re: Creating new project in ChibiStudio. Step-by-step guide.

Post by jscott »

Hi Everyone,

I was just trying to create a new project using ARMCM4-STM32F407-DISCOVERY as a starting point.

I think I was able to create the new project, but it fails to compile with the following errors. I think that demo project may be broken in the distribution.


13:28:09 **** Incremental Build of configuration Default for project ARMCM4-STM32F407-DISCOVERY ****
make -j2 all
Compiling hal.c
Compiling adc.c
In file included from ../../os/hal/include/spi.h:93:0,
from ../../os/hal/include/hal.h:66,
from ../../os/hal/src/hal.c:37:
../../os/hal/platforms/STM32/SPIv1/spi_lld.h:353:2: error: #error "SPI driver activated but no SPI peripheral assigned"
In file included from ../../os/hal/include/spi.h:93:0,
from ../../os/hal/include/hal.h:66,
from ../../os/hal/src/adc.c:37:
../../os/hal/platforms/STM32/SPIv1/spi_lld.h:353:2: error: #error "SPI driver activated but no SPI peripheral assigned"
make: *** [build/obj/hal.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [build/obj/adc.o] Error 1

13:28:10 Build Finished (took 1s.685ms)





I have deleted and reinstalled ChibiStudio and 2.6.2-stable from scratch and that did not fix the problem.

ARMCM4-STM32F407-DISCOVERY-MEMS seems to be working correctly.

Can someone take a look at ARMCM4-STM32F407-DISCOVERY and see if there is really something wrong with it?

Thanks
-John Scott
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Creating new project in ChibiStudio. Step-by-step guide.

Post by Giovanni »

Hi,

Read carefully the errors:

#error "SPI driver activated but no SPI peripheral assigned"

This means that in halconf.h you enabled the SPI driver but in mcuconf.h none of the SPI peripherals is enabled for use.

Giovanni
Post Reply