We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I need to move to RTX5 And I think I have it set up right based on the migration notes. My code in app_main never runs?
void app_main (void const *argument) { //this code never runs uint8_t buf[2]; USBD_Initialize(0); /* USB Device 0 Initialization */ USBD_Connect (0); /* USB Device 0 Connect */ //init OBDGenie device = getDevice(); device->init(); device->probeForGW(); while (1) //usb loop { device->setData(); } } osThreadDef(app_main, osPriorityNormal, 1, 0); int main (void) { HAL_Init(); /* Initialize the HAL Library */ SystemClock_Config(); /* Configure the System Clock */ SystemCoreClockUpdate(); // Update system clock4 osKernelInitialize(); osThreadCreate(osThread(app_main), NULL); osKernelStart(); for (;;); }
[/pre]