This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> -----Original Message----- > From: Abhilash R [mailto:rabhilash@tataelxsi.co.in] > Sent: Friday, March 08, 2002 2:29 PM > To: crossgcc@sources.redhat.com > Subject: bootloader for MCORE MMC2107 > > > > hello, > > I am trying to use the bootloader code for MMC2107 ,that i > got from the > pdf file (AN1756). > I placed the boot loader in the first sector of the flash and i am > trying to execute the > bulk_erase(33,3) function . So in this erase function i am trying to > erase only the third sector. I assume you are running from flash. > > But in the bulk_erase(INT8U clockfreq, INT8U block) function after > executing > "reg_CMFRCTL.bit.EHV = 1 ; /*set EHV*/ " this line the processor is > hanging > It is not at all executing the next line. > > What could be the problem with this? I dont't know the flash you are using, but many flash chips do not allow normal read access during a program/erase. So your program crashes because it reads nonsense from the flash. Take a look at your flash type's data sheet. > Looking forward to your kind help. > > regards > abhilash > > > ------ > Want more information? See the CrossGCC FAQ, > http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to > crossgcc-unsubscribe@sources.redhat.com > > ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |