USB on STM32F750.
Posted: Wed May 27, 2020 11:52 am
I'm bringing up a board with an STM32F750.
Chibios CMSIS does not have this CPU, so for now I've started from an STM32F746 example project.
First it ran into an "unhandled exception" for GPIOJ. Last time this happened to me the ST docs indicated that this port didn't exist, this time, as far as I can see the documentation specifies that this GPIO port should exist on my processor (even though I may have zero pins on the outside of the CPU)
Now that I have disabled GPIOJ and GPIOK, it gets stuck at this line:
My board doesn't have VBUSSENSE, so I put
#define BOARD_OTG_NOVBUSSENS
in board.h.
I have adjusted the ld script to reflect the smaller flash size. I think the other memories are the same. Still that doesn't seem to be the problem.
Any suggestions?
Chibios CMSIS does not have this CPU, so for now I've started from an STM32F746 example project.
First it ran into an "unhandled exception" for GPIOJ. Last time this happened to me the ST docs indicated that this port didn't exist, this time, as far as I can see the documentation specifies that this GPIO port should exist on my processor (even though I may have zero pins on the outside of the CPU)
Now that I have disabled GPIOJ and GPIOK, it gets stuck at this line:
Code: Select all
0x00202bf6 in otg_core_reset.isra.3 () at chibios/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c:141
141 while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0)
My board doesn't have VBUSSENSE, so I put
#define BOARD_OTG_NOVBUSSENS
in board.h.
I have adjusted the ld script to reflect the smaller flash size. I think the other memories are the same. Still that doesn't seem to be the problem.
Any suggestions?