Music module fails to initialise

I have a brand new Music Module plugged into socket 6 on a Cobra 2 board but when I call this line of code, it fails saying it could not initialise the music module.


this.music = new GTM.GHIElectronics.Music(6);

This is the debug output


 #### Exception System.Exception - 0x00000000 (1) ####
    #### Message: Failed to initialize MP3 Decoder.
    #### Gadgeteer.Modules.GHIElectronics.Music::.ctor [IP: 00bd] ####
    #### Cobra2Alarm.Program::InitializeModules [IP: 0011] ####
A first chance exception of type 'System.Exception' occurred in GTM.GHIElectronics.Music.dll
An unhandled exception of type 'System.Exception' occurred in GTM.GHIElectronics.Music.dll
Additional information: Failed to initialize MP3 Decoder.

I checked power and there is 3.3V on the board and the 1.8V regulator output is good too.

Any ideas?

As a quick test, I hooked it up to a Fez Hydra with a minimum application and the same results.

I would try to include the module driver code from codeplex directly and debug to see why the constructor fails.

This is known problem in the 4.2 release of the driver. Check out this thread to resolve: https://www.ghielectronics.com/community/forum/topic?id=13121&page=1

1 Like

Cheers. You’re a life saver. :slight_smile: