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

Mapping external SRAM memory

Hello everybody.
I have a little doubt that I would like to ask you.
I am trying to map a 64KB external SRAM memory in 16bit multiplexed bus mode in my XC164CS microcontroller.
In keil compiler, at what adress should be mapped this memory?
I have read the memory organization of XC164CS and I have seen that there are 3 zones to map a external memory. The problem is that I dont know in which zone should be placed.
Thank you very much.

Parents
  • Hi John,

    Sorry, I missed that you specifically asking about RAM but the type of memory should make no difference as long as the timing registers and such are configured properly for the device you are using. On our application that locates FLASH at 40'0000H using CS0 we also have external RAM at 60'0000H using CS1.

    Could the watchdog timeouts be because you are using the external memory for program execution/variable storage? Maybe you can write a test program that executes entirely in internal memory but reads and writes to external memory allowing you to debug the problem.

Reply
  • Hi John,

    Sorry, I missed that you specifically asking about RAM but the type of memory should make no difference as long as the timing registers and such are configured properly for the device you are using. On our application that locates FLASH at 40'0000H using CS0 we also have external RAM at 60'0000H using CS1.

    Could the watchdog timeouts be because you are using the external memory for program execution/variable storage? Maybe you can write a test program that executes entirely in internal memory but reads and writes to external memory allowing you to debug the problem.

Children
No data