Hi,
I hope someone can help. I try to play with µVision 5.10 and RTE on STM32F4Discovery board. I would like to implement an USB device with VCP. I install all needed components in RTE and configure everything in RTE-Device.h, RTX_Conf_CM.c, USBD_Config_0.c and USBD_Config_CDC_0.h. in Main.c I try the following:
... extern ARM_DRIVER_USBD Driver_USBD0; ... int main (void) { ... Driver_USBD0.Initialize (NULL,0); Driver_USBD0.PowerControl (ARM_POWER_FULL); Driver_USBD0.DeviceConnect(); ... while(1){ ... } }
I can compile without error or warnings. But when I try to run, I run into hardfault handler. What did I have to do, to get this working? I think I need to configure some more things, like endpoints and so on?! But how or where? I need no code, only the steps to do and maybe the name of the needed files. Pseudocode maybe also ok. Sorry about my bad english.
Greetings Hans
View all questions in Keil forum