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?
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.
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 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.