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.

Compiling the DEMO project for the (EZ430-2560) MSP430BT5190 in CCS

Hello,

     I am used to using the IAR IDE for MSP430 at was avaliable in my University. However when I bought one of the new EZ430-RF2560 bluetooth kits i was dissapointed to find that the code for the included demo project was too big for the Kickstart edition to support. After having a look around I decided to try CCS. I was pleased by the fact that it resembles Eclipse (on which it is based) as I am fairly familiar with this IDE.

After setting up a project I began importing the demo source files all seemed to be going well until I got these errors

**********************************************************************************************************************

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 2:

 [E0002]

         Illegal mnemonic specified

#include "FreeRTOSConfig.h"

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 5:

 [E0002]

         Illegal mnemonic specified

        EXTERN usCriticalNesting

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 6:

 [E0002]

         Illegal mnemonic specified

    EXTERN pxCurrentTCB

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 7:

 [E0002]

         Illegal mnemonic specified

    EXTERN vTaskIncrementTick

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 8:

 [E0002]

         Illegal mnemonic specified

    EXTERN vTaskSwitchContext

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 9:

 [E0002]

         Illegal mnemonic specified

    EXTERN prvSetupTimerInterrupt

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 10:

 [E0002]

         Illegal mnemonic specified

    EXTERN vApplicationTickHook

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 12:

 [E0002]

         Illegal mnemonic specified

    PUBLIC vPortYield

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 13:

 [E0002]

         Illegal mnemonic specified

        PUBLIC xPortStartScheduler

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 15:

 [E0002]

         Illegal mnemonic specified

portSAVE_CONTEXT MACRO

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 36:

 [E0002]

         Illegal mnemonic specified

       ENDM

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 39:

 [E0002]

         Illegal mnemonic specified

portRESTORE_CONTEXT MACRO

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 63:

 [E0002]

         Illegal mnemonic specified

       ENDM

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 66:

 [E0002]

         Illegal mnemonic specified

ORG 0F500h

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 69:

 [E0002]

         Illegal mnemonic specified

       portSAVE_CONTEXT

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 73:

 [E0002]

         Illegal mnemonic specified

       #if configUSE_TICK_HOOK == 1

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 77:

 [E0002]

         Illegal mnemonic specified

       #endif

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 79:

 [E0002]

         Illegal mnemonic specified

       #if configUSE_PREEMPTION == 1

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 81:

 [E0002]

         Illegal mnemonic specified

       #endif

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 83:

 [E0002]

         Illegal mnemonic specified

       portRESTORE_CONTEXT

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 107:

 [E0002]

         Illegal mnemonic specified

       portSAVE_CONTEXT

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 113:

 [E0002]

         Illegal mnemonic specified

       portRESTORE_CONTEXT

 

24 Assembly Errors, No Assembly Warnings

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at line 125:

 [E0002]

         Illegal mnemonic specified

       portRESTORE_CONTEXT

 

"../export/FreeRTOS/Source/portable/IAR/MSP430/portext.s43", ERROR!   at EOF:

 [E0300]

         The following symbols are undefined:

  pxCurrentTCB

  usCriticalNesting

  prvSetupTimerInterrupt

  vTaskIncrementTick

  vTaskSwitchContext

  vApplicationTickHook

 

Errors in Source - Assembler Aborted

 

 

*****************************************************************************************************************************

 

I assume that the keywords #include and EXTERN seem to be the issue here. Should these be replaced with somr declaration?
Below is the file itself
** Apologies for the general layout of the question, I don't suppose can do [code] or [spoiler] boxes on this forum?
********************************************************* portext.s43 *********************************************************
#include "FreeRTOSConfig.h"
         EXTERN usCriticalNesting
    EXTERN pxCurrentTCB
    EXTERN vTaskIncrementTick
    EXTERN vTaskSwitchContext
    EXTERN prvSetupTimerInterrupt
    EXTERN vApplicationTickHook
    PUBLIC vPortYield
         PUBLIC xPortStartScheduler
portSAVE_CONTEXT MACRO
        pushx.a    r4
        pushx.a    r5
        pushx.a    r6
        pushx.a    r7
        pushx.a    r8
        pushx.a    r9
        pushx.a    r10
        pushx.a    r11
        pushx.a    r12
        pushx.a    r13
        pushx.a    r14
        pushx.a    r15
        movx.w   &usCriticalNesting, r15
        pushx.w    r15
        movx.w   &pxCurrentTCB, r12
        movx.w   r1, 0(r12)
        ENDM
portRESTORE_CONTEXT MACRO
        movx.w   &pxCurrentTCB, r12
        movx.w   @r12, r1
        popx.w     r15
        movx.w   r15, &usCriticalNesting
        popx.a             r15
        popx.a             r14
        popx.a             r13
        popx.a             r12
        popx.a             r11
        popx.a             r10
        popx.a             r9
        popx.a             r8
        popx.a             r7
        popx.a             r6
        popx.a             r5
        popx.a             r4
        reti
        ENDM
ORG 0F500h
vTickISR
        portSAVE_CONTEXT
        calla    #vTaskIncrementTick
        #if configUSE_TICK_HOOK == 1
        calla    #vApplicationTickHook
        #endif
        #if configUSE_PREEMPTION == 1
                calla    #vTaskSwitchContext
        #endif
        portRESTORE_CONTEXT
        
vPortYield:
        pushx.w    SR
        dint
        bicx.w #0xF000,0(r1)
        swpbx.w +4(r1)
        rlax.w +4(r1)
        rlax.w +4(r1)
        rlax.w +4(r1)
        rlax.w +4(r1)
        addx.w +4(r1),0(r1)
        movx.w +2(r1),+4(r1)
        movx.w 0(r1),+2(r1)
        incdx.a r1
        portSAVE_CONTEXT
        calla #vTaskSwitchContext
        portRESTORE_CONTEXT
xPortStartScheduler:
        calla    #prvSetupTimerInterrupt
        portRESTORE_CONTEXT
END
*************************************************************************************************************************************