Other Parts Discussed in Thread: HALCOGEN
Hi,
currently I am trying to access the Flash module of a TMS570LS3137ZWT. Therefore I use the F021 Flash API. Writing Banks 0 and 1 are working properly but I face difficulties when programming and erasing Bank 7. When checking the FSM status after a programming command I receive the PGV error-bit set. The code I use is copied from the F021 Flash API Reference Guide. RWAIT and EWAIT are set to 3 because I am working with a frequency of 160MHz. Any suggestions what might be wrong? What is actually meant when talking about HCLK frequency in the API Reference guide, the frequency the TMS570 is working at (160 MHz) or the frequency of the physical oscillator which generates the system frequency (I am using a 16Mhz quartz crystal)?
My second question is about the EEPROM emulation. I read in one of your documents the the emulation is only done in software via a specific EEPROM driver. Is this the F021 API or is there another library? If so where do I get it from? Does using the Flash Bank 7 for EEPROM emulation require any changes in the configuration of the flash registers compared with using it as 'normal' flash? I don't get this out of your documentation...
Thanks in advance!
Stefan