I am using KDS v3.0.0 and the KExx_DRV_LIB v1.3.0 to develop an application for the MKE04Z64VLH4. I am using a PEMicro USB Multilink Universal debugger. I have successfully added the additional memory-mapped peripherals and ports for this device. Basic port testing works just fine. However, any attempt to access UART0 (even a memory read of the status register) causes an interrupt and essentially halts the program. As far as I can tell, no interrupts have been defined or enabled, all interrupts point to the "Default Handler". Running the same code on a FRDM-KE04 evaluation board works just fine. Also, running the simple "baremetal" example for the FRMD_KE04 that uses UART0 fails in exactly the same way.
Any suggestions on what to try next? Why would a memory read of the UART0 memory location trigger an interrupt?
Solved! Go to Solution.
The root cause of this problem was found to be in the ConsoleIO component. Changing to the AsynchroSerial component worked fine and has resolved the issue.
The root cause of this problem was found to be in the ConsoleIO component. Changing to the AsynchroSerial component worked fine and has resolved the issue.
Hi Zachary,
Does your chip is MKE04Z64VLH4 ? If yes , please change the "CPU type":
then have a try , recommend you first send one char to the terminal , if still can not work,
please use the oscilloscope to check the TX pin whether have signal .
Hope it helps
Alice
Alice - thanks for your suggestions. I downloaded and installed the KSDK1.3 and it does not seem to directly support the MKE04Z64VLH4 when using the New Project Wizard. As for the FRMD_KE04 board itself, it never exhibits the problem. The problem only occurs on my client's custom board, so I'm not sure you can reproduce the problem. However I will try and send you the project in case you see something wrong. My next step is to create a PE project (which does appear to support the MKE04Z64VLH4). I will post an update when I have some more information. Thanks for your help.
BR
Zack
Hello Zachary,
About this "running the simple "baremetal" example for the FRMD_KE04 that uses UART0 fails in exactly the same way",
could you please test one under the KSDK1.3 about the UART0.
And also you can send the project on FRDM-KE04 to me , i will check it on my side .
BR
Alice