RL78 ends up at 0xFF0 ?? during random times per power cycle

Hello,

I wrote a custom driver for the DTC and it has been running great, however at seemingly random points in the program the RL78 eventually ends up at address 0xFF0 with ?? (according to the disassembly in the IAR debugger) . Could this be because my linker files ram start address is 0xFBF00, and I don't offset my start address for the addresses below?

  1. The debugger uses the area FE300H to FE4FFH to store the result of tracing when the tracing function for
    on-chip debugging is in use. Accordingly, use of this area is prohibited while the tracing function is in use.
  2. The debugger uses the area FE500H to FE52FH as a working area when the hot plug-in function is in use or
    when the DTC is in use for the real-time RAM monitor (RRM) or dynamic memory modification (DMM) function.
    Accordingly, use of this area is prohibited while the hot plug-in function is in use or the DTC is in use for the
    RRM or DMM function.

(RL78 F13/F14 user manual per Figure 3-14. Memory Map (R5F10AmG (m = G, L, M), R5F10BnG (n = A, B, G, L, M)))

From what I can tell my software is functioning fine and it's only when adding significantly more functionality that this becomes an issue. Currently I am only using my DTC driver for the simplified I2C peripheral and this works fine with fewer transactions. When attempting to send out more data this issue occurs sometimes as late as 900 seconds into the program runtime.

Thanks,

tempre

Parents Reply Children