Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 20, 2012, 01:55:47 AM
News: Glomation introduces new GECM-9G25 SODIMM system on module
Pages: [1]
Topic Tools  
Read April 20, 2011, 12:12:51 PM #0
aps243

Recover using JTAG

I've accidentally overwritten the SAM-BA bootloader which allows for the USB transfer of image. so i'm attempting to recover using OpenOCD. But i'm running into a couple of problems.

In the TCL file which SAM-BA writes it stores the variables for U-Boot in a separate memory location. do i write a simple text file and use mkimage to create the image and load into memory location?

my openocd config file is using standard at91sam9260.cfg:

Key values:
#flash bank cfi <base> <size> <chip width> <bus width> <target#>
...
flash bank cfi 0x10000000 0x01000000 2 2 0
...
mww 0xffffea08 0x85227259 # SDRAMC_CR : Configure SDRAM (2 x Samsung K4S561632H-UC75 : 4M x 16Bit x 4 Banks)
...

These configuration settings aren't working..

if i get this working with openocd i'll post the cfg file so no one else runs into these problems
 
Read April 20, 2011, 02:11:40 PM #1
admin

Re: Recover using JTAG

The USB boot is part of the AT91SAM9260 internal boot ROM feature.  You can always erase the NAND FLASH to put the board in USB boot mode then reload the FLASH.  The factory default installed software is available at http://www.glomationinc.com/support.html.

 
Read April 22, 2011, 09:02:24 PM #2
aps243

Re: Recover using JTAG

Is there a way to erase the nandflash without a working JTAG setup?
 
Read April 25, 2011, 06:42:15 AM #3
admin

Re: Recover using JTAG

The bootstrap code can erase the first NAND FLASH block when S1 is closed at boot time if the bootstrap code is intact.  A drastic way is using a 100R resistor cross R33 at boot time if the bootstrap code is corrupted.  Remove the jumper resisitor as soon as the board boots into USB mode.  Then use the SAM-BA via the USB device port of the board to re-program the NAND FLASH.
 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re