We are converting our StarterWare program(AM335X_StarterWare_02_00_00_07\build\armv7a\cgt_ccs\am335x\evmAM335x\hs_mmcsd) to run on SYS/BIOS 6.35.3.47.The issue we are running into is that MMC write or read. When executing the following code before read MMC,and i can read the correct data from the MMC.
attrs.type = Mmu_FirstLevelDesc_SECTION;
attrs.domain = 0;
attrs.imp = 1;
attrs.accPerm = 3;
for (i=0x80000000;i<0x90000000;i=i+0x00100000) {
// Each 'SECTION' descriptor entry spans a 1MB address range
attrs.bufferable =0;
attrs.cacheable =0;
Mmu_setFirstLevelDesc((Ptr)(i), (Ptr)(i) , &attrs); }
However, in this state Cache is disable,and AM3359 low operating efficiency.
When executing the following code before read MMC,and i can't read the correct data from the MMC.
attrs.type = Mmu_FirstLevelDesc_SECTION;
attrs.domain = 0;
attrs.imp = 1;
attrs.accPerm = 3;
for (i=0x80000000;i<0x90000000;i=i+0x00100000) {
// Each 'SECTION' descriptor entry spans a 1MB address range
attrs.bufferable =1;
attrs.cacheable =1;
Mmu_setFirstLevelDesc((Ptr)(i), (Ptr)(i) , &attrs); }
I need help!
This is my first message here, my English is poor, please forgive me.
Thanks!
LiZhan.