Main Site Documentation

Music module fails to initialise


#1

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?


#2

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


#3

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


#4

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


#5

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