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.

Declaring a 20 bit pointer in Code Composer

Other Parts Discussed in Thread: MSP430F5438A

I need to access the upper memory in Code Composer. I have MSP430F5438A. I need to have a long pointer, but only one, i.e. I don't want to enable the large-memory model, so that the code size isn't affected.


Can I do this in code composer? The memory I'm trying to access is located at 0x20000.

  • Ok, solved. For anyone with the same issue, I used MSP430 intrinsics, which allow writing, reading the upper memory, without having to use a large memory model and without the need of writing assembly.

                     FCTL3 = FWKEY;
                     FCTL1 = FWKEY+WRT;

                    __data20_write_char(longAddress, byte);

                    FCTL1 = FWKEY; // Clear WRT bit
                    FCTL3 = FWKEY+LOCK; // Set LOCK bit