This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

bt2540 problem

Other Parts Discussed in Thread: CC2540, CC2550

hello all,

i have a bt2450 board with cc debuger, the smartrf detecting the cc2540 on the board and correctly can program it.

bu i'm using iar 7 version has a lot of differences with 8.11. my samples all on ble based on iar 8.11 and i dont know how to do to be able to load on iar ver 7.xx .

I have connected directly an LED to Po_0 and trying to run simple LED test with 8051 program on C this is the c program

#include <iocc2540.h>
//#include <stdio.h>
int main(void)
{
 int i , j ;
 P0 = 0x00;
 P1 = 0x00 ;
while(1)
{
  for (i = 0; i<255; i++)
    for (j = 0; j<255; j++);
        P0 = 0x00;
        P1 = 0x00;         
  for (i = 0; i<255; i++)
     for (j = 0; j<255; j++) ;
        P0 = 0xff;
        P1 = 0xff;
  }
return 0;
}

I've generated the HEX code and load it to cc2550 and LED is not funcitonig. I have done a lot of changes on the memory model and other linker and compiler setting but the LED blinking on P0 is not functioning .

What is the solutiion ?

Abbas

  • Hi Abbas, 

    If you put a breakpoint in your LED test program, does it ever hit when debugging? If not, I suspect there is an issue in your linker configuration that causes the code not to be run.

    Peder

  • Hi Peder

    The debug also is not functioning properly.

    I have this errors  :

    Unknown or ambiguous symbol.main

    could not go main.

    I have searched the web it looks like that I have problem target information .

    There was not such a target in 7.xx Iar version I have copied from 8.11 .

    what do you guess ?

    BR

    Abbas