I have a new design using the K32L2A, ungraded design from old Coldfirev1 MCF51QE32 part. With the prototype PCB, software runs as expected with a PEMicro Cyclone connected, even when not using the device for debug, just powering things up and the MCU runs our software as expected.
However, when the Cyclone is disconnected from the board, the MCU seems to start very briefly then go off on it's own (does not run our software as expected, unsure if it simply stops, or what, since I cannot attached the Cyclone to debug, as that immediately fixes it!). Our design has no external resistors on the SWDIO/SWCLK lines, as the datasheet mentioned these are provided internally by the K32L2A (MCF51QE had 10K pullups on the PCB for these).
Things tried:
- Adding 10K pullup to both these lines - problem remains
- Putting a wire off the PCB so I could touch the lead to the pins DOES FIX IT, that is, it I pinch the lead connected to the SWDIO pin between my fingers and power up the board, the MCU starts correctly and our software runs. It continues to run until I remove my fingers. This worked with either SWD pin. Capacitance? I dunno!?!
Putting a small cap on these lines seems like a hack, clearly I am overlooking something.
No external Resistor on the Reset line either (an oversight) but this didn't seem to be the problem, as the MCU runs with me holding either one of the SWD pins, and fails as soon as I left go of the one pin.
Thoughts, hope or asperations? All are welcome
Cheers!
Solved! Go to Solution.
Hi,
As you know that the K32L2 has flash configuration area, after the chip starts up, the core will copy the data in flash configuration area to the FTFA_FOPT register automatically.
The PTA4 is multiplexed with PTA4, pls connect PTA4 to a pull-up resistor.
Secondly, pls clear NMI_DIS bit in the FTFA_FOPT register. In the case, NMI_b pin will not fire interrupt.
Hope it can help you
BR
XiangJun Rong
Hi,
As you know that the K32L2 has flash configuration area, after the chip starts up, the core will copy the data in flash configuration area to the FTFA_FOPT register automatically.
The PTA4 is multiplexed with PTA4, pls connect PTA4 to a pull-up resistor.
Secondly, pls clear NMI_DIS bit in the FTFA_FOPT register. In the case, NMI_b pin will not fire interrupt.
Hope it can help you
BR
XiangJun Rong