天嵌 ARM开发社区

 找回密码
 注册
查看: 2059|回复: 2

烧写地址总是0xa0000,是什么回事

[复制链接]
freepig 发表于 2010-4-23 09:46:51 | 显示全部楼层 |阅读模式
本帖最后由 freepig 于 2010-4-23 09:53 编辑

以下是提示信息
#####    Boot for Nor Flash Main Menu   #####
[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot to Nand Flash
[3] Download Linux Kernel to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)
Download LOGO Picture (.bin) to Nand  Flash
[l] Set LCD Parameters
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[q] quit from menu
Enter your selection: a
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:553578]
RECEIVED FILE SIZE:  553578 (540KB/S, 1S)

NAND erase: device 0 offset 0x0, size 0xa0000
Erasing at 0x80000 -- 100% complete.
OK

NAND write: device 0 offset 0x0, size 0xa0000

Writing data at 0x9f800 -- 100% complete.
655360 bytes written: OK

重启后,应该出现新的菜单,但没出现

补充下,我是按照“裸奔三部曲”来做的,烧写的是光盘中提供的TQ2440_Test.mcp程序,如果成功的话,应该出现以下菜单
<***************************************>
               TQ2440 Test Program
                www.embedsky.net
<***************************************>

Please select function :   
0 : Please input 1-11 to select test
1 : Test PWM
2 : RTC time display
3 : Test ADC
4 : Test interrupt and key scan
5 : Test Touchpanel
6 : Test TFT LCD
7 : Test IIC EEPROM
8 : UDA1341 play music
9 : UDA1341 record voice
10 : Test SD Card
 楼主| freepig 发表于 2010-4-23 09:49:08 | 显示全部楼层
本帖最后由 freepig 于 2010-4-23 09:54 编辑

按照教程中,该改的地方我都改了,应该是0x30000,但烧录完成后的信息总是到了0xa0000,很是郁闷。是不是烧写地址不对,导致新烧写的程序没有启动

以下是ADS中的信息
Memory Map of the image

  Image Entry point : 0x30000000

明明设置的地址是0x30000000,怎么就变成了0xa0000000呢
亚瑟王 发表于 2010-5-10 18:30:55 | 显示全部楼层
说真的,我不知道你说的0xa0000000是从哪里来的。
我给你分析一下上面那段信息吧:
Now, Downloading [ADDRESS:30000000h,TOTAL:553578]
RECEIVED FILE SIZE:  553578 (540KB/S, 1S)
上面这个表明usb传输数据到了0x30000000这个内存地址。
NAND erase: device 0 offset 0x0, size 0xa0000
Erasing at 0x80000 -- 100% complete.
OK
表明格式化了Nand Flash从0x0开始的,尺寸为0xa0000的空间。
NAND write: device 0 offset 0x0, size 0xa0000

Writing data at 0x9f800 -- 100% complete.
655360 bytes written: OK
表明写入到Nand  Flash的数据从0x0开始,大小0xa0000。

你说的不能启动,应该是你的工程中的链接顺序错了,连接顺序:在TQ2440使用手册的5.3.1章节的第8个截图,148页。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-6 12:21 , Processed in 1.037149 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表