CW v5.9.0:  Debugger memory view  external flash   (M5282evb)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CW v5.9.0:  Debugger memory view  external flash   (M5282evb)

1,567 次查看
francois_boucha
Contributor III
Hi all,

2 questions:

1) When debbuging, is it possible to write data at memory 0xFFF0_0000 (external 2MB flash)?


2) Is there some documentation concerning the .mem and .cfg  debbuger files?  The memory map in the .mem file doesnt seem to complicated but I require further documentation for these files....


Thanks in advance

Francois
标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

382 次查看
J2MEJediMaster
Specialist I
It should be possible to wrote external Flash, as along as the processor is configured to recognize it, and the Flash device resides in the proper section of the processor's map of Flash memory.

Information on the .cfg and .mem files can be found in Appendix A and Appendix B respectively of the ColdFire Targeting Manual. This manual is located in the \Help directory of the CodeWarrior installation directory.

---Tom
0 项奖励
回复

382 次查看
francois_boucha
Contributor III
Hi Tom,

Thanks for the quick response.   Right now I can read the Flash (Am29LV160D) correctly but it seems the external Flash (I want to write to it) is write protected by the ship itself, not by the debbuger memory file.

Here my memory map:

//         Memory Map:
//         ----------------------------------------------------------------------
range      0x00000000 0x0007FFFF 4 Read         // 512 Kbytes Internal Flash
reserved   0x00080000 0x1FFFFFFF
range      0x20000000 0x2000FFFF 4 ReadWrite    // 64 Kbytes Internal SRAM
reserved   0x20010000 0x2FFFFFFF
reserved   0x30000000 0x3FFFFFFF                // External SRAM (not fitted)
//         $IPSBAR_BASE         $IPSBAR_BASE + 0x1FFFFF // Memory Mapped Registers
reserved   $IPSBAR_BASE + 0x200000     0xEFFFFFFF
range      0xF0000000 0xF0FFFFFF 4 ReadWrite    // 16 Mbyte SDRAM
reserved   0xF1000000 0xFFDFFFFF
range      0xFFE00000 0xFFEFFFFF 4 read               // debugger/monitor firmware
range       0xFFF00000 0xFFFFFFFF 2 ReadWrite    //

I want to write at 0xFFF00000  to 0xFFFFFFFF.    The Flash memory organisation is 16 bits x 1M

My ship select initialization routine :

    /*
     * ChipSelect 0 - External Flash
     */
    MCF_CS0_CSAR = MCF_CS_CSAR_BA(0xffe00000);
    MCF_CS0_CSCR = (0
        | MCF_CS_CSCR_WS(6)
        | MCF_CS_CSCR_AA
        | MCF_CS_CSCR_PS_16);
    MCF_CS0_CSMR = MCF_CS_CSMR_BAM_2M | MCF_CS_CSMR_V;


Any clues?

Francois
0 项奖励
回复