Hello. It seems that switching to an on-RAM interrupt handler isn't working on this model. I switch to an on RAM handler "through FSL_ChangeInterruptTable" and if I set a breakpoint inside the handler it never triggers. I tried to look on the datasheets and I found this. On r01us0050ej0103_rl78 (Flash Self-Programming Library Type01), chapter: "2. 3 Cautions on Programming Environment", page 31: (15) Some RL78 microcontrollers do not support an interrupt during the execution of flash self-programming. Refer to the user’s manual of the target RL78 microcontroller to see whether the RL78 microcontroller to be used supports an interrupt during the execution of the flash self-programming The RL78F13, F14 user manual (hardware), chapter 30.6 Self-Programming, page 1617 contains this vague (in my opinion) paragraph under the "cautions" section: 2. To prohibit an interrupt during self-programming, in the same way as in the normal operation mode, execute the flash self-programming library in the state where the IE flag is cleared (0) by the DI instruction. To enable an interrupt, clear (0) the interrupt mask flag to accept in the state where the IE flag is set (1) by the EI instruction, and then execute the flash self-programming library. For which this paragraph is very unclear for me and one of my colleagues: To enable an interrupt, clear (0) the interrupt mask flag to accept in the state where the IE flag is set (1) by the EI instruction, and then execute the flash self-programming library. ????? According to this documentation It vaguely seems like prohibiting interrupts during self-programming(through DI/EI) is optional. Are interrupts during self-programming allowed on the F14 or I'm I doing something wrong?
↧