Skip to main content
DBaya.1
Associate
Jun 4, 2020 12:02 PM UTC
Question

Project with STM32F439VIT6. After activating Ethernet (DP83848) USB DEVICE CDC (Virtual com port) works not more. Can anybody suggest me where to look?

I make a big project with F439 MCU and there are many things on the board like WiFi, BT, EEPROM, Flash, GPS and so on. The latest thing I made was activating ETH and it works good at least ping runs perfect. But later I found that the USB OTG HS CDC which worked perfectly now doesn't work. Win10 can not recognize the USB divice and Terminal programm can not connect to the port (port is visible some how), firmware freezing. I appreciate any suggestions.

This topic has been closed for replies.

5 replies

TDK
Jun 4, 2020 12:49 PM UTC

> firmware freezing

Maybe investigate where/why that's happening.

"If you feel a post has answered your question, please click ""Accept as Solution""."
DBaya.1
DBaya.1Author
Associate
Jun 4, 2020 2:35 PM UTC

In a FaultAnalyzer:

Bus, memory management or usage fault (FORCED)

Precise data access violation (PRECISERR)

Bus Fault Address Register (BFAR): 0x20032720

I also attached a screenshot from Debug window...

TDK
Jun 4, 2020 3:09 PM UTC
That address isn’t within the RAM limit. Only 192kB of ram. So something is accessing memory outside of there. Quite a bit outside. Is your linker script okay?
Might be an overrun in the heap.
"If you feel a post has answered your question, please click ""Accept as Solution""."
DBaya.1
DBaya.1Author
Associate
Jun 5, 2020 8:00 AM UTC

Many thanks TDK. I played around with HEAp and STACK sizes but had no reaction from freezing. Than I have defined which "something" got access beyond the RAM. I forgot to limit wifi data massive which gets the data by IRQ. Result is HardFault.

Piranha
Principal III
Jun 10, 2020 11:32 PM UTC