Problems using OpenOCD and YAGARTO on STR730

Hello I’m trying to use YAGARTO and OpenOCD on STR730 (my board is IAR STR730-KS).

I use a parallel port and one wiggler-compatible programmer.

I download from www.yagarto.de the example named STR7Test,but this example has made for STR71X.

I’m trying to map this example for my enviroment (STR730) but I have many problems.

I have many questions to do.

For OpenOCD configuration can i use this file .cfg, named str7xx_pp.cfg?

If not, what should I change in this file for my hardware?

#daemon configuration

telnet_port 4444

gdb_port 3333

#interface

interface parport

parport_port 0x378

parport_cable wiggler

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

#target configuration

daemon_startup reset

#target

#target arm7tdmi

target arm7tdmi little run_and_halt 0 arm7tdmi

run_and_halt_time 0 30

working_area 0 0x2000C000 0x4000 nobackup

#flash bank <chip_width> <bus_width>

flash bank str7x 0x40000000 0x00040000 0 0 STR71x 0

Moreover I should change these files: hitex_str7_ram.gdb, hitex_str7_ram.ld, ctr.s (assembly file), because i use STR730 and the hitex of those files uses STR71x.

Can anyone help me?

You’ll need to change the memory settings. For my STR730, I use the following two lines…

working_area 0 0xA0003000 0x1000 nobackup

flash bank str7x 0x80000000 0x00040000 0 0 STR73x 0

I also use the following reset_config. I don’t know if this is 100% correct, but it seems to work for me.

reset_config srst_only

There is no sample project for STR730 and OpenOCD that I know of. The best thing to do is take the STR7Test sample on the OpenOCD web site, and make adjustments for the differences in registers and memory locations between the STR710 and STR730. I am doing this myself, but I don’t have a working version just yet.

And just for the record, I am using an Embest STDV730F board and an Olimex ARM-JTAG cable (wiggler clone).

Thank you for your help. I’m working on all STR7xx microcontrollers. Soon I’ll do a tutorial that deals with all the aspects related to configuration and using. About the problem of memory locations, I solved it. The start address is 0xA0000000. Thank you for your help. Best regards

l3golas