I've been having extreme difficulty try to port some code that works on the MC56F8322 in CW for MCU v8.3 to the MC56F8256 in CW for MCU v11.1.
I was trying to debug the MC56F8256 code in CW for MCU v11.1 using a P&E Micro Multilink and my development hardware. As far as I could tell the code was downloading into to the hardware. The problem is that when I tried to step through the code, it could not write any values to the peripheral registers. I thought that it might be something to do with my ported code, so I generated a new empty project in v11.1. Unfortunately the same problem persists. I assume I must be doing something wrong as I'm told that the MC56F8256 is supported in V11.1. Is there a guide on how to configure a MC56F8256 project for debugging in v11.1?
Hi,
Pls check if you enable the gated clock of the on-chip ADC.
Pls refer to section 16.2.12 Peripheral Clock Enable Register 0 (SIM_PCE0), you have to set the ADC bit in the SIM_PCE0 register before you write ADC registers.
Hope it can help you
BR
XiangJun Rong