RE: [motoroladsp] DSP56F807 application write to FLASHHello, What do you mean "with great care code" ? I am desperate. The only way to write to data flash is to desactivate interrupts before writing. If i don't make this, either the program counter jump anywhere, or it jump at "assert (!(TmpWord & 0x0007)); /* Access to flash while programming */ " in I don't acces to dataflash in my interrupts sub routines, i only access to dataram. For my interrupts, i use static installation of the SDK. My code is stored in program flash. I really don't understand why it doesn't work. Is it necessary to modify the values of the following registers : FLASH_DFIU_CKDIVISOR_VALUE 0x000F FLASH_DFIU_TERASEL_VALUE 0x000F FLASH_DFIU_TMEL_VALUE 0x000F FLASH_DFIU_TNVSL_VALUE 0x00FF FLASH_DFIU_TPGSL_VALUE 0x01FF FLASH_DFIU_TPROGL_VALUE 0x03FF FLASH_DFIU_TNVHL_VALUE 0x00FF FLASH_DFIU_TNVH1L_VALUE 0x0FFF FLASH_DFIU_TRCVL_VALUE 0x003F I specify that I use SDK 3.0 and codewarrior 5.1. Thank you for your answer Lionel -----Message d'origine----- De : Johnson, Jerry [mailto:] Envoy: mardi 18 novembre 2003 18:19 : 'Bill Schintler'; Objet : RE: [motoroladsp] DSP56F807 application write to FLASH With great care, and tenuous programming? In general, interrupt routines cannot access the flash that is being programmed, so they are either written to only use Ram, or (Program) flash that is not being written, or they are disabled. That leaves non-maskable interrupts as the remaining problem. They better not use the flash being programmed. In the case of the 807 part, there are 2 seperate flash areas for program flash, so with great care code can still run from flash, and program the other flash area. Jerry. > -----Original Message----- > From: Bill Schintler [mailto:] > Sent: Monday, November 17, 2003 10:48 PM > To: > Subject: [motoroladsp] DSP56F807 application write to FLASH > How does an application, which resides in FLASH, write non-volatile > data to data (or program) FLASH? Is this even possible? > > I am developing under CW 5.1. > > Thanks in advance - Bill Schintler > ------------------------ _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: To Post: To Leave: Archives: http://www.yahoogroups.com/group/motoroladsp More Groups: http://www.dsprelated.com/groups.php3 |