wangle315065 发表于 2012-10-18 10:27:04

rickleaf请进,ecos的ROM RAM启动方式在cortex-m3上应该如何理解?

本帖最后由 wangle315065 于 2012-10-18 11:01 编辑

在网上搜索了各种关于ecos移植方面的资料,还是搞不大清楚,ecos的各种启动方式是怎么回事,请高手解惑。
另外GDB是调试程序工具,rickleaf大侠的windows下如何通过gdb连接redboot调试eCos 中,
是先ROM烧写redboot,在RAM格式的ecos应用程序,进行调试,烧写redboot是否还要借助于jlink之类的下载工具,在UBUNTU下应该怎样呢?

liurangzhou 发表于 2012-10-18 10:36:43

等待讲课!

wangle315065 发表于 2012-10-18 11:02:50

热切盼望各位大牛进来传道授业。

wangle315065 发表于 2012-10-19 10:24:02

顶一下,手头有一个一年前买的openjtag,先试试在ubuntu下用openocd,看能不能链接上。

wangle315065 发表于 2012-10-19 10:26:20

openocd.cfg改成这样
telnet_port 4444
gdb_port 3333
gdb_memory_map enable
gdb_flash_program enable
interface ft2232
ft2232_vid_pid 0x1457 0x5118
ft2232_layout "jtagkey_prototype_v1"
reset_config trst_and_srst
source
在使用openocd时出现这样的输出,此时没有把板子和openocd链接在一起。
查看openocd是支持LPC1768的。
wall@ubuntu:/work/eclipse/workspace$ sudo openocd -f openocd.cfg
password for wall:
Open On-Chip Debugger 0.5.0 (2011-12-03-08:57)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
adapter_nsrst_delay: 200
jtag_ntrst_delay: 200
10 kHz
Info : clock speed 10 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: lpc1768.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Polling target failed, GDB will be halted. Polling again in 100ms
Polling target failed, GDB will be halted. Polling again in 300ms
Polling target failed, GDB will be halted. Polling again in 700ms
Polling target failed, GDB will be halted. Polling again in 1500ms
Polling target failed, GDB will be halted. Polling again in 3100ms

wangle315065 发表于 2012-10-19 10:27:24

这个情况是不是因为没有查板子,所以GDB等待不到ack信号。。。。。。jtag和板子的接口对不上号,解决ing

wangle315065 发表于 2012-10-20 09:54:13

再顶。

wall@ubuntu:/work/eclipse/workspace$ openocd
Open On-Chip Debugger 0.7.0-dev-00052-g27f0497 (2012-10-19-13:45)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
force hard breakpoints
Info : only one transport option; autoselect 'jtag'
adapter_nsrst_delay: 200
jtag_ntrst_delay: 200
adapter speed: 10 kHz
cortex_m3 reset_config vectreset
Info : clock speed 10 kHz
Info : JTAG tap: lpc1788.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : lpc1788.cpu: hardware has 6 breakpoints, 4 watchpoints

这个是不是说明openocd的tcp口和pc的链接,openocd的usb口和openjtag的链接通了?
继续ing

wangle315065 发表于 2012-10-20 10:10:44

> version
Open On-Chip Debugger 0.7.0-dev-00052-g27f0497 (2012-10-19-13:45)
> target init
The 'init' command must be used before 'init'.
in procedure 'target'
> soft_reset_halt
requesting target halt and executing a soft reset
> soft_reset_halt
requesting target halt and executing a soft reset
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x01000000 pc: 0x0000f600 msp: 0x10001808
> pool
invalid command name "pool"
> poll
background polling: on
TAP: lpc1788.cpu (enabled)
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x01000000 pc: 0x0000f600 msp: 0x10001808
>

wangle315065 发表于 2012-10-20 10:14:10

有没有对openocd熟悉的大牛,进来指点下,我想通过openocd把程序直接烧写到SDRAM上,或者是烧写到NANDFLASH上,应该怎么做?
我的板子是IAR的LPC1788olime版。

SNOOKER 发表于 2012-10-20 10:25:30

有ECOS资料的网站吗

wangle315065 发表于 2012-10-20 11:23:20

ecos资料不是很多,我在csdn和官网上找资料,附个我的ecos相关的书签。

wangle315065 发表于 2012-10-20 11:25:05

SNOOKER 发表于 2012-10-20 10:25 static/image/common/back.gif
有ECOS资料的网站吗

大牛的意思是给我些ecos资料的网站,还是问我有没有ecos资料的网站额。偶愚钝。。。
页: [1]
查看完整版本: rickleaf请进,ecos的ROM RAM启动方式在cortex-m3上应该如何理解?