Yes, that was the reason. I added usb.c, serial_usb.c and also had to add usb_lld.c from os/hal/platforms/STM32/OTGv1/ and now it works fine.
That was the fastest support I ever got, thanks a lot!
Search found 3 matches
- Fri Nov 29, 2013 9:30 am
- Forum: STM32 Support
- Topic: USB-CDC link problem
- Replies: 4
- Views: 3506
- Fri Nov 29, 2013 9:19 am
- Forum: STM32 Support
- Topic: USB-CDC link problem
- Replies: 4
- Views: 3506
Re: USB-CDC link problem
Yeah, I did this. Both USB and SERIAL_USB is enabled
Then in halconf.h
#define HAL_USE_SERIAL_USB TRUE
#define HAL_USE_USB TRUE
- Fri Nov 29, 2013 9:05 am
- Forum: STM32 Support
- Topic: USB-CDC link problem
- Replies: 4
- Views: 3506
USB-CDC link problem
Hello. I am trying to get serial usb working. I start with opening ARMCM4-STM32F407-DISCOVERY demo Keil project (chibios version 2.6.1). It compiles with no problem.
Then in halconf.h
#define HAL_USE_SERIAL_USB TRUE
#define HAL_USE_USB TRUE
and in mcuconf.h
#define STM32_USB_USE_OTG1 TRUE
Now ...
Then in halconf.h
#define HAL_USE_SERIAL_USB TRUE
#define HAL_USE_USB TRUE
and in mcuconf.h
#define STM32_USB_USE_OTG1 TRUE
Now ...