Hi, A few months ago I purchased the olimex SAM7S256 board, and I am just getting around to playing with it. Device: AT91SAM7S256
http://www.olimex.com/dev/sam7-p256.html
I am not exactly new to this, I have been writing C code for AVR’s for a while using winAVR, so I’m somewhat aware of makefiles n such.
However, I am out of my depth here. I have read J Lynch’s tutorials (very helpful) and I have eclipse, yogarto tools, and openOCD.
The only form of ‘hardware interface’ I have is a JTAG wiggler (but my computer doesn’t have an LPT port), an Altera USB blaster (not supported by OpenOCD) or…using SAM-BA and a USB interface.
The furthest I have got is flashing the board with an example ‘LED blink’ *.bin file using SAM-PROG and SAM-BA (sending file to the flash area). I intend to do alot of tinkering to learn how to use these devices, so I would like to start off writing code, loading it into RAM, and testing it from there.
In-circuit debugging is nice…but I have got away with not using it for other devices…I just do ‘poor mans debugging’…using hyperterminal for USART’s, and LEDs lol
So, quesitons are:
-
How exactly does one make sure code is downloaded, and run from the RAM area? I have used SAM-BA to send the *.bin file to RAM (0x200000) and using the ‘go’ command to run it, but its not happening.
-
Is the above down to the startup files? configuration? or can one just put any *.bin file into ram, and run it from there? (I am assuming it must be compiled for its intended location, so I would have two ‘flavours’ of the same project, one to run in RAM, and one to run in FLASH.
-
Possibly should be in the OpenOCD sub forum, but does anyone know if the altera byteblaster is support? I have prototyped my own FT2232 dongle, but I don’t really want to dedicate it to a JTAG adapter.
Ultimately, I’m not after everything, just using the tools available to write small, begginer, code for testing the various peripherals on the ARM, and using a relatively simple method to get this into the chip for testing. Hopefully I will learn more as I go.
Thanks
BuriedCode.