I (the eager newbe Urmel) have some Problems to compile my first
LED-Blink application…
Is it possible to send the Blink-Example from Olimex with SAM-BA into
the SRAM (not flash) and start it with the command ‘GO [address]’?
I tried some variants, but I am only able to send the .BIN-file to the flash…
I only use SAM-BA in USB-Mode.
I tried the IAR-Compiler. It creates a HEX-file, but I was not able to
convert it via hex2bin.exe in a file, with will run the LED-Example. How does
the hex2bin-example work? I tried to reprogram my own hex2bin-program
in C - this program converts the Hex-Values into bytes and write it into a new binary-file without the first character and the linefeeds of the hex-file - This way does not work - why?
I tried to compile the blink-example with GNUARM under cygwin by using
-Manual from ‘newmicros.com’. This example is very simple. But the resulting Hex-File doesn’t work.
Does anybody have the GNUARM-makefile-environment for the Blink-Example for the SAM7-P64 Board without using eclipse (I mean only the C-files and the Makefile). This Project should create a .BIN-file with could be send via SAM-BA to the Board like the Olimex-example.
is anybody able to compile the “Blinking_LED.zip” - example? I can compile and get a intel-hex-file. My version of HEX2BIN seems to be ok - when I anlyse it in a HEX-Editor, it is in the Beginning and at the end nearly identical with the ‘AT91SAM7_P64_blinking_led.BIN’. My HEX2BIN-Output has a filesize of 33.252 Bytes, the original has 688 Bytes.
My version has a Header with a ‘jump’(?) to an Address nearly at the end of the file (offset 32856). A few bytes bevor, the assembled code begins. the
gab of about 30KB is filled with FF (or 00 in a other HEX2BIN-Version).
Does anybody know, why the address of this example is to big? I try to edit my hey file manualy, but it takes no effekt (unfortunately).
I had the same problem. I didn’t know how should I convert hex to bin. I used hex2bin program and it didn’t works.
Yesterday I start working wiht WINARM and it works fine with OLIMEX E.B. (AT91SAM7S64) - it makes .hex or .bin files and after download it to the uC (via USB using SAMBA) it works and LEDs are blinking. If you want to try WINARM and you don’t know how to start pliss write - I’ll tell you how to configure it.
In WINARM program you can make .bin file and .hex file so you could compare it!
I had the same problem. I didn’t know how should I convert hex to bin. I used hex2bin program and it didn’t works.
Yesterday I start working wiht WINARM and it works fine with OLIMEX E.B. (AT91SAM7S64) - it makes .hex or .bin files and after download it to the uC (via USB using SAMBA) it works and LEDs are blinking. If you want to try WINARM and you don’t know how to start pliss write - I’ll tell you how to configure it.
In WINARM program you can make .bin file and .hex file so you could compare it!
I would be very interested in how you got this working! I am working on a similar chip (AT91SAM7X256) and I don't have a clue how to configure WINARM. Thanks!
After that you schould change a few things in board.h file - for examples there are LEDs on 17pin and 18 pin (not 1,2,3,4 pin like in example). You schould change SW too.
Then in “makefile” file you can configure the file format - binary or intel hex.
The output file is always main.hex but you can use SAM-BA to download it to our AT91SAM7. It will be working fine if you wrote “binary” in “output file” field, so don’t worry that there’s a .hex end. In fact it is binary format!
Now I found the reason, why flash-programing did not work with
IAR-Compiler. I disabled the C/C+±Option ‘compiler-optimation’ - and the
LED-Blinking example work in flash…Mybe the IAR is actually not ready for stable compiler optimation…But IAR works fine with ATMEL SAM-ICE (JLINK-compatible) JTAG-USB-device.
Yesterday, I installed WinARM (the arm-elf-gcc-environment without cygwin)
and downloaded the examples. I combined the initialisation of the LED-Blinking-Example from the IAR-Project with the GCC-Project - and it works cool with flash-rom!
Mybe OLIMEX could host a LED-Blinking-example for WinARM SAM7-P64-Protoboard - This would make the “hello-world” start much easyer, I suppose…
Urmel could you describe me how did you create flash version of blinking -led in IAR? I use Wiggler to debug this blinking and it works ok, but I still dont’t know what schould I do to create a binary-flash version.
Orion_pl, I combinded the code from the ‘Blinking_LED-Project’ with the
flash-bin creating version of ‘Mouse_driver-Example’ . At first I put all the
initialisation of the led’s and the blinking-commands together into a short
peace of software (only one C-Procedure). Then I took te Mouse-driver code,
inserted te code at the beginning of main() and it works with ICE-JTEG in RAM, FLASH-BIN and FLASH-DEBUG configuration. I did not manage it, to create the flash-version with the original Blinking_LED-Project for IAR…
By the way, the original Mouse_driver-bin will actually not recognised by windowsXP.