I am having a lot of trouble, with the MCB2130 board, trying to get the sample program 'Voice' to load up correctly. I have two MCB2130 Boards. One is supplied with the Cx51 software dated 02.2005 the other is supplied with Cx51 software dated 06.2005 but they both do the same thing. I install the Cx51 software ("D:-ARM-'Setup'"). I open the Cx51 software, then go to "Project-Open Project-C:-Keil-ARM-Boards-Keil-MCB2130-VoicePlayer-Voice.uv2". I then go to 'Options for Target' and click on "Device-LPC2138" then "Output-Create HEX File-HEX Format-HEX386". I then click 'Rebuild Target' and it is built (the Cx51 software dated 06.2005 returns a warning of "'cnt':unreferenced local variable" and although I have been through all the codes and am convinced they are the same, the Cx51 dated 02.2005 does not return this warning). I then open the 'Philips LPC2000 Flash Utility V2.2.3', select "LPC2138-12,000Khz-9600 Baud-Erase-Filename-Voice.hex-Upload to Flash". The device then appears to program normally but no audio can be heard except an initial 'pop'. The lights still run (as per the program). I checked the serial output in Hyper Terminal and it reads: MCB2130 WAVE AUDIO PLAYER Playing Block 1 File information: ================= File Size: : -1 Format identifier : 65535 Number of Channels: 65535 Sampling Rate : -0001 Hz Bytes per Second : -0001 Sample Alignment : ERR Sample resolution : 65535 After checking the example on the Keil website I know these values are wrong. It should read: MCB2130 WAVE AUDIO PLAYER Playing Block 1 File information: ================= File Size: : 61754 Format identifier : 1 Number of Channels: 1 Sampling Rate : 08000 Hz Bytes per Second : 16000 Sample Alignment : WORD Sample resolution : 16 Although, the serial output does continue to update with each new block (so the program is actually running). Both software versions and both boards give me no audio (except inital 'pop'), lights changing slowly (as per the program) and the serial readout above. I have successfully downloaded the other sample programs, it's just this one I am having trouble with. Any advice would be most welcomed.
Before we investigate, you should download the current Eval Version (MDK-ARM) from https://http://www.keil.com/demo/eval/arm.htm The example is in the folder Keil\ARM\RV30\Boards\Keil\MCB2130\VoicePlayer Make sure that the after build commands (HEX2BIN/BIN2HEX) are correctly executed so that the build process shows: 0 Error(S) 0 Warnings(0) Then download the program using ULINK.
Thankyou for your fast response. I have now downloaded the program successfully using ULINK. One question, is the audio information attached to the hex file or is it downloaded afterwards? I only ask because the Phillips Flash Utility still doesn't download this file properly and I think it's because it doesn't attached the audio.
ULINK uses an INI file to read all the HEX file content. If you are using the Philips utility you need to load all the HEX files. Take a look to file flash.ini that is specified under: Project - Utilities - Init File.