EmbeddedRelated.com
Forums

SAM-BA isn't modifying values, what am I doing wrong here

Started by "evan.miller530" May 2, 2011
I have recently installed AT91-ISP v1.12, and am trying to modify memory on my AT91SAM7S256 using SAM-BA. The problem I am having is after connecting, SAM-BA doesn't modify memory values in the internal flash or ram. When I send a file, changes are not made, and similarly when I try to manually change a single memory value, the changes are not made.

I have followed the instructions for loading SAM-BA into memory, by first setting the ERASE pin high for a period of time, and then setting the TST pin high for a period of time. After that I connect to SAM-BA using a SAM-ICE JTAG under WinXP, using no_board. SAM-BA seems to connect fine, and does not give me any errors.

I have also tried running the Flash_Example.bat file provided in the AT91SAM7S256-EK materials (changing the board to no_board, of course) and this gives me the following error:
-E- Script File Flash_example.tcl returned error : can't set "FLASH::ForceUnlockBeforeWrite": parent namespace doesn't exist - can't set "FLASH::ForceUnlockBeforeWrite": parent namespace doesn't exist

Any input one what I am doing wrong would be greatly appreciated!

Hi Evan,

 I had a similar problem with a SAM3 and wrote to Atmel they told me to select a kit-board instead of no-board in SAM-BA. This seems to be because the no-board option doesn't  have the routines entirely implemented (you can check this by opening the tcl files).
 First try by choosing a kit that use the SAM7. This possibly result in some errors because the applet the SAM-BA is trying to install in the SAM7 doesn't have some peripherals (PSRAM, 32KHz crystal, etc..). Then you would possible have to modify the applet and recompile it.

 Good luck !

Agustin

--- On Mon, 2/5/11, evan.miller530 wrote:

From: evan.miller530
Subject: [AT91SAM] SAM-BA isn't modifying values, what am I doing wrong here
To: A...
Date: Monday, 2 May, 2011, 18:33

 

I have recently installed AT91-ISP v1.12, and am trying to modify memory on my AT91SAM7S256 using SAM-BA. The problem I am having is after connecting, SAM-BA doesn't modify memory values in the internal flash or ram. When I send a file, changes are not made, and similarly when I try to manually change a single memory value, the changes are not made.

I have followed the instructions for loading SAM-BA into memory, by first setting the ERASE pin high for a period of time, and then setting the TST pin high for a period of time. After that I connect to SAM-BA using a SAM-ICE JTAG under WinXP, using no_board. SAM-BA seems to connect fine, and does not give me any errors.

I have also tried running the Flash_Example.bat file provided in the AT91SAM7S256-EK materials (changing the board to no_board, of course) and this gives me the following error:

-E- Script File Flash_example.tcl returned error : can't set "FLASH::ForceUnlockBeforeWrite": parent namespace doesn't exist - can't set "FLASH::ForceUnlockBeforeWrite": parent namespace doesn't exist

Any input one what I am doing wrong would be greatly appreciated!
Yes you are right, that helped! I was able to load one of the ek eval board scenarios. After running the script to unlock the flash memory I was able to at least modify RAM values, but still not make any changes to the internal flash. I'm still currently trying to figure that one out.

--- In A..., Agustino wrote:
>
> Hi Evan,
>
>  I had a similar problem with a SAM3 and wrote to Atmel they told me to select a kit-board instead of no-board in SAM-BA. This seems to be because the no-board option doesn't  have the routines entirely implemented (you can check this by opening the tcl files).
>  First try by choosing a kit that use the SAM7. This possibly result in some errors because the applet the SAM-BA is trying to install in the SAM7 doesn't have some peripherals (PSRAM, 32KHz crystal, etc..). Then you would possible have to modify the applet and recompile it.
>
>  Good luck !
>
> Agustin
>
>
>
>
>
> --- On Mon, 2/5/11, evan.miller530 wrote:
>
> From: evan.miller530
> Subject: [AT91SAM] SAM-BA isn't modifying values, what am I doing wrong here
> To: A...
> Date: Monday, 2 May, 2011, 18:33
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
>
>
>
>
>
>
>
>
>
> I have recently installed AT91-ISP v1.12, and am trying to modify memory on my AT91SAM7S256 using SAM-BA. The problem I am having is after connecting, SAM-BA doesn't modify memory values in the internal flash or ram. When I send a file, changes are not made, and similarly when I try to manually change a single memory value, the changes are not made.
>
>
>
> I have followed the instructions for loading SAM-BA into memory, by first setting the ERASE pin high for a period of time, and then setting the TST pin high for a period of time. After that I connect to SAM-BA using a SAM-ICE JTAG under WinXP, using no_board. SAM-BA seems to connect fine, and does not give me any errors.
>
>
>
> I have also tried running the Flash_Example.bat file provided in the AT91SAM7S256-EK materials (changing the board to no_board, of course) and this gives me the following error:
>
> -E- Script File Flash_example.tcl returned error : can't set "FLASH::ForceUnlockBeforeWrite": parent namespace doesn't exist - can't set "FLASH::ForceUnlockBeforeWrite": parent namespace doesn't exist
>
>
>
> Any input one what I am doing wrong would be greatly appreciated!
>

I'd suggest you to:

1. check if the applet(.bin) you are using to write flash were built assuming your board has some kind of memory that your board doesn't have. I had to re-build it. Let's say the SAMBA (ie. the .bin applet loaded in your device) is trying to buffer your program form the PC into the PSRAM, that your board doesn't have, before coping it to the flash...

2. work with more than one test board: I almost became crazy trying to write the flash while some related internal peripheral wasn't working properly. Possibly, it was broken when I was soldering the device on the board. These devices seems to be quite sensitive to the heat...
--- In A..., "evan.miller530" wrote:
>
> Yes you are right, that helped! I was able to load one of the ek eval board scenarios. After running the script to unlock the flash memory I was able to at least modify RAM values, but still not make any changes to the internal flash. I'm still currently trying to figure that one out.
>
> --- In A..., Agustino wrote:
> >
> > Hi Evan,
> >
> >  I had a similar problem with a SAM3 and wrote to Atmel they told me to select a kit-board instead of no-board in SAM-BA. This seems to be because the no-board option doesn't  have the routines entirely implemented (you can check this by opening the tcl files).
> >  First try by choosing a kit that use the SAM7. This possibly result in some errors because the applet the SAM-BA is trying to install in the SAM7 doesn't have some peripherals (PSRAM, 32KHz crystal, etc..). Then you would possible have to modify the applet and recompile it.
> >
> >  Good luck !
> >
> > Agustin
> >
> >
> >
> >
> >
> > --- On Mon, 2/5/11, evan.miller530 wrote:
> >
> > From: evan.miller530
> > Subject: [AT91SAM] SAM-BA isn't modifying values, what am I doing wrong here
> > To: A...
> > Date: Monday, 2 May, 2011, 18:33
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > I have recently installed AT91-ISP v1.12, and am trying to modify memory on my AT91SAM7S256 using SAM-BA. The problem I am having is after connecting, SAM-BA doesn't modify memory values in the internal flash or ram. When I send a file, changes are not made, and similarly when I try to manually change a single memory value, the changes are not made.
> >
> >
> >
> > I have followed the instructions for loading SAM-BA into memory, by first setting the ERASE pin high for a period of time, and then setting the TST pin high for a period of time. After that I connect to SAM-BA using a SAM-ICE JTAG under WinXP, using no_board. SAM-BA seems to connect fine, and does not give me any errors.
> >
> >
> >
> > I have also tried running the Flash_Example.bat file provided in the AT91SAM7S256-EK materials (changing the board to no_board, of course) and this gives me the following error:
> >
> > -E- Script File Flash_example.tcl returned error : can't set "FLASH::ForceUnlockBeforeWrite": parent namespace doesn't exist - can't set "FLASH::ForceUnlockBeforeWrite": parent namespace doesn't exist
> >
> >
> >
> > Any input one what I am doing wrong would be greatly appreciated!
>