How to create a custom board project?

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

Moderator: RoccoMarco

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

Re: How to create a custom board project?

Post by Giovanni »

Is that a newly created eclipse workspace? if so disable the static analyzer in Eclipse C/C++ settings, those are not compilation errors but analyzer errors caused by bad setup.

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

Re: How to create a custom board project?

Post by Chudik »

Yes, it is there. You are probably right. Because, when I go to the source code and require to show implementation, it goes to the structure definition and those members of the structure are in place. That drives me nuts.
And why there are not such errors for the predefined boards like Nucleo? That project also prepared in the other eclipse workspace.

Could you remind me where is that static analyzer located?
User avatar
Chudik
Posts: 152
Joined: Fri Jan 16, 2015 7:51 am
Has thanked: 7 times
Been thanked: 1 time

Re: How to create a custom board project?

Post by Chudik »

The interesting thing that project could be compiled and it generates output files. However, It does not communicate with PC through shell.
And I don't have a LED on board, to check, whether the whole system is working. Probably need to find place to put an LED to somewhere. :roll:
User avatar
Chudik
Posts: 152
Joined: Fri Jan 16, 2015 7:51 am
Has thanked: 7 times
Been thanked: 1 time

Re: How to create a custom board project?

Post by Chudik »

also got error messages

Code: Select all

Description   Resource   Path   Location   Type
Field 'chDbgAssert(tp->p_state == CH_STATE_SNDMSG, "invalid state")' could not be resolved   chmsg.c   /FW-0134_CHM3/os/os/rt/src   line 147   Semantic Error
Field 'msg_insert(ctp, &tp->p_msgqueue)' could not be resolved   chmsg.c   /FW-0134_CHM3/os/os/rt/src   line 95   Semantic Error
Field 'p_msg' could not be resolved   chmsg.c   /FW-0134_CHM3/os/os/rt/src   line 93   Semantic Error
Field 'p_msgqueue' could not be resolved   chmsg.c   /FW-0134_CHM3/os/os/rt/src   line 94   Semantic Error
Field 'p_msgqueue' could not be resolved   chmsg.c   /FW-0134_CHM3/os/os/rt/src   line 127   Semantic Error

etc, etc....

All these messages appear only when I go inside the source code during debugging.
Definitely there is some one global error in configuration. But which one, where is it?!!! :?: :roll:
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: How to create a custom board project?

Post by RoccoMarco »

Hi Chudik,
this thread is going far away from initial topic. This create confusion for readers and It makes us hard to help. For next time please open a new topic for each single problem.
Ciao
User avatar
Chudik
Posts: 152
Joined: Fri Jan 16, 2015 7:51 am
Has thanked: 7 times
Been thanked: 1 time

Re: How to create a custom board project?

Post by Chudik »

Hi RoccoMarco,
I understand, but I don't know how even call the new thread :)
Besides, looks like nobody else trying to use a custom board outside of ChibiStudio and I'm trying to keep all my problems with it more compact. Hopefully, when I solve my problems with running this condiguration I can write some kind of guide
Post Reply