Raspberry Pi HAT for CMX655D EV6550DHAT Figure 8 Geany Build Screen The GUI API calls used to communicate and control CMX655D on the EV6550DHAT are defined in the 655spt.c source file. The EV6550DHAT GUI-specific API commands are further described in the supplied EV6550DHAT_API.doc file. The 655spt.c and 655spt.h files include a number of API calls in addition to those used by the GUI. This facilitates modifications to the GUI or user application to suit the user application or setup. For even more control of the CMX655D via its control registers it is possible to write to and read from the I2C interface directly by using CMX655WriteByte(), CMX655Write(), CMX655ReadByte() and CMX655Read() commands. 9TroubleshootingError ObservedPossible CauseSolution “HATgui” not recognised OS not the latest version Update the Raspberry Pi OS to “Buster” or higher. The necessary files have not been Ensure that GTK3 has been installed installed. before using the EV6550DHAT “HATgui” does not run User does not have “superuser” privileges Either run as a superuser in the Raspberry Pi terminal or run the shell script HATgui.sh from the desktop. Ensure that all executable file permissions are set to “everyone”. Specifically RunGui.sh and HatGui. If necessary the same is true for BuildGui.sh. Playback window closes when Incompatible .wav file format Check that the message “Data format not attempting to open a .wav file. supported” is reported in the terminal. If it is, ensure that .wav file is compatible with the S16_LE, Stereo.wav file format . Dialog message “Sample rate .wav sample is not supported by the Playback sample rates are 8, 16, 32 and not supported” when “HATgui” 48kHz. selecting a sound file. Audio sounds “squeaky” or Wrong sample rate applied to the Ensure that the appropriate sample rate “slow” selected .wav is applied for the selected .wav. It is helpful to include sample rate in the file name. Sound from speaker very Speaker being used is the wrong Use a 4Ω to 8Ω speaker low/noisy impedance 2019 CML Microsystems Plc 10 UM6550DHAT/1 Document Outline User Manual Front Page 1 Introduction 2 CMX655D Ultra-low Power Voice Codec 3 Raspberry Pi Compatibility 4 Power Supplies 5 Handling Precautions 6 Quick Start 6.1 Mounting The EV6550DHAT To The Raspberry Pi 6.2 Software Installation 6.3 GUI Description and Board Operation 7 Supplied Source Code 8 GUI ‘C’ Source Files and Modification 9 Troubleshooting 10 Additional Hardware Information 10.1 Hardware Test Points End of Document