Remote Wakeup signalling on STM32F7xx. My full-speed CDC device doesn't appear to generate the remote wakeup signal.
Environment:
STM32F756
IAR Embedded Workbench IDE - Arm 8.40.1
USB CDC device, Full Speed
FreeRTOS
Problem:
Remote wakeup function does not work. I've set the remote wake-up attribute in the config descriptor. The host enters suspend. My device doesn't wake the host. (I also have a mouse connected, and it can successfully wake the host, so host config is not the problem).
void product_remote_wake(void)
{
// PCD_HandleTypeDef *hpcd = (PCD_HandleTypeDef *)usb_device.pData;
// HAL_PCD_ActivateRemoteWakeup( hpcd );
// as you can see, I've tried multiple approaches, all appear to
// end up pointing to the USB_BASE address at 0x50000000 to do the work
USB_ActivateRemoteWakeup( USB_OTG_FS ); //usb_device ); // USB_OTG_GlobalTypeDef *USBx)
vTaskDelay(pdMS_TO_TICKS(10));
// HAL_PCD_DeActivateRemoteWakeup( hpcd );
USB_DeActivateRemoteWakeup( USB_OTG_FS ); //usb_device ); // USB_OTG_GlobalTypeDef *USBx)
// USB_ActivateRemoteWakeup( hpcd->Instance ); //usb_device ); // USB_OTG_GlobalTypeDef *USBx)
// HAL_PCD_ActivateRemoteWakeup( usb_device.pData );
}