This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Luminary Class-d library + RTX = Hard Fault

I'm wondering if anyone can help me out with this issue? I'm using a Luminary LM3S3748 Cortex-M3 with the provided Luminary Class-d amp library to play PCM audio data. Every thing works great as long as I start playback (using their ClassDPlayPCM function) before entering RTX.

If I Start play back once the RTOS is running, I receive a hard fault on the line

    ROM_IntEnable(INT_PWM1);


which enables the PWM irq. It is also worth noting that I can begin playback then immediately call os_sys_init and both the RTOS and audio playback run concurrently as expected.

On inspection of the fault registers the Forced bit of the Hard Fault Register is set and the Bfarvalid and Preciserr bits are set in the Bus Fault Status Register.

I'll admit that I'm not that familiar with PWM's which is why I've opted to try and use the Luminary provided Libraries. Did I miss anything obvious? What would cause a fault when enabling an irq while RTX is running? Any help is appreciated.