Starting from scratch again... On SW4STM32 now Topic is solved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

User avatar
Chudik
Posts: 152
Joined: Fri Jan 16, 2015 7:51 am
Has thanked: 7 times
Been thanked: 1 time

Re: Starting from scratch again... On SW4STM32 now

Post by Chudik »

Finally understood that for correct index after any changes in "root" path index->Freshen all files must be done.
Now not need to have ChibiStudio folder for having access to Chibios.
User avatar
Chudik
Posts: 152
Joined: Fri Jan 16, 2015 7:51 am
Has thanked: 7 times
Been thanked: 1 time

Re: Starting from scratch again... On SW4STM32 now

Post by Chudik »

Giovanni
One thing makes a big trouble
I have same project and same environment on two computers (almost - on one computer I have partition E: for ChibiStudio and on another substitute for this drive)
On one computer I have no problem.
On another project uses wrong header file for defining such things like GPIOA (in thread "Blinker").
For unknown for me reason it uses KINETIS mk20d5.h instead of ST stm32l152xe.h

If I physically delete directory KINETIS, it uses pal_lld.h that redefines GPIOA, but does not redefine GPIOA_BASE

Any ideas?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Starting from scratch again... On SW4STM32 now

Post by Giovanni »

Frankly no idea...

Giovanni
User avatar
Chudik
Posts: 152
Joined: Fri Jan 16, 2015 7:51 am
Has thanked: 7 times
Been thanked: 1 time

Re: Starting from scratch again... On SW4STM32 now

Post by Chudik »

The interesting thing that project compiles and works. However, the fact, that for GPIOA it shows another .h file and can't find GPIOA_BASE scares me.
User avatar
Chudik
Posts: 152
Joined: Fri Jan 16, 2015 7:51 am
Has thanked: 7 times
Been thanked: 1 time

Re: Starting from scratch again... On SW4STM32 now

Post by Chudik »

Regarding debug interface for the custom board with this IDE

For the reference of all ports and required peripheral I used CubeMX and created empty project for the board - just initialization. After compilation loaded to to my custom board. The IDE created .cfg file for debugging interface and I copied it to my ChibiOS project in this IDE.

Seems like this is the easiest way.

And using CubeMX helped me to understand what needed to add to configuration XML file for my board.
User avatar
Chudik
Posts: 152
Joined: Fri Jan 16, 2015 7:51 am
Has thanked: 7 times
Been thanked: 1 time

Re: Starting from scratch again... On SW4STM32 now

Post by Chudik »

Amount of problems for adapting ChibiOS (really great RTOS) for another environment with a custom board exceeds all acceptable limits :(
Can't spend another 2-3 months to get basic functionality (LED blink + Shell). I'm going to switch to another system that is not so great that been used by my buddy for MSP430. It is actually a simple scheduler and it uses just a couple HW related peripherals that could be transferred to STM32.

Will be glad if anybody find this thread useful and solve the problems I meat on this way.
Post Reply