ChibiStudio beginner - how to build community project

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

mravenca
Posts: 7
Joined: Tue Mar 05, 2019 2:18 pm

ChibiStudio beginner - how to build community project

Postby mravenca » Tue Mar 05, 2019 5:12 pm

Hello,
I recently started with ChibiOS.
After some experiments with SW4STM32 I tried using ChibiStudio.
Projects from testhal compile fine, but I have problems with projects from community subdirectory.
When I try to build for example STM3F7xx-USB_MSD which is located in C:\ChibiStudio\chibios182\community\testhal\STM32\STM32F7xx\USB_MSD, I get error:
Makefile:234: ../../../../../ChibiOS-RT/os/common/startup/ARMCMx/compilers/GCC/rules.mk: No such file or directory
make: *** No rule to make target '../../../../../ChibiOS-RT/os/common/startup/ARMCMx/compilers/GCC/rules.mk'. Stop.

Do I have to set up some paths somewhere?

Thank you in advance for reply

Vaclav

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: ChibiStudio beginner - how to build community project

Postby Giovanni » Tue Mar 05, 2019 5:19 pm

Hi,

Projects under community directory are unmaintained, Makefiles and configuration files can be not updated to the latest version standard. If you are interested in something into community then you could have to take makefiles and configuration files from maintained projects and fix differences (take files from projects using the same board, it is much simpler).

Projects outside community are meant to be working out of the box.

Giovanni

mravenca
Posts: 7
Joined: Tue Mar 05, 2019 2:18 pm

Re: ChibiStudio beginner - how to build community project

Postby mravenca » Tue Mar 05, 2019 5:51 pm

Dear Giovanni,
thank you for a quick reply.
Actually what I am looking for is a working example of USB Host, which can be either for STM32F4-Discovery or STM32F767ZI-Nucleo, as those are the boards that I have.
Vaclav

mravenca
Posts: 7
Joined: Tue Mar 05, 2019 2:18 pm

Re: ChibiStudio beginner - how to build community project

Postby mravenca » Tue Mar 05, 2019 8:55 pm

The RT-STM32-LWIP-FATFS-USB demo looks promising. Just have to change a few things in the configuration files and hopefully it is going to work :)

Vaclav

mravenca
Posts: 7
Joined: Tue Mar 05, 2019 2:18 pm

Re: ChibiStudio beginner - how to build community project

Postby mravenca » Sat Mar 09, 2019 7:58 pm

The demo RT-STM32-LWIP-FATFS-USB works. I bought STM32F746-Discovery board 8-) I already added there uGFX.

However, I also had a look at demo for SPI (from testhal\STM32\STM32F7xx\SPI\). This demo works too, but when I tried to integrate it into RT-STM32-LWIP-FATFS-USB, the system hangs.

I think it can be a problem with memory, because in RT-STM32-LWIP-FATFS-USB there is already relatively a lot of threads.

Any suggestions what to check? Thanks

Vaclav

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: ChibiStudio beginner - how to build community project

Postby Giovanni » Sat Mar 09, 2019 8:01 pm

Check for DMA conflicts in mcuconf.h. The number of threads does not matter unless you got stack sizes wrong.

Giovanni

mravenca
Posts: 7
Joined: Tue Mar 05, 2019 2:18 pm

Re: ChibiStudio beginner - how to build community project

Postby mravenca » Sat Mar 09, 2019 9:00 pm

There doesn't seem to be a DMA conflict. However if eventually it was, I found this in mcuconf.h:

#define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")

If system halts, how I can see this message("DMA failure")?

Thanks

Vaclav

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: ChibiStudio beginner - how to build community project

Postby Giovanni » Sat Mar 09, 2019 9:08 pm

Hi,

Find the procedures and indications here: http://www.chibios.org/dokuwiki/doku.ph ... ebug_guide

You need to enable debug options, a lot of problems are caught by assertions and other mechanisms.

Giovanni

mravenca
Posts: 7
Joined: Tue Mar 05, 2019 2:18 pm

Re: ChibiStudio beginner - how to build community project

Postby mravenca » Sat Mar 09, 2019 9:12 pm

Thank you very much. Despite I successfully integrated uGFX I am still a newbie to ChibiOS. I play with it for a few days.

Vaclav


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 27 guests