Hi,
I am new ti/concerto/ccsv5 and playing around with a c28m35 controlcard to learn more. I am trying to convert the blinky_dc_28 and blinky_dc_m3 example provided by the controlSuite package to SYSBIOS project. I have successfully converted the the blinky_dc_28 code, but when I try to convert the m3 code I am getting some trouble. Below is the error code outputted by the ccsv5. I hope someone could help me to figure out what I have done wrong
#66 expected a ";" blinky_SYSBIOS_M3 line 29, external location: C:\ti\controlSUITE\device_support\f28m35x\v150\F28M35x_headers\include\F28M35x_Device.h C/C++ Problem
#66 expected a ";" blinky_SYSBIOS_M3 line 30, external location: C:\ti\controlSUITE\device_support\f28m35x\v150\F28M35x_headers\include\F28M35x_Device.h C/C++ Problem
Here is what I added to a generic SYSBIOS swi M3 example:
#include <xdc/std.h>
#include <xdc/runtime/System.h>
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Swi.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Clock.h>
#include <ti/sysbios/knl/Semaphore.h>
#include <xdc/cfg/global.h>
//***** Extra added header files (in addition to header files added by SYSBIOS) *****//
#include <hw_memmap.h>
#include <hw_gpio.h>
#include <hw_types.h>
#include <hw_sysctl.h>
#include <sysctl.h>
#include <gpio.h>
In main:
//*************** Code added *****************//
// Disable Protection
HWREG(SYSCTL_MWRALLOW) = 0xA5A5A5A5;
// Sets up PLL, M3 running at 100MHz and C28 running at 100MHz
SysCtlClockConfigSet(SYSCTL_USE_PLL | (SYSCTL_SPLLIMULT_M & 0xA) |
SYSCTL_SYSDIV_1 | SYSCTL_M3SSDIV_1 |
SYSCTL_XCLKDIV_4);
// Enable clock supply for GPIOC
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
// Give C28 control of Port C pin 6 (flashed from c28x kernal)
GPIOPinConfigureCoreSelect(GPIO_PORTC_BASE, 0x40, GPIO_PIN_C_CORE_SELECT);
// Disable clock supply for the watchdog modules
SysCtlPeripheralDisable(SYSCTL_PERIPH_WDOG1);
SysCtlPeripheralDisable(SYSCTL_PERIPH_WDOG0);
BIOS_start();
here is the external files which the compiler is complaining at:
extern __cregister volatile unsigned int IFR; (line 29 in F28M35x_Device.h)
extern __cregister volatile unsigned int IER; (line 30 in F28M35x_Device.h)