Posted on April 29, 2014 at 14:34
Hi guys,
I am in need of your help, unfortunately STs documentation is lacking some information here.
I am basically trying to implement a USB device (CDC-ACM to be precise) that utilizes suspend/wakeu...
Posted on April 29, 2014 at 20:52Got another bug for you:https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fSTM32F4%2c%20USB%20HS%20with%20ULPI%20an...
Posted on April 29, 2014 at 20:51
And of course, THIS was the problem. I reverse engineered the code from the zip file and entered it into the usb stack
I quote from usb_dcd_int.c:
static uint32_t DCD_HandleUSBSuspend_ISR(USB_OTG_C...
Posted on April 29, 2014 at 19:59
Just to let you know, I found something veeeery interesting in the code of the STM32CubeF4 here:
http://www.st.com/web/en/catalog/tools/PF259243#
File:
stm32cubef4.zip\STM32Cube_FW_F4_V1.1.0\Projects\ST...
Posted on April 29, 2014 at 19:18
For the sake of completeness, here is the contents of my Wakeup ISR Handler
void OTG_HS_WKUP_IRQHandler(void)
{
if(USB_OTG_dev.cfg.low_power) {
USB_OTG_CORE_HANDLE* pdev = &USB_OTG_dev;
USB_OTG_GINTST...
Posted on April 29, 2014 at 19:08
Hi!
I found the problem with dev.connection_status, you are right as in that I had to define
#define VBUS_SENSING_ENABLED
#define USB_OTG_INTERNAL_VBUS_ENABLED
to use with my USB3300 ULPI chip. N...