MSP432E401Y: Help programming User Registers

Part Number: MSP432E401Y

Hi Forum members,

I'm trying to program the user registers in my MSP432E401Y and I think I must be missing something in the Tech reference manual. In Table 7-3. User-Programmable Flash Memory Resident Registers it says that the address 0x8000.0000 to 0x8000.0003 should be put into the Flash Memory Address register but when I look at Figure 7-9. FMA Register description it shows that bits 31-20 are reserved. I feel I must be missing something here as I don't see how a 32-bit address can fit into the 20-bit Offset Field. Can anyone enlighten me please.

  • Hi Nick,

    Looks like the correct procedure would be to write directly to the USER_REGn, then set the address directly to the 0x8000.000n in the FMA, and finally set the flash write key and the COMT bit in the FMC and wait until the COMT bit is cleared. This is the process that is followed by the FlashUserSave method in the flash driverlib code.

    Thanks,

    -Eric Rentschler

  • Hi Eric,

    Thanks for your reply. I think that the Tech reference manual is a bit misleading as it suggests using the FMA, FMD and FMC registers are the way to program the user register. Anyway I tried your suggestion and all is good so thanks for the insight.

    Thanks

    Nick