Hi everyone,
I have, I believe, a fairly simple problem to solve, so if anyone would like to help, that would be great.
I'm using the 6713 board and I'm currently trying to test the line in and line out functionality. What I'd like the program to do is receive an audio input to line in and then just pass it immediately to line out. Nothing fancy. The code builds without any errors but when I try to run the program on the board I get a Memory Map Error:
Trouble running Target CPU: Memory Map Error: READ access by CPU to address 0x1b7c100, which is RESERVED in Hardware.
I looked online and found suggestions to add a line to the .gel file, which I did:
GEL_MapAdd(0x01b7c000, 0, 0x00000128, 1, 1); // PLL
I reloaded the .gel file, saved, rebuilt, loaded and still the same error.
Does anything look blatantly wrong? I'm a novice programmer, so forgive me for any huge errors.
Thanks.
Here is the code:
#define CHIP_6713 1
#include "dsk6713_aic23.h" //codec-DSK support file
#include "dsk6713.h"
#include "csl.h"
Uint32 fs=DSK6713_AIC23_FREQ_48KHZ; //set sampling rate
interrupt void c_intll() //interrupt service routine
{
short sample_data;
sample_data = input_sample(); //input data
output_sample(sample_data); //output data
return;
}
void main()
{
comm_intr(); //init DSK, codec, McBSP
while(1); //infinite loop
}