用的是ccs3.3来调试tms320f28027,程序不大,碰到的问题却不少,大家如有相应经验,请多多指导:
最近试着把程序写进28027的flash运行,发现HALTED:s/w breakpoint
**** Begin Erase/Program/Verify Operation. ***
Erase/Program/Verify Operation in progress...
Erase operation in progress...
Flash API Error #1:
Unknown error during Flash operation.
Erase/Program/Verify Operation failed
**** End Erase/Program/Verify Operation. ***
我是按照广州致远在ccs3.3的一个类似于quick start的手册中 程序固化和加密 那个章节的指导来进行的。
先是移除ram_link,植入28027.ram
取消勾选customize中perform go main automatic(我本来也没有选)
取消勾选customize中load program after build
最后是从tools中选择f28xx on-chip flash programmer来写程序,结果就出现上面的哪个错误。
我曾经试着把例程 example sci-echo back写进flash,也出现本文开头讲的那个的问题。
28027.cmd中地址部分我的设置如下:
PRAML0 : origin = 0x008000, length = 0x000B00 /* on-chip RAM block L0 */
DRAML0 : origin = 0x008B00, length = 0x000400 /* on-chip RAM block L0 */
map中相关部分如下:(运行example sci-echo back后)
MEMORY CONFIGURATION
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
PAGE 0:
PRAML0 00008000 00000b00 0000001f 00000ae1 RWIX
OTP 003d7800 00000400 00000000 00000400 RWIX
FLASHD 003f0000 00002000 00000000 00002000 RWIX
FLASHC 003f2000 00002000 00000000 00002000 RWIX
FLASHA 003f6000 00001f80 00000866 0000171a RWIX
CSM_RSVD 003f7f80 00000076 00000000 00000076 RWIX
BEGIN 003f7ff6 00000002 00000002 00000000 RWIX
CSM_PWL_P0 003f7ff8 00000008 00000000 00000008 RWIX
IQTABLES 003fe000 00000b50 00000000 00000b50 RWIX
IQTABLES2 003feb50 0000008c 00000000 0000008c RWIX
IQTABLES3 003febdc 000000aa 00000000 000000aa RWIX
ROM 003ff27c 00000d44 00000000 00000d44 RWIX
RESET 003fffc0 00000002 00000000 00000002 RWIX
VECTORS 003fffc2 0000003e 00000000 0000003e RWIX
PAGE 1:
BOOT_RSVD 00000000 00000050 00000000 00000050 RWIX
RAMM0 00000050 000003b0 00000200 000001b0 RWIX
RAMM1 00000400 00000400 00000000 00000400 RWIX
DEV_EMU 00000880 00000105 00000004 00000101 RWIX
SYS_PWR_CTL 00000985 00000003 00000003 00000000 RWIX
FLASH_REGS 00000a80 00000060 00000008 00000058 RWIX
CSM 00000ae0 00000010 00000010 00000000 RWIX
ADC_RESULT 00000b00 00000020 00000020 00000000 RWIX
CPU_TIMER0 00000c00 00000008 00000008 00000000 RWIX
CPU_TIMER1 00000c08 00000008 00000008 00000000 RWIX
CPU_TIMER2 00000c10 00000008 00000008 00000000 RWIX
PIE_CTRL 00000ce0 00000020 0000001a 00000006 RWIX
PIE_VECT 00000d00 00000100 00000100 00000000 RWIX
COMP1 00006400 00000020 00000011 0000000f RWIX
COMP2 00006420 00000020 00000011 0000000f RWIX
EPWM1 00006800 00000040 0000003a 00000006 RWIX
EPWM2 00006840 00000040 0000003a 00000006 RWIX
EPWM3 00006880 00000040 0000003a 00000006 RWIX
EPWM4 000068c0 00000040 0000003a 00000006 RWIX
ECAP1 00006a00 00000020 00000020 00000000 RWIX
GPIOCTRL 00006f80 00000040 00000040 00000000 RWIX
GPIODAT 00006fc0 00000020 00000020 00000000 RWIX
GPIOINT 00006fe0 00000020 0000000a 00000016 RWIX
SYSTEM 00007010 00000020 0000001f 00000001 RWIX
SPIA 00007040 00000010 00000010 00000000 RWIX
SCIA 00007050 00000010 00000010 00000000 RWIX
NMIINTRUPT 00007060 00000010 00000010 00000000 RWIX
XINTRUPT 00007070 00000010 00000010 00000000 RWIX
ADC 00007100 00000080 00000050 00000030 RWIX
I2CA 00007900 00000040 00000022 0000001e RWIX
DRAML0 00008b00 00000400 00000022 000003de RWIX
PARTID 003d7fff 00000001 00000001 00000000 RWIX
FLASHB 003f4000 00002000 00000000 00002000 RWIX
CSM_PWL 003f7ff8 00000008 00000008 00000000 RWIX
大家看我该从什么地方着手来解决烧写flash的问题?有什么手册可用吗? |