Hi,
I try to flash the ramdisk file(9.2MB) to NAND in CCS v3.3 using nand_programmer project provided by EVMDM355. When fread() is called to copy the file to DDR SDRAM, CCS crashed at the time about 2MB data is read into SDRAM. No error message was given out, CCS lost response, XDS560 emulator kept power on but the light didn't flicker.
The program stuck at the following code:
fread(appdat, 1, wtrFileSize, fwtrPtr);
Is it related to the cmd file in the project?
Here's the cmd file. I tried to increase -stack to 16M, and _STACK_SIZE to 64K, but it doesn't solve the problem.
It is ok to read a 1MB file to SDRAM, but if I read the file to the same space in SDRAM twice, the first round is ok, but the second round failed.
/////////////////////////////////////
-f 0
-c /* LINK USING C CONVENTIONS */
-stack 0x10000
-heap 0x1000000 /* HEAP AREA SIZE */
__I_STACK_SIZE = 0x800; /* IRQ Stack */
__S_STACK_SIZE = 0x800; /* SUPERVISOR Stack */
__F_STACK_SIZE = 0x800; /* FIQ Stack */
__U_STACK_SIZE = 0x800; /* UNDEF Stack */
__Y_STACK_SIZE = 0x800; /* SYSYEM Stack */
__A_STACK_SIZE = 0x800; /* ABORT Stack */
/* SPECIFY THE SYSTEM MEMORY MAP */
MEMORY
{
IRAM org= 0x00000000 len= 0x00007FFF
ENTRY_POINT org= 0x80000000 len= 0x00000200
DDR_EMIF org= 0x80000200 len= 0x10000000
}
SECTIONS
{
.bss:csl_section:_CSL_intcEventHandlerRecord > IRAM
{. = align(8);}
.bss:csl_section:intc > IRAM
.text:csl_section:intc > IRAM
.entryPoint > ENTRY_POINT
.cinit > DDR_EMIF
.text > DDR_EMIF
.const > DDR_EMIF
.data > DDR_EMIF
.bss > DDR_EMIF
.sysmem > DDR_EMIF
.stack > DDR_EMIF
.sstack > DDR_EMIF
.istack > DDR_EMIF
.fstack > DDR_EMIF
.ustack > DDR_EMIF
.ystack > DDR_EMIF
.astack > DDR_EMIF
}
////////////////////////////////////