##// END OF EJS Templates
dsu3plugin:...
Jeandet Alexis -
r88:f17adb028d26 default draft
parent child
Show More
@@ -97,8 +97,8 bool dsu3plugin::configureTarget()
97 97 }
98 98 if(MCTRLBASEADDRESS == (unsigned int)-1)
99 99 {
100 SocExplorerEngine::message(this,"Can't any compatible memory controller",1);
101 return false;
100 SocExplorerEngine::message(this,"Can't find any compatible memory controller",1);
101 // return false;
102 102 }
103 103
104 104
@@ -137,9 +137,12 bool dsu3plugin::configureTarget()
137 137 WriteRegs(uIntlist()<<0<<0<<0<<0,(unsigned int)DSUBASEADDRESS+0x400060);
138 138 WriteRegs(uIntlist()<<0x0000FFFF,(unsigned int)DSUBASEADDRESS+0x24);
139 139
140 unsigned int ramSize=SocExplorerEngine::self()->memMeasureSize(this->parentPlugin(),0x40000000);
141 SocExplorerEngine::message(this,QString("Measured memory size=%1").arg(ramSize),0);
142
140 143 memSet(DSUBASEADDRESS+0x300000,0,1567);
141 144 WriteRegs(uIntlist()<<0<<0xF30000E0<<0x00000002<<0x40000000<<0x40000000<<0x40000004<<0x1000000,(unsigned int)DSUBASEADDRESS+0x400000);
142 WriteRegs(uIntlist()<<0<<0<<0<<0<<0<<0<<0x403ffff0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0,(unsigned int)DSUBASEADDRESS+0x300020);
145 WriteRegs(uIntlist()<<0<<0<<0<<0<<0<<0<<0x40000000+ramSize-16<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0<<0,(unsigned int)DSUBASEADDRESS+0x300020);
143 146 WriteRegs(uIntlist()<<0x000002EF,(unsigned int)DSUBASEADDRESS);
144 147
145 148 //Disable interrupts
General Comments 0
You need to be logged in to leave comments. Login now