SWD Bitbanging with Arduino Portenta x8

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SWD Bitbanging with Arduino Portenta x8

264 次查看
AditiV
Contributor I

Hello,
I’ve been using the Blinkinlabs JTAG Hat with a Raspberry Pi 3 and OpenOCD successfully for debugging devices. I followed the example from their github for the setup. I’m now trying to use it with an Arduino Portenta X8 (with Hat Carrier), for which I created a custom sysfsgpio config:
adapter driver
sysfsgpio sysfsgpio_swd_nums 162 166
sysfsgpio_srst_num 188

With this setup, I can flash the target device when wiring Portenta's GPIOs directly. However, when routing through the JTAG Hat I get:
Error: Error connecting DP: cannot read IDR

I believe the issue is the swdio_dir pin, which sysfsgpio doesn’t support.
Is there an adapter/driver compatible with the NXP i.MX8 mini that allows SWD direction pin control?
Thanks for your help.

Kind regards,
Aditi Verma

0 项奖励
回复
0 回复数
%3CLINGO-SUB%20id%3D%22lingo-sub-2171875%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E4%BD%BF%E7%94%A8%20Arduino%20Portenta%20x8%20%E8%BF%9B%E8%A1%8C%20SWD%20%E4%BD%8D%E6%93%8D%E4%BD%9C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2171875%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%20%E6%88%91%E4%B8%80%E7%9B%B4%E5%9C%A8%E6%88%90%E5%8A%9F%E5%9C%B0%E4%BD%BF%E7%94%A8%E6%90%AD%E8%BD%BD%E6%A0%91%E8%8E%93%E6%B4%BE%203%20%E5%92%8C%20OpenOCD%20%E7%9A%84%3CA%20href%3D%22https%3A%2F%2Fshop.blinkinlabs.com%2Fproducts%2Fjtag-hat%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%20Blinkinlabs%20JTAG%20Hat%3C%2FA%3E%20%E6%9D%A5%E8%B0%83%E8%AF%95%E8%AE%BE%E5%A4%87%E3%80%82%E6%88%91%E6%8C%89%E7%85%A7%E4%BB%96%E4%BB%AC%E7%9A%84%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FBlinkinlabs%2FJTAG_hat%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%20github%20%E4%B8%8A%E7%9A%84%E4%BE%8B%E5%AD%90%E8%BF%9B%E8%A1%8C%E4%BA%86%E8%AE%BE%E7%BD%AE%E3%80%82%20%E6%88%91%E7%8E%B0%E5%9C%A8%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E5%9C%A8%20Arduino%20Portenta%20X8%EF%BC%88%E5%B8%A6%E6%9C%89%20Hat%20Carrier%EF%BC%89%E4%B8%8A%E4%BD%BF%E7%94%A8%E5%AE%83%EF%BC%8C%E6%88%91%E4%B8%BA%E5%AE%83%E5%88%9B%E5%BB%BA%E4%BA%86%E4%B8%80%E4%B8%AA%E8%87%AA%E5%AE%9A%E4%B9%89%20sysfsgpio%20%E9%85%8D%E7%BD%AE%EF%BC%9A%3C%2FA%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20%E9%80%82%E9%85%8D%E5%99%A8%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%20sysfsgpio%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20sysfsgpio_s%20wd_nums%20162%20166%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20sysfsgpio_srst_num%20188%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E%20%E6%9C%89%E4%BA%86%E8%BF%99%E4%B8%AA%E8%AE%BE%E7%BD%AE%EF%BC%8C%E6%88%91%E5%8F%AF%E4%BB%A5%E5%9C%A8%E7%9B%B4%E6%8E%A5%E8%BF%9E%E6%8E%A5%20Portenta%20%E7%9A%84%20GP%20IO%20%E6%97%B6%E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