> It has been a while but it should work.
>
> I would check your cfg first - seems to be a few errors.
> jtag newtap $_CHIPNAME bs -irlen 4 -ircapture 0x0e -irmask 0xf
> -expected-id $_BSTAPID10 \
> remove the line continuation char and ircapture and irmask should not
> be required, eg.
> # Wireless
> set _BSTAPID 0x169a862b
> jtag newtap $_CHIPNAME bs -irlen 4 -expected-id $_BSTAPID
>
> Also if i remember correctly the flash controller is not exactly the
> same as the stm32f1x, may be worth checking the em357 driver.
> The em35x family are the same device as the stm32w.

Are these part of OpenOCD? I didn't seem them in the target folder,
but I see that there is a em357.c file in the source.  Do I somehow
need to indicate that I want to use the em357 driver in the flash
statement?  Something like:
flash bank $_FLASHNAME em357 0x08000000 0 0 0 $_TARGETNAME

> Before even attempting gdb, you need to validate that you can control
> the device, use the telnet interface to check the basic functionality.

When I remove ircapture and irmask, I get the following error:

Error: stm32w108.bs: IR capture error; saw 0x0e not 0x01
Warn : Bypassing JTAG setup events due to errors

and when I try to connect via telnet, I get:
> reset halt
JTAG tap: stm32w108.cpu tap/device found: 0x3ba00477 (mfg: 0x23b,
part: 0xba00, ver: 0x3)
JTAG tap: stm32w108.bs tap/device found: 0x169a862b (mfg: 0x315, part:
0x69a8, ver: 0x1)
stm32w108.bs: IR capture error; saw 0x0e not 0x01
Bypassing JTAG setup events due to errors
JTAG-DP OVERRUN - check clock, memaccess, or reduce jtag speed
MEM_AP_CSW 0x23000042, MEM_AP_TAR 0xe000ed00


in procedure 'reset'
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x01000000 pc: 0x08002bf8 msp: 0x20000758



When I keep both ircapture and irmask in, I get this warning:
Warn : stm32w108.bs: nonstandard IR value

and then when I connect via telnet and try to reset:
> reset halt
JTAG tap: stm32w108.cpu tap/device found: 0x3ba00477 (mfg: 0x23b,
part: 0xba00, ver: 0x3)
JTAG tap: stm32w108.bs tap/device found: 0x169a862b (mfg: 0x315, part:
0x69a8, ver: 0x1)
JTAG-DP OVERRUN - check clock, memaccess, or reduce jtag speed
MEM_AP_CSW 0x23000042, MEM_AP_TAR 0xe000ed00


in procedure 'reset'
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x01000000 pc: 0x08002bf8 msp: 0x20000758


So, it looks like something is sort of working, but I'm not really
sure.   I need to google "MEM_AP_CSW 0x23000042, MEM_AP_TAR
0xe000ed00" and see what I can find, as well as "JTAG-DP OVERRUN"

Thoughts?

~Luke

-- 
"Those who would give up essential liberty to purchase a little
temporary safety deserve neither liberty nor safety."

-- Benjamin Franklin, Historical Review of Pennsylvania, 1759

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to