Dear All,
Error message in MikroC "Not enough RAM for call stack __Lib_Delays.c". This occurs when following beep() function containing Sound_Play routine is called 2 times or more in main(). One time calling is okay. I am using PIC16F628A and MikroC Pro for pic compiler. May be the problem is related with the delay routines. I use a good number of delays in my code.
Any hint that might solve the problem, is welcome. Thanks.
MikroC Pro for PIC code:
void beep() {
Sound_Init (&PORTA, 2);
Sound_Play(600,500);
my_delay_500();
Sound_Play(800,500);
my_delay_500();
}