This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Chipcon CC2510 on Keil

Has anybody in this forum successfully built
a project with chipcon CC2510 micro on Keil
compiler? I understand that all libraries sets
available at Chipcom website are written for
IAR compiler. I am very curios to know if
it is feaseable/possible to use Keil tool?
if not, are there any ways to get around this
issue?

JS

Parents
  • It is determined that the problem is due to
    the MACRO in the hal.h file. The statement
    asm("NOP"); \ caused the problem!!!!

    #define SET_MAIN_CLOCK_SOURCE(source)  \ 
        do {                                \ 
          if(source) {                    \ 
            CLKCON |= 0x40;               \ 
            while(!HIGH_FREQUENCY_RC_OSC_STABLE);  \ 
            SLEEP |= 0x04;                \ 
          }                               \ 
          else {                          \ 
            SLEEP &= ~0x04;               \ 
            while(!XOSC_STABLE);          \ 
            asm("NOP");                   \ 
            CLKCON &= ~0x47;              \ 
            SLEEP |= 0x04;                \ 
          }                               \ 
       } while (0)
    

    Is that true that KEIL does not support "asm("NOP"); " statement? if that is, then what would be an alternative to that statement?

    Thanks in advance.

    JIMMY

Reply
  • It is determined that the problem is due to
    the MACRO in the hal.h file. The statement
    asm("NOP"); \ caused the problem!!!!

    #define SET_MAIN_CLOCK_SOURCE(source)  \ 
        do {                                \ 
          if(source) {                    \ 
            CLKCON |= 0x40;               \ 
            while(!HIGH_FREQUENCY_RC_OSC_STABLE);  \ 
            SLEEP |= 0x04;                \ 
          }                               \ 
          else {                          \ 
            SLEEP &= ~0x04;               \ 
            while(!XOSC_STABLE);          \ 
            asm("NOP");                   \ 
            CLKCON &= ~0x47;              \ 
            SLEEP |= 0x04;                \ 
          }                               \ 
       } while (0)
    

    Is that true that KEIL does not support "asm("NOP"); " statement? if that is, then what would be an alternative to that statement?

    Thanks in advance.

    JIMMY

Children