10.1.10 Read Debug Function
Once Debug mode has been enabled, the internal memory of PL360 device can be read by the
host controller using the following
function:
uint16_t atpl360_debug_read(uint32_t ul_address, uint8_t *puc_data, uint16_t us_len);
Parameters:
ul_address | Address of the internal memory of PL360 to read |
*puc_data | Pointer of data buffer to write with debug data |
us_len | Length of the debug data to read |
Note that the maximum length to get debug data per transaction is limited to 512 bytes.
For further information about the memory map of the PL360 binary file in use, contact Microchip Smart Energy Support team.