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.

Porting Contiki on MSP430F5529 Launchpad

Other Parts Discussed in Thread: MSP430F5529, MSP430F249

Hi all,

As topic mentioned, I'm trying to complete this task (using MSP430F5529 Launchpad througout Linux OS) but I have some problems. After I write these files: contiki-mymote-main.c, makefile, contiki-conf.h. I also edit something another files. But when I try to compile as following:

  • cd /contiki/examples/test
  • make TARGET=mymote test

The screen displayed an error (screenshoot for error attached file). Mind you evaluate and give feedback about this?

Regards,
Trieu

  • The compilation of the watchdog_init function is failing since it is trying to use the IFG1 and IE1 registers, which don't exist in the MSP430F5529 device.

    From looking the Contiki 2.6 watchdog.c source file (at http://contiki.sourceforge.net/docs/2.6/a00755_source.htmlCONTIKI_TARGET_WISMOTE is defined then the watchdog.c source file will use the SFRIFG1 and SFRIE1 registers to enable watchdog interrupts, where the SFRIFG1 and SFRIE1 registers are present in a MSP430F5529 device:

    00103 void
    00104 watchdog_init(void)
    00105 {
    00106   /* The MSP430 watchdog is enabled at boot-up, so we stop it during
    00107      initialization. */
    00108   counter = 0;
    00109   watchdog_stop();
    00110 #if CONTIKI_TARGET_WISMOTE
    00111   SFRIFG1 &= ~WDTIFG;
    00112   SFRIE1 |= WDTIE;
    00113 #else
    00114   IFG1 &= ~WDTIFG;
    00115   IE1 |= WDTIE;
    00116 #endif
    00117 }

    [I haven't used Contiki so can't comment on how to configure the build to define CONTIKI_TARGET_WISMOTE.

  • Hi all,

    I also correct this error but there is still another error. I think that there are some value does not compatible with MSP430F5529 but I do not know how to find these value on MSP430F5529 (these error value in MSP430F2xxx0)! Mind you give me feedback about above error?

    Regards,

  • Thanh Nguyen14 said:
    I think that there are some value does not compatible with MSP430F5529 but I do not know how to find these value on MSP430F5529 (these error value in MSP430F2xxx0)

    Which version of Contiki are you porting?

    The cpu/msp430/f5xxx/clock.c at http://contiki.sourceforge.net/docs/2.6/a00700_source.html doesn't use the MSP430F2xxx0 register values, and looks like it should compile for a MSP430F5529. [I haven't tried compiling it myself]

  • Chester Gillon said:

    Which version of Contiki are you porting?

    I am trying to porting Contiki version 2.7 but I re-used my friend code (porting Contiki to MSP430F249) and I suppose these register values in MS430F249 are different from MSP430F5529. I don't identify register values such as: BCSCTL1, BCSCTL2, BCSCTL3, DCOCTL will change in MSP430F5529?

    Regards,

**Attention** This is a public forum