Page 1 of 2

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

Posted: Thu Oct 31, 2013 12:11 pm
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

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

Posted: Thu Oct 31, 2013 1:23 pm
by Roman
The simple copying from file manager resolved the problem, but now debugger doesn't work. It says: "Execution is suspended because error"

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

Posted: Thu Oct 31, 2013 4:29 pm
by Giovanni
You need to change the project name in .project the import it in the workspace.

Giovanni

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

Posted: Thu Oct 31, 2013 7:14 pm
by Roman
Thank you very much! It works!

Roman

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

Posted: Wed Nov 20, 2013 3:02 am
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?

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

Posted: Wed Nov 20, 2013 9:16 am
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

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

Posted: Wed Nov 20, 2013 3:01 pm
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.

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

Posted: Wed Nov 20, 2013 3:44 pm
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

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

Posted: Tue Jan 07, 2014 7:32 pm
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

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

Posted: Tue Jan 07, 2014 9:25 pm
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