cancel
Showing results for 
Search instead for 
Did you mean: 

how to create new project in spc5studio

karan
Associate III
Posted on March 05, 2016 at 08:20

I am familiar with stm32cube and keil and eclipse platform.but new to spc5studio.i recently install spc5studio and from market place i also installed necessary compiler and chibios.but i little bit confuse how to create new project with help of pin map wizard and component wizard help is not that much helpful. i used to practice in stm32cube that in cube i select whichever component i want to use and when i generate code all initialization portion is included in project automatically. but here i little confused.here i want to create project which use uart and chibios. so any one can suggest helpful and illustrative document for this????

#spc5studio
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
4 REPLIES 4
Erwan YVIN
ST Employee
Posted on March 07, 2016 at 09:41

Hello Karan ,

i recommend you to use the Application Wizard.

the Application Wizard is containing about 200 Example Applications

(Chibios Applications included)

did you install Chibios components from Marketplace ?

you can use first to import an Chibios Example Application with UART.

i recommend you to go in the Help Section

SPC5Studio Application Wizard , SPC5Studio Pinmap Wizard

Which family do you use ?

  Best regards

         Erwan

karan
Associate III
Posted on March 07, 2016 at 10:54

i am using spc56ec64l7 and yes i installed chibios from marketplace .i also try to import chibios based uart application and built it successfully.but now i want to develop my new project from scratch.for that from help i try new->project->cproject->spc5studio c/c++ project and follow steps but project is generated only with source folder even no xml file and source c file. i also go through pin map wizzard and application wizard in help section but not get information how to integrate it with created new project.can i create project only using pinmap wizard.

Erwan YVIN
ST Employee
Posted on March 07, 2016 at 16:49 Hello Karan , when the pinmap is configured , when the pinmap is saved , it is automatically imported in configuration.xml and after generation. the source code is generated in board.c / board.h

/* Initial setup of all defined pads, the list is terminated by a {-1, 0, 0}.*/
static
const
spc_siu_init_t spc_siu_init[] = {
{PCR(PORT_B, PB_LIN0_TDX), PAL_HIGH, PAL_MODE_OUTPUT_ALTERNATE(1)},
{PCR(PORT_B, PB_LIN0_RDX), PAL_HIGH, PAL_MODE_INPUT},
{PCR(PORT_C, PC_LED8), PAL_LOW, PAL_MODE_OUTPUT_PUSHPULL},
{PCR(PORT_C, PC_LED7), PAL_LOW, PAL_MODE_OUTPUT_PUSHPULL},
{-1, 0, 0}
};
/* Initialization array for the PSMI registers.*/
static
const
uint8_t spc_padsels_init[SPC5_SIUL_NUM_PADSELS] = {
0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 
};
/**
* @brief PAL setup.
*/
const
PALConfig pal_default_config = {
PAL_MODE_UNCONNECTED,
spc_siu_init,
spc_padsels_init
};

Best Regards Erwan
Erwan YVIN
ST Employee
Posted on March 07, 2016 at 17:07

Hello Karan ,

Yes, a existing pinmap project (xml) can be imported in a Test Application.

easier than STM32CubeMX

From a SPC56ECxx Application

1) Launch the Pinmap Wizard from your application.

2) Import from your existing pinmap 

3) Save your pinmap

4) Exit the Pinmap Editor, the configuration is going to dirty state.

5) Save your configuration.xml (Configuration editor)

   Best regards

      Erwan