AnsweredAssumed Answered

STM32F429I-DISCO USB FW Upgrade code issue

Question asked by Clive One on Oct 16, 2013
Latest reply on Oct 23, 2013 by Amel N
STM32F429I-Discovery_FW_V1.0.0\Projects\FW_upgrade\src\usb_bsp.c

PE1 (SDRAM NBL1) is NOT the over current pin, OTG_FS_OC is PC4 per the schematic

#define HOST_OVRCURR_PORT                  GPIOE
#define HOST_OVRCURR_LINE                  GPIO_Pin_1
#define HOST_OVRCURR_PORT_SOURCE           GPIO_PortSourceGPIOE
#define HOST_OVRCURR_PIN_SOURCE            GPIO_PinSource1
#define HOST_OVRCURR_PORT_RCC              RCC_APB2Periph_GPIOE
#define HOST_OVRCURR_EXTI_LINE             EXTI_Line1
#define HOST_OVRCURR_IRQn                  EXTI1_IRQn

This is compounded elsewhere with an EXTI Interrupt Handler
STM32F429I-Discovery_FW_V1.0.0\Projects\FW_upgrade\src\stm32f4xx_it.c

Not sure any of this is used here, but it clearly came from somewhere else.

Also the USE_ACCURATE_TIME makes assumptions about the TIMCLK being 72 MHz (6 * 12), which again needs more thought in the porting.

Outcomes