EP9302 Boot Problems

hi guys,

I’m trying to boot an CS-E9302 board and am having some difficulties getting it to boot.

Out of the box it appeared to be locked up as per various issues in the errata with both the green and red leds on. The only state which results in both leds going off is when EEDAT is pulled low, although the doc says “Should be pulled up”, and openocd returns 0x3f.

I’ve cycled through the various jumber settings and nothing seems to get it to start.

Connecting with the arm-usb-ocd (2006-10-12 from yagarto), i can connect via jtag ok, but get timeouts and it doesn’t seem like i’m able to see any of the address space you would expect - syscon, boot rom etc - every address returns 0xFFFFFFFF, using both the mdw and arm920t mdw_phys.

Either i’ve got a dud rev silicon (E1) or (more likely) i’m missing a crucial step. Any help would be greatly appreciated.

current openocd config is :

telnet_port 4444

gdb_port 3333

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG A”

ft2232_layout “olimex-jtag”

ft2232_vid_pid 0x15ba 0x0003

jtag_speed 1

reset_config srst_only

jtag_device 4 0x1 0xf 0xe

jtag_nsrst_delay 100

jtag_ntrst_delay 100

daemon_startup attach

target arm920t little reset_halt 0

working_area 0 0x80014000 0x1000 backup

flash bank cfi 0x60000000 0x1000000 2 2 0

in the openocd log, i get the lines :

Error: arm7_9_common.c:561 arm7_9_execute_sys_speed(): timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5

which happen on pretty much most commands including resets and read/writes.

The OpenOCD wont be able to safely connect to the target when it’s in locked state (red and green leds on). Even if it connects, operation is going to be broken.

The silicon revision is printed on the chip, characters 5 and 6 in the line below the part number. On my CS-E9301, this reads:

EP9301-CQ

EFWAE0BJ0448

On this E0 E9301 I’ve experienced these lockups, too, but not nearly as often as you’re describing them, and pressing the PORN (power-on reset) button solved the problem in every case.

Regards,

Dominic

Hi Dominic,

Unfortunately the ‘pron’ button really isn’t doing it for me. :?

Actually, I can get the red LED to turn off if i poke my finger around Q2 (& C1/C2) so I will measure the clocks to see if this really represents a proper initialisation and whether it’s possibly down to poor joints on the crystals - or whether it is something more fundamental.

If I press the pron button when in this state, it goes back to a lock-up.

Silicon is EP9302 rev E1.

Hi Dominic,

Unfortunately the PORN button really isn’t doing it for me.

Actually, I can get the red LED to turn off if i poke my finger around Q2 (& C1/C2) so I will measure the clocks to see if this really represents a proper initialisation and whether it’s possibly down to poor joints on the crystals - or whether it is something more fundamental.

If I press the porn button when in this state, it goes back to a lock-up.

Silicon is EP9302 rev E1.

I have similar problem with my evaluation board. Following to included to documentation “quick start guide” instruction, connection to PC com was establish by port 0, power has been supplyed to board and nothing happened. Red led was on, green led blink with very fast rate. I didn’t find any information about this situation (RDLED on, GRLED blink) in EP9301 documentation. I suppose that boot room (redboot) soft have deadlock or EP9301 have problem with communication with rom. What I suppose to do now??. Should I flesh rom or something like that. I have not JTAG cable, only com cable.

Regards

Michal

If you don’t have a debugger, you can have a go using the cirrus ‘download’ utility which will flash redboot via rs-232… but I’d try a bit more digging before you try to hose it.

If the green led is flashing, that usually means that the boot rom couldn’t find a valid magic number at the flash base or flash base + 0x1000… but the red led shouldn’t be on.

You might want to check all the boot config jumpers and go through the boot modes. Also double check you’re UART1 jumper is selected instead of the UEXT… that one took me a while to figure out.

May I ask where you are getting this information? I have an issue where, upon power up, the LEDs look ok except that the green LED is flashing (two quick flashes, pause, two quick flashes, etc). Red LED is off.

I would be interested to know where you got the info. I can’t seem to find info that detailed.

Thanks,

JET

Well, the initial LED states are determined by the boot rom stuff outlined in the user guide, and the sequence is different depending on the state of CN1, CN2, CN6, CN7 and ASDO jumpers… the wrong config will have it executing off at bizarre addresses and that’s where you may get flashing.

The rest depends on the actual flash image… the startup code for the bootloader and probably the kernel will have gpio writes to set led status at various stages.