energia / cc3200emt-core

0 stars 2 forks source link

CC3200 EMT — Specific Compilation Procedure? #7

Closed robertinant closed 7 years ago

robertinant commented 7 years ago

From @rei-vilo on December 21, 2016 15:38

When compiling the MultiBlink.ino against the CC1310 EMT and MSP432 EMT, compilation generates two files, MultiBlink_CC3200.ino.cpp and main.cpp.

The former concatenate all the different task into one file and the latter declares the tasks to the RTOS.

However, compiling the MultiBlink.ino against the CC3200 EMT does not generate the main.cpp.

Has the compilation procedure changed?

/* magic insertion point 769d20fcd7a0eedaf64270f591438b01 */
extern void setupBlueLed();
extern void loopBlueLed();
extern void setupGreenLed();
extern void loopGreenLed();
extern void setupRedLed();
extern void loopRedLed();
extern void setupMultiBlink_CC3200();
extern void loopMultiBlink_CC3200();

#define NUM_SKETCHES 4
void (*func_ptr[NUM_SKETCHES][2])(void) = {
    {setupBlueLed, loopBlueLed},
    {setupGreenLed, loopGreenLed},
    {setupRedLed, loopRedLed},
    {setupMultiBlink_CC3200, loopMultiBlink_CC3200}
};
const char *taskNames[] = {
    "loopBlueLed",
    "loopGreenLed",
    "loopRedLed",
    "loopMultiBlink_CC3200"
};

Copied from original issue: energia/cc3200-core#14

robertinant commented 7 years ago

From @rei-vilo on December 21, 2016 15:45

Similarly, the global.h is provided for the CC1310 EMT and the MSP432 EMT, but not for the CC3200 EMT.

$ find ~/Library/Energia15/packages/energia/hardware -name global.h
/Users/ReiVilo/Library/Energia15/packages/energia/hardware/cc13xx/3.7.2/cores/cc13xx/xdc/cfg/global.h
/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432/1.3.3/cores/msp432/xdc/cfg/global.h
rei-vilo commented 7 years ago

This issue was caused by the package provided by the link for the beta, which pointed to the wrong package, actually the CC3200 standard boards.

This issue is solved with the right cc3200emt-core package.

This issue can be closed now. I don't have the credentials on this repository for closing it myself. Thank you.