This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52840 usb audio class example only works on debug

I'm using nrf52840 with nRF5_SDK_17.0.0_9d13099 and usbd_audio loopback example.

The example works fine with the given hex file 

but when i compile it myself, the signal seems to have variable type issue.

but in debugging everthings works fine 

I have suspect it's an issue with optimization which mess with the buffer or the signal input, but it seems that removing optimisation option has not resolved the problem.

Maybe someone could share with me their Makefile for the project?

Related