Page 2 of 2
Re: Another CDC/USB issue - 407ZGT6 minimum board
Posted: Wed Mar 18, 2020 3:47 pm
by Giovanni
In the HAL enabling LSE only touches the BDCR register, I am unable to see a connection with USB. I need to find a suitable board in order to give it a try.
Giovanni
Re: Another CDC/USB issue - 407ZGT6 minimum board
Posted: Thu Mar 19, 2020 8:55 am
by Giovanni
Hi,
I tested on an Olimex STM32E407 (it is the RT-STM32-LWIP-FATFS-USB project), LSE enabled or disabled makes no difference, USB is working.
It is possible there is a board-specific issue.
My settings (12MHz HSE clock):
Code: Select all
/*
* HAL driver system settings.
*/
#define STM32_NO_INIT FALSE
#define STM32_HSI_ENABLED TRUE
#define STM32_LSI_ENABLED TRUE
#define STM32_HSE_ENABLED TRUE
#define STM32_LSE_ENABLED TRUE
#define STM32_CLOCK48_REQUIRED TRUE
#define STM32_SW STM32_SW_PLL
#define STM32_PLLSRC STM32_PLLSRC_HSE
#define STM32_PLLM_VALUE 12
#define STM32_PLLN_VALUE 336
#define STM32_PLLP_VALUE 2
#define STM32_PLLQ_VALUE 7
#define STM32_HPRE STM32_HPRE_DIV1
#define STM32_PPRE1 STM32_PPRE1_DIV4
#define STM32_PPRE2 STM32_PPRE2_DIV2
#define STM32_RTCSEL STM32_RTCSEL_LSI
#define STM32_RTCPRE_VALUE 8
#define STM32_MCO1SEL STM32_MCO1SEL_HSI
#define STM32_MCO1PRE STM32_MCO1PRE_DIV1
#define STM32_MCO2SEL STM32_MCO2SEL_SYSCLK
#define STM32_MCO2PRE STM32_MCO2PRE_DIV5
#define STM32_I2SSRC STM32_I2SSRC_CKIN
#define STM32_PLLI2SN_VALUE 192
#define STM32_PLLI2SR_VALUE 5
#define STM32_PVD_ENABLE FALSE
#define STM32_PLS STM32_PLS_LEV0
#define STM32_BKPRAM_ENABLE FALSE
Giovanni
Re: Another CDC/USB issue - 407ZGT6 minimum board
Posted: Thu Mar 19, 2020 10:16 am
by rreignier
I have used the USB of a cheap chinese 407VET6 recently, maybe this could help you:
https://github.com/romainreignier/BLUE_ ... ni_ChibiOS