Hi there.
I want to program my str710 ARM processor in flash.
I have read a bit on how James P. Lynch have used make to program a AT91SAM7S.
My problem is that exept from within eclipse I don’t know how to communicate whit openocd, and I have not enough understanding yet to know what is going on when he uses the makefile.
No offend, He’s tutorial is great!!! it is my knowledge that is not there yet.
How would we normally attatch to openocd. how do I establish an telnet interface with it?
Raymond
I am trying to use a target_script with the following commands:
erase sector 0 - 2 of bank 0
flash erase 0 0 2
program test.bin to bank 0, offset 0
flash write 0 test.bin 0x0
It does not seams to work, the old program is still in the flash.
My program is based on STR7Test from the “YAGARTO” sites.
I have commented out the lines in the startupfile that tells the cpu to map ram down to the bootsector
/////////////////////////////////////
ldr r0, =PRCCU_BASE
ldr r1, =0x01C2
str r1, [r0, #PCU_BOOTCR]
/////////////////////////////////////
I don’t know if that is enough and since it is based on STR7Test, there might be more things I have overlooked.
I am using a hitex str7 evaluation board.
As you might guess I am a newbie
Raymond :roll:
Hi Raymond.
I’m using the STR7 with the STR710-eval board from ST and an Amontec USB JTag Key. Here is my config file:
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc “Amontec JTAGkey A”
ft2232_layout jtagkey
ft2232_vid_pid 0x0403 0xcff8
jtag_speed 0
#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_nsrst_delay 250
jtag_ntrst_delay 50
#target configuration
daemon_startup reset
#target
#target arm7tdmi
target arm7tdmi little run_and_init 0 arm7tdmi
run_and_halt_time 0 30
flash bank str7x 0x40000000 0x00040000 0 0 STR71x 0
flash bank str7x 0x400C0000 0x00004000 0 0 STR71x 0
working_area 0 0x20001000 0xC000 nobackup
I don’t know your eval board nor with what JTAG probe you flash the device. I think that you first should try to flash part of your STR7 flash memory with some binary data, and then read it back. Once this is working, you can focus on demo code to run, and how to run it (the STR7 has pins that tells it to boot from internal RAM or FLASH, or external memory)
Bernard
I finaly did it.
I have programmed my STR7 in FLASH.
Now I only have to understand what happend.
For a newbie like me (I have been programmed come c, c++ and a littlebit assambler for atmel 8 bit avr processors before), the hardest thing to understand the makefile with all the flags.
By the way. I was clicking on the link that “Potedbas8” was posted.
It seems to somewhat contain spyware.
Raymond