-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there a way to connect JTAG debugger to the processor on this board ? #17
Comments
Unfortunately, JTAG cannot be used for debugging |
Is there any other way of debugging? E.g. via the USB? |
The pin GPIO14 can be accessed under the board : #6 (comment) and this is confirmed to work for JTAG. |
If you need JTAG in this form factor, the Longan Nano does have JTAG brought opposite the USB connector, making it a real pain on breadboard since the JTAG lines are all on the same ping of a breadboard. I wish I'd noticed lewisxhe's comment before, as I ordered this to step up (over?) from Longan Nano just in the hopes of having a better video display controller. That sentence really puts the hurt on using this in development. I was just told by B*d that this device was discontinued. I can't tell if that's from them or by the maker, but they DO seem to be getting rarer. Off to Plan D for an inexpensive, self-contained RISC-V development/debugging environment with a screen. |
@lewisxhe , now that I look at it, are you sure? I'm looking at the Longan Nano and my (dysfunctional) T-Display and all the JTAG pins are in the same place. In the http://www.gd32mcu.com/data/documents/shujushouce/GD32VF103_User_Manual_EN_V1.2.pdf GD32V Manual (Warning: 500+pages) Section 7.4.3 says the packages with low pin count (e.g. the one used here) can be reconfigured to remap the JTAG from (non-existent) pins. The mappings are exactly the silk screens on this board and in the same location as they are on the Nano. 7.3.1 and 10.2.1 says the startup values of the GPIO lines out of reset should work for JTAG. 7.5.9 shows that SWJ_CFG[2:0] defaults to remapping being on and "The default state after reset is SWJ I wonder if this really IS the same as the NANO and it's just a silkscreen labeling issue that makes it look like JTAG isn't available. TMS is one of those that gets remapped. Can anyone with a working board try the pinouts from https://wiki.segger.com/SiPeed_Longan_Nano or offer a definitive reason why this doesn't work? |
Trying to to set up a debugger, and see that IO14: JTAG TMS pin is taken as PWR_EN.
The text was updated successfully, but these errors were encountered: