ChibiOS 3.0.0 and serial over usb

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

Moderator: RoccoMarco

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

Re: ChibiOS 3.0.0 and serial over usb

Post by Giovanni »

Differences among boards are all handled in board.h/board.c, any problem could arise is most likely located there. You should verify:
- Clocks (which impact board.h but also settings in mcuconf.h).
- I/O pins setup.

Giovanni
kamil
Posts: 15
Joined: Mon Oct 13, 2014 10:32 pm

Re: ChibiOS 3.0.0 and serial over usb

Post by kamil »

Problem is solved, everybody thanks for patience and help.

If someone is interesting, the problem is in the Keil or ST-Link I think. After compile and load program to the flash, program doesn't start or start incorrectly. If after loading program push reset button, everything inits and STMicroelectronics Virtual COM Port is detected by windows correctly. It is strange, because the "Reset and run" checkbox in the ST-Links configuration is enabled.

One more time thanks Giovanni for help.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: ChibiOS 3.0.0 and serial over usb

Post by Giovanni »

Which version of Keil? I am having problems with 5.10 using ST-Link too.

Giovanni
kamil
Posts: 15
Joined: Mon Oct 13, 2014 10:32 pm

Re: ChibiOS 3.0.0 and serial over usb

Post by kamil »

Giovanni wrote:Which version of Keil? I am having problems with 5.10 using ST-Link too.

Giovanni


I have MDK-ARM ver 4.72.1.0

Before I didn't face with such problem. Only when include ChibiOS to my project I noticed it.
lesto
Posts: 55
Joined: Thu May 22, 2014 11:27 am

Re: ChibiOS 3.0.0 and serial over usb

Post by lesto »

"clean" teshHal from chibios 3.0 github repo (branch master) does not enumerate for me.
branch 2.6.0 gives some error but does work. i'm puzzled

please see dmesg log for USB3 https://gist.github.com/MauroMombelli/5 ... 258700fa6c

full post here (with linux and compiler version) viewtopic.php?f=16&t=2233
Post Reply