AnsweredAssumed Answered

USB audio stop enumerate after adding usart3

Question asked by dimtass on Jul 2, 2016
Latest reply on Jul 2, 2016 by dimtass
Hi all!

I'm trying to implement a usb audio sound card with stm32f4 discovery and then build an external DAC and headphone amp. I've found an excellent source code from tjaekel, which has everything I need to begin with here:

I've downloaded the source code, compiled it in coocox and it's working perfectly. I've only changed the HSE_VALUE value to meet the external 8MHz crystal of the board.

Then I've tried to add a usart port (USART3) for debugging and also sending commands to the stm32 in order to change some future DSP params. The thing is that if add these files to project, even if I don't really use them; or make any reference to functions from these files in the existing code, the project compiles but the USB stops to enumerate... If I remove these files it works again fine. The new added files are usart3.h, usart3.c and printf.c.

This is very weird. Do you have any idea what the problem might be? I've also used different compilers and I still get the same issue.

The stm32f407 seems not to be hanging as I've used the orange led as heartbeat and also the usart prints out the strings without any problem. Therefore, the interrupts seems to be triggered and the processor operates. Only the USB enumeration stops.

I've uploaded the Coocox project here:

I appreciate any feedback. Thanks!