Other Parts Discussed in Thread: 66AK2H14
On a CCS 6.1.3.00033 installation with Keystone2 device support 1.1.6 installed, the emulation/boards/xtcievmk2x/gel/xtcievmk2x_arm.gel script was reporting Set_PSC_State Timeout Errors when the bootmode on the EVMK2H was set to "SLEEP W/ SLOW PLL & SLOW ARM PLL".
The xtcievmk2x_arm.gel script reports a version number of 1.70000005.
The errors are:
CortexA15_1: GEL Output: ARM PLL has been configured (125.0 MHz * 16 / 2 = 1000.0 MHz) CortexA15_1: GEL Output: Power on all PSC modules and DSP domains... CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=2, md=9! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=17, md=25! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=17, md=26! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=18, md=27! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=19, md=28! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=19, md=29! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=20, md=30! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=20, md=31! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=20, md=32! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=20, md=33! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=21, md=34! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=22, md=35! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=22, md=36! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=23, md=37! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=23, md=38! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=24, md=39! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=24, md=40! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=24, md=41! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=24, md=42! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=25, md=43! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=25, md=44! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=25, md=45! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=25, md=46! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=26, md=47! CortexA15_1: GEL Output: Set_PSC_State... Timeout Error #03 pd=27, md=48! CortexA15_1: GEL Output: Power on all PSC modules and DSP domains... Done. CortexA15_1: GEL Output: Completed PA PLL Setup
By looking at the Power Domain and module IDs which on which the "Timeout Errors" are reported:
- pd=2, md=9 is the Security Accelerator which is not enabled in the 66AK2H14 device (since have a EVMK2H without Encryption)
- Power Domains which are marked as "Reserved" in the 66AK2H14 datasheet
i.e. the "Timeout Errors" are for modules which are not in the 66AK2H14 device being used.
Therefore, I created a modified version of xtcievmk2x_arm.gel script in which commented out the Set_PSC_State calls for the modules which are not present in the 66AK2H14. This speeds up the connection to the target when the boot mode is set to none by avoiding Set_PSC_State waiting for a 2 second timeout for each of the modules which are not present in the Security Accelerator disabled 66AK2H14.
Since the xtcievmk2x_arm.gel script appears to be written to support different EVMK2x variants could the Set_Psc_All_On function be enhanced to detect the type of device fitted, e.g. via the JTAGID, and only enable the modules which are present in the device?