winarm可以编译连接调试了

本文分享了在WinARM环境下成功实现编译和调试的经历。起初遇到无法使用调试器ocdremote连接到开发板的问题,经过排查发现是JTAG连接线不符合要求。调整连接线后实现了板子的调试。此外,文中还提到了使用GDB进行远程调试的方法及当前面临的GNUMAKE问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

winarm的环境真的还不错。现在已经能够编译,调试了。开始的时候都不能够用它的那个调试器ocdremote连接到板子。查了半天原来是JTAG连接线不符合它的要求。它要求连接线的电脑端要把PIN8和PIN15连接起来。接上之后果然能调试了。

在命令行输入:ocdremote.exe -c arm920t -d wiggler

然后打开GDB,在命令行中输入:target remote :8888

就可以连接上板子了。OCDREMOTE相当于一个中间件,通过JTAG与板子相连,并模拟成一个GDBSERVER与GDB进行交互,来进行调试的。感觉还不错。

但是现在还没有写出一个程序,主要还得把GNU MAKE搞定。不然什么也写不出来。

FASMARM v1.42 This package is an ARM assembler add-on for FASM. FASMARM currently supports the full range of instructions for 32-bit and 64-bit ARM processors and coprocessors up to and including v8. Contents: 1. ARM assembly compatibility 2. UAL and pre-UAL syntaxes 3. IT block handling 4. Alternate encodings 5. Output formats 6. Control directives 7. Data definitions 8. Defining registers lists inside macros 9. Half-precision number formatting 10. Variants supported 11. Further information 12. Version history _______________________________________________________________________________ 1. ARM assembly compatibility There are a few restrictions how the ARM instruction set is implemented. The changes are minor and mostly have a minor impact. For the most part the basic instruction outline is the same. Where possible the original style is used but there are some differences: Not everything matches the ARM ADS assembly style, where possible the original style is used but there are some differences 1) label names cannot begin with a digit 2) CPSIE and CPSID formats are changed, use "iflags_aif" form instead of "aif" (eg. "CPSIE iflags_i" instead of "CPSID i") 3) SRS with writeback must have a separating space after the mode number and before "!" (eg. "SRSDB 16 !" instead of "SRSDB 16!") 4) macro, rept, irp, format, if, virtual etc. are all significant changes from the ARM ADS, so you will need to re-write those sections of existing code Original ARM Syntax | fasmarm Syntax ----------------------+---------------------- cpsie a | cpsie iflags_a | srsdb #29! | srsdb #29 ! ;or, | srsdb 29 ! _______________________________________________________________________________ 2. UAL and pre-UAL syntaxes fasmarm supports the original pre-UAL syntax and the newer UAL syntax. These two syntaxes only affect THUMB encodings. UAL stands for: Universal Assembly Language. pre-UAL syntax is selected wi
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值