How to display the EEPROM inside TM4C123BH6PZ by CCS using debug probe XDS110, all the data from 0x400AF000 display as ????????.
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.
How to display the EEPROM inside TM4C123BH6PZ by CCS using debug probe XDS110, all the data from 0x400AF000 display as ????????.
Hi,
EEprom memory is not memory mapped on the CPU memory space. You cannot view them in CCS. 0x400AF000 is the register frame where EEprom control and status registers reside. You need to use CPU to perform a read using the FMA/FMD/FMC registers to the EEprom memory. Below is an example. Please refer to the peripheral driver user's guide for details.
uint32_t ui32EEPROMInit;
uint32_t pui32Data[2];
uint32_t pui32Read[2];
//
// Enable the EEPROM module.
//
SysCtlPeripheralEnable(SYSCTL_PERIPH_EEPROM0);
//
// Wait for the EEPROM module to be ready.
//
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_EEPROM0))
{
}
//
// Wait for the EEPROM Initialization to complete
//
ui32EEPROMInit = EEPROMInit();
//
// Check if the EEPROM Initialization returned an error
// and inform the application
//
if(ui32EEPROMInit != EEPROM_INIT_OK)
{
while(1)
{
}
}
//
// Program some data into the EEPROM at address 0x400.
//
pui32Data[0] = 0x12345678;
pui32Data[1] = 0x56789abc;
EEPROMProgram(pui32Data, 0x400, sizeof(pui32Data));
//
// Read it back.
//
EEPROMRead(pui32Read, 0x400, sizeof(pui32Read));
130
EEPROM write via CCS contains a CCS GEL script which can program a TM4C123 EEPROM from a file on the PC.
That could serve as a starting point for how to read the EEPROM content using a CCS GEL script.
Thanks for you explaination, I do know how to read and write EEPROM by lib, but it's much helpful if the IDE could display the memory inside a MCU, I think that's the IDE designed for.
Thanks anyway, now I know it's not possible to display EEPROM by CCS.