This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reading CFI Information

Hi,

i try to read out CFI Information from the flash. The Problem is, my Program runs from the Flash. So i think it will not be possible and i have to move the code for reading the cfi Info to the RAM?
How can i do this? I fount different flash drivers in c-code on the net. How can they work? How can i compile it using keil to run them from RAM?

Parents Reply Children
  • What can't work? The concept is the same just the location of RAM would be different. For the C167 you can use internal RAM for example XRAM (0xE000) or IRAM (0xF600).

    Basically your code needs to be copied from ROM (Flash) to RAM. The linker locates the code so the addresses are at the final location but since RAM is volatile you need to copy if from ROM to RAM.

    If you state clearly what problem you are having then others could try to help.

  • Yes, but i am not allowed to disable Interrupts, i have a komplex Software with realtime OS working.

    But it is working now, i do it in start167.a66 using asm. Just a simple failure prevented this from running yesterday.

    thanks.