Hi,

The target in question seems to be a Cortex-M0-based MCU
with a DAP, accessible via SWD.

Nuvoton's OpenOCD forks from commit 674141e (very old, May 2016).
At first glance it seems to add support for the "Nu-Link Programmer"
aka. "Nuvoton ICE" and several Nuvoton MCUs/MCU families
including support for the M032SE3AE.

It tried building the master with gcc v9.2.1, but I get an error.
One would probably have to tinker a bit to get the fork to compile.
The latest commit is from 2019, so despite being several years old
the fork may still be maintained.
If one asks nicely, one might be able to get a Nuvoton developer
to help with compiling or even with merging.

One way to proceed could be:
1. Get the Nuvoton fork to compile
2. Merge the latest version of OpenOCD into the Nuvoton fork
3. Merge the Nuvoton fork with upstream OpenOCD

Best,
Matthias



On 17.11.19 17:30, kristof.mul...@telenet.be wrote:
Hi @Tommy Murphy,

Thank you very much for your quick reply.

This is certainly helpful. Unfortunately, I'm not a hero in these kind of things (building OpenOCD from the sources). In fact, I use the following guide to make my Windows build:
https://www.playembedded.org/blog/building-openocd-under-windows-using-msys2/

This OpenOCD for Windows build-tutorial makes use of a repository from Alex Pux (founder of MSYS2). I think it pulls the latest master branch from Git (or some other version control system) and builds it.


In other words: as long as this Nuvoton probe support doesn't make it to the main branch, I'm screwed...
Why didn't it actually make it to the main branch?

Kind greetings,
Kristof

------------------------------------------------------------------------
*Van: *"Tommy Murphy" <tommy_mur...@hotmail.com>
*Aan: *"kristof mulier" <kristof.mul...@telenet.be>, "openocd-devel" <openocd-devel@lists.sourceforge.net>
*Verzonden: *Zondag 17 november 2019 17:19:38
*Onderwerp: *Re: Nuvoton probe and chip support

Doesn't look like that probe is supported in the master openocd project:

https://repo.or.cz/openocd.git/tree/HEAD:/src/jtag/drivers

However this fork seems to have support for it:

https://github.com/OpenNuvoton/OpenOCD-Nuvoton/blob/master/src/jtag/drivers/nulink_usb.c

Not sure why it was never upstreamed.
But you might be able to merge/reconcile the latter repo with the former (the master) and build your own version with the requisite support?

Hope this helps.



_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel



_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to