I am trying to port the MSP430X_MSP430FR5969_LaunchPad_IAR_CCS demo to MSP430FR5994.
An error occurs when changing the device to MSP430FR5994 and building.
I am using CCS.
#20 identifier “DMA_BASE” is undefined dma.c /RTOSDemo/driverlib/MSP430FR5xx_6xx line 57 C/C++ Problem
I’m guessing the file generating the error is a driver file provided by TI for a chip that has DMA, and you are now trying to build the same file, but targeting a chip that doesn’t have DMA. You need to build the driver files provided for the chip you are actually targetting.
There seems to be a difference in each header file.
MSP430FR5994.h
/*****************************************************************************
DMA Registers
****************************************************************************/ #defineMSP430_HAS_DMA 6 / Definition to show that module is available */ #defineMSP430_BASEADDRESS_DMA 0x0500 #define DMA_BASE MSP430_BASEADDRESS_DMA
DMA_X
***********************************************************/ #defineMSP430_HAS_DMAX_3 / Definition to show that Module is available */ #defineMSP430_BASEADDRESS_DMAX_3 0x0500 #define DMA_BASE MSP430_BASEADDRESS_DMAX_3
It seems to be unsupported because it is defined in dma.c as follows:
Build after importing the MSP430 Ware sample from CCS Resource Explorer.
Device->MSP430FR5XX_6XX->MSP430FR5994->Peripheral Example->Driver Library->Example Project->FRAMCTL_A
Overwrite and copy the driverlib of framctl_a_ex1_write to RTOSDemo.