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

NXP Kinetis KL0: no update of System Viewer registers during debug.

How to make register values in Peripheral->System Viewer be updated during debug? I use SEGGER J-Link with uVision 5.25.2.0 and experience such problem by working with NXP Kinetis MKL03F32V4 device. Actually, with any device in Kinetis KL0 series. Some register values are updated during step-by-step debug (e.g. LPTMR0), but some are not (e.g. MCG or SMC). If I copy register value into a variable and place it into Watch window, I see its update there. Previously with Keil version prior to 5.1 everything worked fine. Today I faced with the same problem by working with Kinetis K02 Cortex-M4 device. However, all System Viewer registers are updated for Kinetis K64F microcontroller. Very strange. Please advise how to fix it. Here is my code for modifying SMC. The System Viewer always shows their values as zeros.

        SMC->PMPROT = SMC_PMPROT_AVLP_MASK;
        SMC->PMCTRL = SMC_PMCTRL_RUNM(2) | SMC_PMCTRL_STOPM(2);

Parents
  • Thank you! OK, I found only .xml file, not .svd for my part. Anyway, the address of the SMC peripheral and all other related to it fields are correct there. Renamed this file to .svd and applied SVDConv.exe tool to generate the .SFR file and replaced the original one with it in ...\PACK\NXP\MKL03Z4_DFP\10.0.1 folder. Restarted Keil. Still no go - the System Viewer keeps showing 0s for the SMC registers. If I add SMC to Watch, the values of all its registers are shown correctly and updated in the coarse of debugging. This could be a workaround. But any other hints how to make System Viewer work properly?

Reply
  • Thank you! OK, I found only .xml file, not .svd for my part. Anyway, the address of the SMC peripheral and all other related to it fields are correct there. Renamed this file to .svd and applied SVDConv.exe tool to generate the .SFR file and replaced the original one with it in ...\PACK\NXP\MKL03Z4_DFP\10.0.1 folder. Restarted Keil. Still no go - the System Viewer keeps showing 0s for the SMC registers. If I add SMC to Watch, the values of all its registers are shown correctly and updated in the coarse of debugging. This could be a workaround. But any other hints how to make System Viewer work properly?

Children
No data