MyFPGA Forum

 找回密码
 注册
搜索
查看: 7489|回复: 2
打印 上一主题 下一主题

HPS 启动流程--图片登录才能浏览

[复制链接]
1#
发表于 2014-8-10 21:19:20 | 显示全部楼层
我手上有一块de1 SoC的开发板,我想在硬核上面跑ucosii。我在ucos官网找到个cyclone五代板的移植包,用在de1上。但是这个官方包没有FPGA外设的驱动,所以我加入了altera官方例程hwlib里面的api初始化外设,但是下载到硬核调试就出现问题,说写不进去!
commands窗口提示
Stopping running target Altera - Cyclone V SoC (Dual Core) on TCP:localhost on connection
Connected to running target Altera - Cyclone V SoC (Dual Core) on TCP:localhost
Execution stopped at: S:0x00002FA8
source /v "D:\altera\14.0\embedded\ds-5\sw\debugger\configdb\Scripts\altera_target_check.py"
S:0x00002FA8   TST      r1,#4

No SYSID registers could be found. Has a peripheral description file been supplied?

source /v "D:\my_experiment\hwlib\Micrium\Software\EvalBoards\Altera\Cyclone-V-Dev-Kit\GNU\Ex-1\debug-hosted.ds"
+reset system
+stop
WARNING(CMD315): Target is not running
+wait 30s
Target has been reset
Execution stopped due to a breakpoint or watchpoint: S:0x00000000
S:0x00000000   LDR      pc,[pc,#24] ; [0x20] = 0xA8
+set semihosting enabled false
+loadfile "$sdir/u-boot-spl.axf" 0x0
Loaded section .text: S:0xFFFF0000 ~ S:0xFFFF65A7 (size 0x65A8)
Loaded section .rodata: S:0xFFFF65A8 ~ S:0xFFFF80E7 (size 0x1B40)
Loaded section .data: S:0xFFFF80E8 ~ S:0xFFFF8FAF (size 0xEC8)
Loaded section .bss: S:0xFFFF8FB0 ~ S:0xFFFF905F (size 0xB0)
Loaded section .malloc: S:0xFFFF9060 ~ S:0xFFFFA45F (size 0x1400)
Loaded section .stack: S:0xFFFFA460 ~ S:0xFFFFB45F (size 0x1000)
Loaded section .spl_irq_stack: S:0xFFFFB460 ~ S:0xFFFFB867 (size 0x408)
Entry point S:0xFFFF0000
+set semihosting enabled true
Semihosting server socket created at port 8000
+delete
All user breakpoints deleted
+tbreak spl_boot_device
Breakpoint 1 at S:0xFFFF1064
    on file spl.c, line 70
    on file spl.c, line 80
+run
Starting target with image D:\my_experiment\hwlib\Micrium\Software\EvalBoards\Altera\Cyclone-V-Dev-Kit\GNU\Ex-1\u-boot-spl.axf
Running from entry point
+wait
Execution stopped at breakpoint 1: S:0xFFFF1064
In spl.c
S:0xFFFF1064   70,0   {
Deleted temporary breakpoint: 1
+loadfile "$sdir/ucosii.axf" 0x0
Loaded section .text: S:0x00100000 ~ S:0x0010E297 (size 0xE298)
Loaded section .rodata: S:0x0010E298 ~ S:0x0010E717 (size 0x480)
Loaded section .data: S:0x0010E718 ~ S:0x0010EFE7 (size 0x8D0)
Loaded section .bss: S:0x0010EFE8 ~ S:0x00110D0F (size 0x1D28)
Loaded section .eh_frame: S:0x00110D10 ~ S:0x00110D13 (size 0x4)
Entry point S:0x0010B298
+start
Starting target with image D:\my_experiment\hwlib\Micrium\Software\EvalBoards\Altera\Cyclone-V-Dev-Kit\GNU\Ex-1\ucosii.axf
Running from entry point
loadfile "D:\my_experiment\hwlib\Micrium\Software\EvalBoards\Altera\Cyclone-V-Dev-Kit\GNU\Ex-1\ucosii.axf"
ERROR(CMD16-TAD11-NAL33):
! Failed to load "ucosii.axf"
! Failed to write 12 bytes to address N:0x00110D10
! Target is running, cannot access.

cd "D:\my_experiment\hwlib"
Working directory "D:\my_experiment\hwlib"
set debug-from main
start
ERROR(CMD350): Command not possible when running
wait
ERROR(CMD361): Wait for stopped interrupted
quit
ERROR(TAD8-NAL22):
! Unable to run device Cortex-A9_0
! General error on memory or register access.


您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|MyFPGA

GMT+8, 2024-5-16 03:40 , Processed in 0.049168 second(s), 14 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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