Hi there,
I'm having issues powering up the EMIFA peripheral through the GEL Script for an AM1705. I've attached my current GEL Script with the PSC0_lPSC_enable(0,3) uncommented out. When it is run like this I get the following output:
ARM9_0: GEL Output: AM1707 EVM Startup Sequence ARM9_0: GEL Output: Disable IRQ/FIQ ARM9_0: GEL Output: Flush Data Cache ARM9_0: GEL Output: Flush Instruction Cache ARM9_0: GEL Output: Disable MMU ARM9_0: GEL Output: Setup PINMUX Registers...ARM9_0: GEL Output: [Done] ARM9_0: GEL Output: PLL Setup Complete ARM @ 300MHz ARM9_0: GEL Output: Setup Power Modules (All on)...ARM9_0: Trouble Writing Memory Block at 0x1c10120 on Page 0 of Length 0x4 ARM9_0: GEL: Error while executing OnTargetConnect(): Target failed to write 0x01C10120 at *((unsigned int *) (0x01C10000+0x120))=(0x1<<PD) [evmam1705.gel:324] at PSC0_lPSC_enable(0, 3) [evmam1705.gel:593] at Setup_Psc_All_On() [evmam1705.gel:41] at OnTargetConnect() ARM9_0: Trouble Reading Register REG_ENDIAN: (Error -150 @ 0x2A3C) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 6.0.407.3) ARM9_0: Trouble Reading Register REG_SYSTEM_TARGET_PSR: (Error -150 @ 0x2A3C) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 6.0.407.3) ARM9_0: Trouble Reading Register REG_SYSTEM_TARGET_CONFIG: (Error -150 @ 0x2A3C) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 6.0.407.3) ICEPICK_C: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 6.0.407.3) ARM9_0: Trouble Reading Register REG_SYSTEM_MMU_CONFIG: (Error -150 @ 0x2A3C) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 6.0.407.3) ARM9_0: Trouble Reading Memory Block at 0xfffd3fa0 on Page 0 of Length 0xc: (Error -150 @ 0x2A3C) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 6.0.407.3) ICEPICK_C: Error: (Error -150 @ 0x0) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 6.0.407.3) ARM9_0: Error: Failed to get PRSC status ARM9_0: Unable to determine target status after 20 attempts ARM9_0: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
However when I run it with that line commented out I get this:
ARM9_0: GEL Output: AM1707 EVM Startup Sequence ARM9_0: GEL Output: Disable IRQ/FIQ ARM9_0: GEL Output: Flush Data Cache ARM9_0: GEL Output: Flush Instruction Cache ARM9_0: GEL Output: Disable MMU ARM9_0: GEL Output: Setup PINMUX Registers...ARM9_0: GEL Output: [Done] ARM9_0: GEL Output: PLL Setup Complete ARM @ 300MHz ARM9_0: GEL Output: Setup Power Modules (All on)...ARM9_0: GEL Output: [Done] ARM9_0: GEL Output: SDRAM Setup Complete @ 114MHz ARM9_0: GEL Output: ARM Enabled ARM9_0: GEL Output: Startup Complete.
Occasionally when I run it without initialising the PLL then the error says that "the controller detected a target power loss".
During the PLL initiasation I've probed the 1.2V pin for the PLL supply and that holds steady without any drop in voltage.
I've also documented another issue that I had with the GEL Script here:
Let me know if you need any more information or tests that I should do.