Any one got SAM-BA bootloader woriking on Olimex SAM7-EX256?

I tried to use SAM-BA 1.11 to load code on two of my Olimex SAM7-EX256. The loading finished fine. But the code didn’t work on the board. The same code worked fine if loaded through JTag. After bootload, the board behaved as if nothing was loaded. I did erase before bootloading. I can use SAM-BA to load code on my Olimex SAM7S256 board. Has any one used SAM-BA successfully on Olimex SAM7-EX256?

Any help will be appreciated.

Kelly

Kelly:
I tried to use SAM-BA 1.11 to load code on two of my Olimex SAM7-EX256. The loading finished fine. But the code didn’t work on the board. The same code worked fine if loaded through JTag. After bootload, the board behaved as if nothing was loaded. I did erase before bootloading. I can use SAM-BA to load code on my Olimex SAM7S256 board. Has any one used SAM-BA successfully on Olimex SAM7-EX256?

Any help will be appreciated.

Kelly

Did you remember to set the bit that tells it to boot from flash? I haven't used SAM-BA in a while - but my memory is that I would turn on the board - hold down my erase button for about 15 seconds, turn off the board, plug in the serial or usb cable into both the board and the computer, then I would turn on the board and run SAM-BA, flash the chip with my code, set the boot from flash bit, then turn off the board. Then when I turned the board on again - it would run the code from the flash.

Hi, NleahciM,

I think you are right, I need to set GPNVM bit 2 based on this:

The SAM-BA Boot is in ROM and is mapped at address 0x0 when the GPNVM Bit 2 is set to 0.

When GPNVM bit 2 is set to 1, the device boots from the Flash.

When GPNVM bit 2 is set to 0, the device boots from ROM (SAM-BA).

But how to set this pin? I was expecting a check box in SAM-BA could do that. There is nothing I can see in SAM-BA interface to help. How did you set the pin to load from flash?

Thank you very much.

Kelly

hi:

I was able to get sam-ba working with my olimex sam7-ex256 board.

If I remember correctly, there is an option somewhere in SAM-BA to select boot from flash, though it may not be obviously to find.

I have been using sam7utils under OS X (should run in Linux and Cygwin as well) successfully. There is a boot_from_flash command…

Thank you all very much for the help. Following the hint "though it may not be obviously to find. " I found the pin set in the drop down combobox and it is working now.

Thanks again!

Kelly

does anyone know where i can download SAM-BA PROG v2.2??

mantra_lars:
does anyone know where i can download SAM-BA PROG v2.2??

I don’t know if anyone still has version 2.2 for download… is there any reason you need that instead of the newest?

The newest is included in this download:

http://www.atmel.com/dyn/resources/prod … 20v1.9.exe

hvymtlsteve:

mantra_lars:
does anyone know where i can download SAM-BA PROG v2.2??

I don’t know if anyone still has version 2.2 for download… is there any reason you need that instead of the newest?

The newest is included in this download:

http://www.atmel.com/dyn/resources/prod … 20AT91-ISP%

20v1.9.exe

not really only assumed that was the one to use as suggested in the ethernut handbook.