mysterious problem on dspic debugger.

Post your requests and ideas on the future development of mikroC PRO for PIC.
Post Reply
Author
Message
fco1233
Posts: 7
Joined: 11 Nov 2010 22:44

mysterious problem on dspic debugger.

#1 Post by fco1233 » 05 Aug 2011 03:03

I have a normal program for dspic so everyting was rigth, and the micro used to run well.
but
one day i just made a constant array bigger, and everyting change.

if the size of the array it is like this. there is no issue.
const unsigned char senorial [275][8]

if i just change the array size to this, "nothing else". the program doesnt return from the functions.
const unsigned char senorial [345][8]

Do you know why??

Code: Select all


sbit en_Driv at LATB.B8;
sbit latch   at LATB.B9;
sbit clk     at LATB.B10;
sbit ser_r_1 at LATB.B11;
sbit ser_b_1 at LATB.B12;                   //outputs
sbit ser_g_1 at LATB.B13;
sbit ser_r_2 at LATB.B14;
sbit ser_b_2 at LATB.B15;
sbit ser_g_2 at LATF.B4;
sbit led2 at LATG.B2;


 unsigned char N_bt=0 absolute 0x0817;
unsigned char color_count=0 absolute 0x0818;
//unsigned char  borrar,eliminar;
unsigned char reloj_in, lumi, inc,dec,borrar,eliminar;
unsigned int dato=0x820, salto;
unsigned char num_bit=16, num_par=48;
unsigned char col, ren, use;
unsigned int  N_column, cnt;

//unsigned char RGB_led[4][4][12][2][2]={1,2,3,4,5,6,7,8,9,0,0,0} absolute 0x0820;
unsigned char screen_led[16][48]={1,2,3,4,5,6,7,0,0,0,0,0} absolute 0x0820;

//#pragma orgall 0x8000


const unsigned char red = 1;
const unsigned char green = 2;
const unsigned char blue = 4;
const unsigned char yellow = 3;
const unsigned char cian = 6;
const unsigned char pink = 5;
const unsigned char white = 7;
const unsigned char empty = 0;
                        //81
const unsigned char  senorial [345][8]={

7,7,7,7,7,7,7,7,
7,6,6,6,6,6,7,7,
7,6,6,6,6,6,7,7,
7,6,6,3,3,3,3,3,
1,4,1,3,4,4,4,3,
1,4,1,3,4,3,4,3,
1,4,4,4,4,3,4,3,
1,1,1,1,1,1,1,7,
4,7,4,4,4,4,4,7,
4,7,4,7,4,7,4,7,
4,7,4,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5,5,5,0,7,
7,0,0,0,0,0,0,7,
7,5,5,5,5,5,5,7,
7,0,0,0,5,0,5,7,
7,0,0,5,5,0,5,7,
7,5,5,0,0,5,0,7,
7,0,0,0,0,0,0,7,
7,5,5,5,5,5,5,7,
7,0,0,0,0,5,0,7,
7,0,0,0,5,0,0,7,
7,0,0,5,0,0,0,7,
7,0,0,0,5,0,0,7,
7,0,0,0,0,5,0,7,
7,5,5,5,5,5,5,7,
7,0,0,0,0,0,0,7,
7,5,0,0,0,0,5,7,
7,5,5,5,5,5,5,7,
7,5,0,0,0,0,5,7,
7,0,0,0,0,0,0,7,
7,5,5,5,5,5,5,7,
7,5,0,0,0,0,0,7,
7,5,0,0,0,0,0,7,
7,5,0,0,0,0,0,7,
7,0,0,0,0,0,0,7,
7,0,5,5,5,5,0,7,
7,5,0,0,0,0,5,7,
7,5,0,0,0,0,5,7,
7,5,0,0,0,0,5,7,
7,0,5,5,5,5,0,7,
7,0,0,0,0,0,0,7,
7,5,5,5,5,5,5,7,
7,0,0,0,5,0,0,7,
7,0,0,5,0,0,0,7,
7,0,5,0,0,0,0,7,
7,5,5,5,5,5,5,7,
0,0,0,0,0,0,0,0,
                //346
} ;


/*
sbit data_byt_in at PORTD.B0;
sbit clk_in at PORTD.B9;             //inputs
sbit clk_in2 at PORTD.B8;
sbit SDI at PORTF.B2;
 */


#pragma orgall 0x8000



void TIMER1() iv  IVT_ADDR_T1INTERRUPT{

  led2=~led2;

  en_Driv=0;
  latch=0;
  clk=0;

    salto =  num_bit*2;    //multiply by 2 because the bra´s
    asm MOV    _salto, WREG //move _salto(2 bytes) to wreg
    asm BRA    WREG

    asm BRA  next           //this lines doesnt have operation
    asm BRA  next       //this lines doesnt have operation
    W5 =  0x820+48;        //memory num_bit==1 goes to position 96
    asm BRA  next
    W5 =  0x820+0;        //memory num_bit==2 goes to position 144
    asm BRA  next
    W5 =  0x820+49;        //memory num_bit==3 goes to position 97
    asm BRA  next
    W5 =  0x820+1;        //memory num_bit==4 goes to position 145
    asm BRA  next
    W5 =  0x820+50;        //memory num_bit==5 goes to position 98
    asm BRA  next
    W5 =  0x820+2;        //memory num_bit==6 goes to position 146
    asm BRA  next
    W5 =  0x820+51;        //memory num_bit==7 goes to position 99
    asm BRA  next
    W5 =  0x820+3;        //memory num_bit==8 goes to position 147
    asm BRA  next
    W5 =  0x820+147;        //memory num_bit==9 goes to position 4
    asm BRA  next
    W5 =  0x820+99;        //memory num_bit==10 goes to position 51
    asm BRA  next
    W5 =  0x820+146;        //memory num_bit==11 goes to position 3
    asm BRA  next
    W5 =  0x820+98;        //memory num_bit==12 goes to position 50
    asm BRA  next
    W5 =  0x820+145;        //memory num_bit==13 goes to position 2
    asm BRA  next
    W5 =  0x820+97;        //memory num_bit==14 goes to position 49
    asm BRA  next
    W5 =  0x820+144;        //memory num_bit==15 goes to position 1
    asm BRA  next
    W5 =  0x820+96;        //memory num_bit==16 goes to position 48

    asm next:
   
    W5=W5+num_par;

  asm MOV.B   [W5], WREG4 //move w
  ser_r_1=WREG4.B0;
  ser_g_1=WREG4.B1;
  ser_b_1=WREG4.B2;
  
  asm MOV.B   [W5+192], WREG4 //move w
  ser_r_2=WREG4.B0;
  ser_g_2=WREG4.B1;
  ser_b_2=WREG4.B2;



  if(--num_bit==0)
  {num_bit=16;
   num_par-=4;
   if(num_par==252)
     {
      clk=1;
     num_par=48;
     latch=1;
     }
  }

   clk=1;
  T1IF_bit=0;         //flag of timer1 interrupt =0
}

void draw_quare  (char x1,char y1,char x2,char y2,char color)
{
      for(ren=x1;ren<x2;ren++)
      for(col=y1;col<y2;col++)
        {  
          screen_led[col][ren]=color;
          Delay_us(10);
        }
}
void delete_screen ()
{
  for(col=0;col<16;col++)
  for(ren=0;ren<48;ren++)
   { screen_led[col][ren]=0;
    // Delay_us(100);
   }

}

void corrimineto_abajo()  {

    for(ren=1;ren<16;ren++)
     for(col=0;col<8;col++)
      screen_led [col][ren-1] = screen_led [col][ren];
}
void corrimineto_arriba() {

    for(ren=15;ren>0;ren--)
     for(col=0;col<8;col++)
      screen_led [col][ren] = screen_led [col][ren-1];
}

void corrimineto_izq() {

    for(col=1;col<8;col++)
    { for(ren=0;ren<16;ren++)
      screen_led [col-1][ren] = screen_led [col][ren];
    }
}


void anuncio(unsigned int ini_img, unsigned int end_img) {


   for(N_column = ini_img; N_column < end_img ; N_column++)
   {
       corrimineto_arriba();
       for(cnt=0; cnt<8; cnt++)
       screen_led[cnt][0] = senorial [N_column][cnt];
       Delay_ms(32);
   }
      for(N_column=0; N_column < 16 ; N_column++)
   {
       corrimineto_arriba();
       Delay_ms(32);
   }

}

void anuncio_slow(unsigned int ini_img, unsigned int end_img) {


   for(N_column = ini_img; N_column < end_img ; N_column++)
   {
       corrimineto_arriba();
       for(cnt=0; cnt<8; cnt++)
       screen_led[cnt][0] = senorial [N_column][cnt];
       Delay_ms(50);
   }
      for(N_column=0; N_column < 16 ; N_column++)
   {
       corrimineto_arriba();
       Delay_ms(50);
   }

}



void main()    {

ADPCFG = 0xFFFF;  // Configure AN pins as digital I/O

TRISB.B8 = 0;          //outputs
TRISB.B9 = 0;
TRISB.B10 = 0;
TRISB.B11 = 0;
TRISB.B12 = 0;
TRISB.B13 = 0;
TRISB.B14 = 0;
TRISB.B15 = 0;
TRISF.B4 = 0;
TRISG.B2 = 0;





ser_r_1=0;
ser_g_1=0;
ser_b_1=0;
ser_r_2=0;
ser_g_2=0;
ser_b_2=0;
en_Driv=1;
latch=0;
clk=0;


 led2=1;
 Delay_ms(500);
 led2=1;
 //Delay_ms(500);
 led2=0;
// Delay_ms(500);
 led2=1;
// Delay_ms(500);
 led2=0;
 //Delay_ms(500);

    



TMR1=0;
TCKPS_0_bit =0;     //prescler 1:1
TCKPS_1_bit =0;
TON_bit=1;           //timer in on!!

PR1=600;              //value to compare with tmr1

T1IF_bit=0;         //flag of timer1 interrupt =0
T1IE_bit=1;         //enable timer1 interrupt

/*
SPI1_Init_Advanced(_SPI_MASTER, _SPI_16_BIT, _SPI_PRESCALE_SEC_1, _SPI_PRESCALE_PRI_1, _SPI_SS_DISABLE, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_HIGH, _SPI_ACTIVE_2_IDLE);
SPI1IE_bit=0;
SPI1IF_bit=0;
*/
 

 while(1){


    delete_screen();
  

  
  for(ren=0;ren<16;ren++)
  for(col=0;col<8;col++)
    {
    screen_led[col][ren]=1;
    Delay_ms(10);
    screen_led[col][ren]=0;
    }
  
 /* for(col=0;col<8;col++)
  for(ren=0;ren<16;ren++)
    {
    screen_led[col][ren]=2;
    Delay_ms(5);
    screen_led[col][ren]=0;
    }   */
    
  for(ren=0;ren<16;ren++)
  for(col=0;col<8;col++)
    {
    screen_led[col][ren]=4;
    Delay_ms(5);
    }

    delete_screen();
    Delay_ms(1000);
    

    //dormilon_anuncio();
    Delay_ms(1000);
    
    screen_led[6][15]=2;
    screen_led[2][2]=1;
    Delay_ms(100);
    screen_led[3][9]=4;
    Delay_ms(100);
    screen_led[4][5]=1;
    screen_led[5][12]=2;
    Delay_ms(100);
    screen_led[1][0]=4;
    Delay_ms(100);
    screen_led[0][7]=1;
    screen_led[3][3]=2;
    Delay_ms(100);
    screen_led[6][11]=4;
    screen_led[2][10]=2;
    Delay_ms(100);
   

    for(use=0;use<8;use++)
    {
      corrimineto_izq();
    Delay_ms(100);
     }

    /*
    delete_screen();
    Delay_ms(500);
    
    screen_led[1][14]=7;
    Delay_ms(50);
    screen_led[1][13]=6;
    screen_led[7][14]=6;
    Delay_ms(50);
    screen_led[1][12]=5;
    screen_led[7][13]=1;
    Delay_ms(50);
    screen_led[1][11]=4;
    screen_led[7][12]=5;
    Delay_ms(50);
    screen_led[1][10]=3;
   screen_led[7][11]=2;
    Delay_ms(50);
    screen_led[1][9]=2;
   screen_led[7][10]=3;
    Delay_ms(50);
    screen_led[1][8]=1;
   screen_led[7][9]=7;
    Delay_ms(50);



   for(use=0;use<14;use++)
    {
    corrimineto_abajo();
    Delay_ms(100);
     }
    */

  //  Delay_ms(100);
  //  delete_screen();
  //  Delay_ms(500);
    
   /*
    draw_quare(0,0,16,8,red);
    Delay_ms(300);
    for(ren=0;ren<16;ren++)
     for(col=0;col<8;col++)
    {
    screen_led[col][ren]=empty;
    Delay_ms(5);
    }
     */
    delete_screen();
    Delay_ms(500);
  

  
  /*
    draw_quare(1,1,5,5,green);
    Delay_ms(250);
    draw_quare(10,1,15,7,blue);
    Delay_ms(250);
    draw_quare(6,0,9,6,red);
    Delay_ms(250);

    draw_quare(1,4,4,8,pink);
    Delay_ms(250);
    draw_quare(14,3,16,6,yellow);
    Delay_ms(250);
    draw_quare(2,3,9,5,cian);
    Delay_ms(250);
    
    Delay_ms(500);
    delete_screen();
    Delay_ms(500);
    */
   /*

   for(use=0;use<4;use++)
   {
    draw_quare(0,0,16,8,blue);
    Delay_ms(250);
    draw_quare(1,1,15,7,yellow);
    Delay_ms(250);
    draw_quare(2,2,14,6,green);
    Delay_ms(250);
    draw_quare(3,3,13,5,pink);
    Delay_ms(250);
    draw_quare(4,0,12,8,red);
    Delay_ms(250);
    draw_quare(5,1,11,7,cian);
    Delay_ms(250);
    draw_quare(6,2,10,6,white);
    Delay_ms(250);
    }
    Delay_ms(1050);

   */
   // draw_quare(0,0,16,8,white);
   // Delay_ms(1050);
     
     for(ren=0;ren<16;ren++)
     for(col=0;col<8;col++)
    {
    screen_led[col][ren]=empty;
    Delay_us(500);
    }

    for(ren=0;ren<16;ren++)
    for(col=0;col<8;col++)
    {
     screen_led[col][ren]=white;
     Delay_ms(5);
    }
    Delay_ms(1000);
    anuncio(0,81);  //senorial anuncio
    anuncio(81,154);  //coca_cola anuncio
    anuncio_slow(154,192);  //pac_man anuncio
    anuncio(192,243);  //pepsi anuncio
  //  anuncio(243,346);  //dormilon anuncio
  //  pac_man_anuncio();
   // Delay_ms(500);
   // coca_anuncio();
  //  Delay_ms(1000);
  //  pepsi_anuncio();
  //  Delay_ms(1000);

  };
}

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: mysterious problem on dspic debugger.

#2 Post by filip » 11 Aug 2011 09:41

Hi,

Please, can you attach a here a project, in a ZIP of RAR file, that can be compiled so I can test it and reproduce this issue ?
Which version of the compiler are you using ?

Regards,
Filip.

fco1233
Posts: 7
Joined: 11 Nov 2010 22:44

Re: mysterious problem on dspic debugger.

#3 Post by fco1233 » 12 Aug 2011 02:13

Hello.

I have atached the file.
and the version it is mikroc pro for dspic v4.0

Thanks.
Attachments
prog dspic.rar
filmware.
(78.49 KiB) Downloaded 169 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: mysterious problem on dspic debugger.

#4 Post by filip » 12 Aug 2011 08:26

Hi,

Please, can you download the latest version of the compiler and try your example :
http://www.mikroe.com/eng/downloads/get ... 1_v501.zip

Regards,
Filip.

fco1233
Posts: 7
Joined: 11 Nov 2010 22:44

Re: mysterious problem on dspic debugger.

#5 Post by fco1233 » 19 Aug 2011 17:44

Hello.

You were rigth filip, i just changed the version from 4 to 5 and it works.

Thanks a lot.

Post Reply

Return to “mikroC PRO for PIC Wish List”