Other Parts Discussed in Thread: AM5718,
Hello, experts
After SBL_main() starts to run, when it gose trough the function 'SBL_Configure_AVS(oppMode == 0)', Board_getIDInfo() function which is in idkAM571x_info.c returns 'boardInfo', but it dosen't seem right, because, for example, boardInfo.boardName is ' ; 31 4]( I' (0x4035F43C).
So anyway, you get 0 (BOARD_UNKNOWN) as a returning value from SBL_GetBoardid().
and then, in the SBL_GetOppConfig() function, pOppTable sets as NULL, because boardId is 0.
It causes the process get sidetracked to exception.
To avoid this, I set boardId as 0x3U (BOARD_IDKAM571x).
And then, I got the messages below, going around below.
pPmicData->pmic_write(pPmicData->slave_addr, vcores->core.addr, offset_code)
bool Board_SetPMICVoltage(uint32_t slaveAddr, uint8_t regAddr, uint8_t value) {
...
status = I2C_transfer(handle, &i2cTransaction); <== here!!
}
CortexA15_0: Can't Run Target CPU: (Error -2134 @ 0x0) Unable to control device execution state. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.4.0.00006)
CortexA15_0: Trouble Halting Target CPU: (Error -2064 @ 0x0) Unable to read device status. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.4.0.00006)
CortexA15_0: JTAG Communication Error: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.4.0.00006)
The point of the question is
1. it seems wrong boardInfo from EEPROM. How can I get proper one?
Or, How can I provide proper PMICData for?