Another CDC/USB issue - 407ZGT6 minimum board

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 12747
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 694 times
Been thanked: 572 times
Contact:

Re: Another CDC/USB issue - 407ZGT6 minimum board

Postby Giovanni » Wed Mar 18, 2020 3:47 pm

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

User avatar
Giovanni
Site Admin
Posts: 12747
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 694 times
Been thanked: 572 times
Contact:

Re: Another CDC/USB issue - 407ZGT6 minimum board

Postby Giovanni » Thu Mar 19, 2020 8:55 am

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

rreignier
Posts: 21
Joined: Sat Apr 15, 2017 11:49 pm
Has thanked: 7 times
Been thanked: 4 times

Re: Another CDC/USB issue - 407ZGT6 minimum board

Postby rreignier » Thu Mar 19, 2020 10:16 am

I have used the USB of a cheap chinese 407VET6 recently, maybe this could help you: https://github.com/romainreignier/BLUE_ ... ni_ChibiOS


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 1 guest