2005-08-12 03:15 AM
sound studio troubles with code banking
2011-05-17 03:08 AM
Hello,
I am using Keil's embedded C with uVision 3 to develop the code for my uPSD3234A. The project that I am doing has grown large and requires me to make use of Keil's code banking features in order to fit it onto the micro controller. Which is fine, I have that working. The problem is that I am also using the uPSD Sound Studio drivers. I was able to edit the drivers so that they can reside in the paged memory areas of my choosing and everything works fine if I play a sound from the code residing in the COMMON area. But if I try to play a sound from the code residing in a bank, strange things happen. The sound will usually play and then go into the next sound and the next sound and then play some clicks until I finally reset the MCU. The sound studio code resides in common memory and the code that is calling it resides in bank #7. And as I said earlier, everything works fine as long as I call the function that plays the sound from code in the COMMON area. Does anyone have any ideas?? Thanks in advance!! 8-)