chump 发表于 2013-4-2 05:33:57

ARM9裸机keil jlink调试下载

我的板子是mini2440..
搞了一个晚上,下了各种程序都只是能在keil上用jlink仿真..
用download 却不能下载...那arm9裸机程序该怎么用jlink下载到nand flash呢?
该如何设置option?...

chump 发表于 2013-4-2 05:34:46

{:2_34:}自顶一楼

chump 发表于 2013-4-2 05:48:36

Build target 'Target 1'
assembling S3C2440.s...
compiling main.c...
src\main.c(14): warning:#951-D: return type of function "main" must be "int"
src\main.c:   void main(void)
src\main.c:      ^
src\main.c: src\main.c: 1 warning, 0 errors
compiling delay.c...
linking...
Program Size: Code=1416 RO-data=16 RW-data=0 ZI-data=1256
User command #1: fromelf.exe --bin -o.\obj\my_led.bin.\obj\my_led.axf
".\obj\my_led.axf" - 0 Error(s), 1 Warning(s).
Load "C:\\Users\\Chump\\Desktop\\my_led\\obj\\my_led.AXF"
VTarget = 3.280V
Info: TotalIRLen = 4, IRPrint = 0x01
Info: CP15.0.0: 0x41129200: ARM, Architecure 4T
Info: CP15.0.1: 0x0D172172: ICache: 16kB (64*8*32), DCache: 16kB (64*8*32)
Info: Cache type: Separate, Write-back, Format A
Info: RTCK is not connected
Info: Auto JTAG speed: 8000 kHz
Info: TotalIRLen = 4, IRPrint = 0x01
Info: CP15.0.0: 0x41129200: ARM, Architecure 4T
Info: CP15.0.1: 0x0D172172: ICache: 16kB (64*8*32), DCache: 16kB (64*8*32)
Info: Cache type: Separate, Write-back, Format A
DLL version V4.15n, compiled Jun 18 2010 19:55:09
Firmware: J-Link ARM V8 compiled Sep 20 2012 13:27:01
Hardware: V8.00
Hardware-Breakpoints: 2
Software-Breakpoints: 2048
Watchpoints:          0
Found 1 JTAG device, Total IRLen = 4:
Id of device #0: 0x0032409D
ARM9 identified.
JTAG speed: 5 kHz
Info: RTCK is not connected
Info: Auto JTAG speed: 8000 kHz
Info: TotalIRLen = 4, IRPrint = 0x01
Info: CP15.0.0: 0x41129200: ARM, Architecure 4T
Info: CP15.0.1: 0x0D172172: ICache: 16kB (64*8*32), DCache: 16kB (64*8*32)
Info: Cache type: Separate, Write-back, Format A
JTAG speed: 5 kHz
Info: RTCK is not connected
Info: Auto JTAG speed: 8000 kHz
Erase Failed!

chump 发表于 2013-4-2 05:48:51

以上是错误代码!

qietingfy 发表于 2013-4-2 06:48:44

JLINK是在内存里面运行测试的吧。。你要看一下开发板的bootloader是不是支持把程序烧写到FLASH运行。

channe 发表于 2013-4-2 08:21:53

bootload写入 SPI FLASH

keen9327 发表于 2013-4-2 14:57:40

一般不是先把bootloader烧到RAM,再拷贝到FLASH?

chump 发表于 2013-4-2 17:47:27

keen9327 发表于 2013-4-2 14:57 static/image/common/back.gif
一般不是先把bootloader烧到RAM,再拷贝到FLASH?

请问你是如何用jlink在keil上下载程序的?能具体说一下吗

chump 发表于 2013-4-2 17:48:02

channe 发表于 2013-4-2 08:21 static/image/common/back.gif
bootload写入 SPI FLASH

不太懂..请问你是如何用jlink在keil上...下载程序的?能具体说一下吗

chump 发表于 2013-4-2 17:49:11

qietingfy 发表于 2013-4-2 06:48 static/image/common/back.gif
JLINK是在内存里面运行测试的吧。。你要看一下开发板的bootloader是不是支持把程序烧写到FLASH运行。 ...

嗯嗯..可以在SDRAM上稳定调试...但是就是不能下载...我的板子的程序是下载到nand flash的..

chump 发表于 2013-4-2 18:11:04

我实验了一下..发现keil下生成的bin文件根本不能用supervivi烧写...(光盘里的bin文件可以)这又是为什么呢!!!!

error_dan 发表于 2013-4-2 18:18:52

目测LZ目前还没闹明白ARM启动过程。。。

king_king2 发表于 2013-4-12 18:11:11

貌似要自己写适合自己FLASH的算法吧,要是有现成的就可以直接用,要是没有就只能自己写了

vibrant27 发表于 2013-4-12 19:05:30

1.用bootloader烧 2.自写烧写适合自己FLASH的算法用jlink直接烧

yajun 发表于 2013-4-22 17:04:47

mark                     

tragedy 发表于 2013-4-22 22:18:54

我最近在keil下最近在移植lcd那个程序,问题真是多呀,给个方式一起讨论啊。{:handshake:}

huniugg 发表于 2013-4-24 11:40:33

楼主能不能分享一下你Jlink下到SRAM的那个配置文件

对妮说 发表于 2013-4-25 20:01:22

楼主,你的那个板子烧写成功没??求指导

nongxiaoming 发表于 2013-4-25 20:09:43

给你个工程吧~
页: [1]
查看完整版本: ARM9裸机keil jlink调试下载