Product Information

 Register Once for
 custom product info



Can I remap external memory banks of Oki's Advantage Microcontrollers to bank 0 during debugging?

Descriptive Answer:
Yes. The external memory banks of Oki's Advantage Microcontrollers can be remapped to address 0x00. This method is often helpful during the debug process when having external SRAM or SDRAM at address 0x00 is desired over ROM. To remap external SRAM to bank 0 do the following:

  1.  Establish a debugger JTAG connection to the target Advantage Microcontroller -board.
  2.  The following registers have to be written to initialize the SRAM bank of the Oki ML675K MCU. This may be done by running a debugger script or macro.
a.GPCTL (address 0xb7000000 = 0x00000004)
b.BWC (address 0x78100000 = 0x00000028)
c.RAMAC (address 0x78100008 = 0x00000000)
  3.  Create a script or macro to write the following successive values to the remap Control register in this order (RMPCON = 0xB80000010):
a. RMPCON = 0x3c
b. RMPCON = 0x08
  4.  Launch the script or macro created above in the debugger. Re-map is done.
  5.  Check to see if remap was successful. This can be done by opening a memory window to address 0x00. Try changing the contents of memory in this region. Is RAM present or ROM? If the re-map is completed successfully, RAM should be present and the memory contents can then be changed.

The SDRAM bank can be remapped to bank 0 using the same process. Before re-mapping, the SDRAM bank, make sure that the bank is initialized properly. The RMPCON must be set to 0x09 to remap SDRAM to address 0x00.