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.

Code Composer Compilation problem when re-mapping ports

Other Parts Discussed in Thread: MSP430F5438A

Hi all,

I am using CCSv6 ( Version: 6.0.0.00190) and all my code is compiling fine until I add lines for re-mapping ports

// Port Mapping:
_disable_interrupt();
PMAPKEYID = 0x02D52;
PMAPCTL = 0x0002; //Allow later reconfiguration
P8MAP2 = PM_UCB1SDA;
P8MAP3 = PM_UCB1SCL;
PMAPKEYID = 0x0000;
_enable_interrupt();

The Compiler gives the following error messages:    #20 identifier "PMAPKEYID" is undefined

 I am using it with MSP430F5438A and as far as I could see, the HW settings in the CCS project are correct.

Any idea how I could identify the root cause is highly appreciated.

  • Johannes Bleuel said:
    I am using CCSv6 ( Version: 6.0.0.00190) and all my code is compiling fine until I add lines for re-mapping ports

    Johannes Bleuel said:
    I am using it with MSP430F5438A and as far as I could see, the HW settings in the CCS project are correct.
    From looking at the datasheet, the MSP430F5438A device doesn't contain the Port Map Control functionality, which explains why the constants related to the port re-remapping aren't in the msp430f5438a.h device include file.

  • Chester is right, the 5438A does not have a port mapping controller.

    The users guide lists all modules found in any of the family MSPs, but not all modules are present in each of them. And even on those which have a PMM, not all ports or all peripherals are freely mappable. Usually, only one or two ports are mappable, and only a few preipherals. Usually when the chip has less port pins than internal modules.

**Attention** This is a public forum