STM32f3 + Virtual COM port + proprietary ST library
Posted: Thu Mar 20, 2014 12:13 pm
Hello,
I'm quite newbie in RTOS and especially in ChibiOS. And I like the concept etc..
I'm trying to create Virtual COM port with proprietary ST peripheral drivers. Without the OS, the code is running correctly. But as soon as I add the code to a task and cal init of OS and HAL (just now, almost everything is dissabled and only hal_lld_init() is called).
So the issue is, that the SW runs for couple of second and than it jump to HardFaultVector. But until this happend, I can see that it work correctly. I can see new device (Virtual COM port) in Linux. Temporary I only commented out relocation of USB IRQ in (hal_lld_init). I don't see any association (ass plug in USB etc.)
Can anybody give me some hints?
main file: http://pastebin.com/NuU39Xre
st lib config: http://pastebin.com/t45gEqNR
hal_lld.c: http://pastebin.com/sPSvQ8L0
Thank you
I'm quite newbie in RTOS and especially in ChibiOS. And I like the concept etc..
I'm trying to create Virtual COM port with proprietary ST peripheral drivers. Without the OS, the code is running correctly. But as soon as I add the code to a task and cal init of OS and HAL (just now, almost everything is dissabled and only hal_lld_init() is called).
So the issue is, that the SW runs for couple of second and than it jump to HardFaultVector. But until this happend, I can see that it work correctly. I can see new device (Virtual COM port) in Linux. Temporary I only commented out relocation of USB IRQ in (hal_lld_init). I don't see any association (ass plug in USB etc.)
Can anybody give me some hints?
main file: http://pastebin.com/NuU39Xre
st lib config: http://pastebin.com/t45gEqNR
hal_lld.c: http://pastebin.com/sPSvQ8L0
Thank you