2013-10-13 10:50 AM
Hi :)
As usual 'Murphy law' i get little problem .... I have connect 3 different USB Stick on 3 Different F429 Disco Board though the microSD connector with no results. I then tried with a USB connector directly connected to the USB dedicated pins with the same no results :( Is it something special to do to made it work ?? From the docs i doesn't see anything special to do for the micro usb port , i have think it will be functional directly with the provided demo ... I formatted them in fat16 and fat32 for be sure and they are 1,2 and 4Gb. Cheers. #discovery #stm32f429 #lcd-tft2013-10-14 04:20 AM
2013-10-14 05:24 AM
I've had it work on F4 and F401 Discovery boards, will peek at it today if I find time.
Consider also if you can get 48 MHz when running at 180 MHz?2013-10-14 08:55 AM
Reading an MSC on the F429 seems to be working Ok (via FW_Upgrade example), uses the HS controller rather than the FS of the prior F4-DISCO. Might want to compare/contrast via a Merge tool of your choice related to pin and configuration differences.
I recall there being a general warning about some of the cheaper drives not using a crystal, and being out of spec wrt timing. Using an 8GB here, dumping FATFS transactions.2013-10-14 11:47 AM
Hi :)
This demo ''LTDC_AnimatedPictureFromUSB'' from the ''\Project\Peripheral_Examples\'' is working .. I have to look deeper into it for know what is the difference that made this one work and not the general demo :) Cheers.2013-10-14 01:10 PM
2013-10-14 02:05 PM
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB , ENABLE);
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12 |
GPIO_Pin_14 |
GPIO_Pin_15;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
GPIO_InitStructure.GPIO_OType = GPIO_OType_OD;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP ;
GPIO_Init(GPIOB, &GPIO_InitStructure);
GPIO_PinAFConfig(GPIOB,GPIO_PinSource14,GPIO_AF_OTG2_FS) ;
GPIO_PinAFConfig(GPIOB,GPIO_PinSource15,GPIO_AF_OTG2_FS) ;
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
GPIO_Init(GPIOB, &GPIO_InitStructure);
RCC_AHB1PeriphClockCmd( RCC_AHB1Periph_OTG_HS, ENABLE) ;
2013-10-14 03:17 PM
I have tried this configuration to setup the board as a USB CDC device plugged to the PC but it is not working :( The PC see the PID and VID but not the informations behind (String of the descriptor).
The micro requests continuously some HS ISR ...I tried the LTDC_AnimatedPictureFromUSB and it is working well with a good USB flash. With the same USB flash, the Demonstration SW is not working, but I think the pin configuration is different from the LTDC. LTDC is coherent to your configuration.Is the pin configuration is the same for configuring the board as USB Host or USB Device ?In your configuration, I think it strange that you setup PB12/14/15 as alternate, but you put the function number for only PB14/15 … What about PB12 ?2013-10-14 03:33 PM
This is directly from the BSP code supplied by ST, presumably the AF mapping remains at the default, or PB12 (ID) isn't important here.
The BSP is for a HOST, it works as supplied reading an external USB Flash Drive. STM32F429I-Discovery_FW_V1.0.0\Projects\FW_upgrade\src\usb_bsp.c2013-10-14 04:45 PM
Consider also if you can get 48 MHz when running at 180 MHz
I'll reiterate my earlier point, because the demo does appear to be compiled for 180 MHz operation, I don't see how USB is going to work from 51.43 MHz, you'd need a PLL_Q of 7.5!?! STM32F429I-Discovery_FW_V1.0.0\Projects\Demonstration\Core\Devices\STM32F4xx\system_stm32f4xx.c