I write subfunction--short Load_single_wav(unsigned char channel_number,unsigned char p3).
When the process into this subfunction. I can find the global variable channel_number_global, but the local variable channel_number is displayed error in "expression". Like this picure.
This subfunction like this.
short Load_single_wav(unsigned char channel_number,unsigned char p3)
{
.......
channel_number_global=channel_number;
MDMA_disable();
.......
}
In the attachment, there is symbol map.