Other Parts Discussed in Thread: OMAPL138, SYSBIOS
Tool/software: Code Composer Studio
I have a C6748 custom board. We have a USB logging feature (in msc host mode) via USB OTG interface.
Everything runs well in simulation run using jtag but it crashes with flashed target.
I have noticed the memory map in the cmd file does something with my problem.
--args=64
MEMORY
{
FLASH_CS2 org=0x60000000 len=0x02000000 /* AEMIF CS2 region */
FLASH_BOOT org=0x62000000 len=0x02000000 /* AEMIF CS3 region */
FLASH_CS4 org=0x64000000 len=0x02000000 /* AEMIF CS4 region */
SHRAM org=0x66000000 len=0x02000000
}
SECTIONS
{
.aemif_mem :
{
} > FLASH_BOOT, RUN_START(NANDStart)
"CFG" > DDR_CFG
"DDR" > DDR
.bss > SHRAM <--------------- this makes difference
.text > DDR
.stack > DDR
.cio > DDR
.const > DDR
.data > DDR
.switch > DDR
.sysmem > DDR
.far > DDR
.args > DDR
/* COFF sections */
.pinit > DDR
.cinit > DDR
.ddrram :
{
. += 0x07000000;
} > DDR, type=DSECT, RUN_START(EXTERNAL_RAM_START), RUN_END(EXTERNAL_RAM_END)
}
** If i remove .bss macro from the SECTION, then at least it doesn't crash in the flashed target but USB logging not working in simulation
If I add .bass to the SECTION, then USB logging works in simulation, but it crashes in flashed target.
What did I do wrong??
Thanks,
Dan