Hi everyone, I have a FRDM-KL46Z board that I'm using for a college project. The thing is, I've been trying to setup UART functionality and tried a few of the SDK examples (which worked).
When I tried to write my own program and run it, the board suddenly stopped responding, and after trying to debug again I see this error message:
The thing is, I've searched for this issue and already updated the firmware but the issue still remains. I also tried with two computers where this board worked before and I'm getting the same error.
Could this be an issue with the UART configuration still messing with the OpenSDA ? Is the program still running even though I updated the firmware?
For reference, what I did to update the firmware was:
The MSD is being recognized (not in bootloader mode) AND when trying to upload the board is recognized as a P&E Micro probe, but then the error above mentioned appears.
Hopefully I haven't bricked my board... Thanks in advance.
Solved! Go to Solution.
Hi fmontanari,
Please refer the answer in: "MK60DX256VLL10" RESET PIN
Make sure the OpenSDA is in firmware application mode instead of bootloader mode.
Check if the MCU is resetting by measure the waveform of RST_K20D50_B(J3.6).
Pullup the NMI pin by J1.10.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi Robin_Shen, according to the RST_K20D50_B pin, it seems that it is trying to reset:
The NMI is being pulled up with a 10K resistor.
I don't have a P&E micro probe to use the Kinetis Recovery Utility, is that the only alternative? The only thing I have is a TTL-USB converter.
Have you tried to use the onboard P&E Micro OpenSDA with Kinetis Recovery Utility?
If you have Segger J-Link, please refer: Communication error while accessing MDM-AP.
I've tried powercycling the board a few times, but haven't got a success message. I'm not sure though how much should I wait before plugging/unplugging the board. (attaching image for reference)
Should I wait until the MSD is recognized by the OS? Or try multiple times before the OS gets a chance of doing so?
I don't have a Segger J-Link, when I mentioned a USB-TTL converter I was referring to something like this:
(Based on a CH340 chip, which I assume isn't going to work as is, but it might be useful information).
Sorry for forgetting to mention, it's better to powercycling the MCU by J17 instead left the OpenSDA always powered.(You need to modify the hardware)
Sorry USB-TTL converter can't help.
Hi Robin, I've finally managed to get my hands on a soldering station and remove those SMD resistors. I've soldered the jumper J17 and used the P&E Kinetis Recovery Utility as you mentioned, and the halting succeeded (at the first try, which makes me think there's something fishy there). Here's a screenshot of the success message:
However, when I try to upload new code, I still get the error message:
Just to recap, here's the steps I did:
Should I use an alternative mean to upload the new code while the processor is halted (ie, without closing Kinetis Recovery Utility)?
(Thanks for all the help so far, by the way).
Check if Flash_Config is modified, here is the default value with unsecured.
Have you select the option 'Emergency Kinetis Device Recovery by Full Chip Erase'?
After close Kinetis Recovery Utility, maybe you can try to use MSD Flash Programmer of OpenSDA.
Flash_Config isn't modified, and I did try using 'Emergency Kinetis Device Recovery by Full Chip Erase'.
I will try the MSD programmer, but just to be sure, the files I should upload would be the .axf and .map files in the /Debug folder, right? (Here's a screenshot of the files I'd drag and drop from a clean "hello world" project).
I'll try it as soon as you give me the OK. Thanks for everything!
Uploading a bin file with the MSD programmer was the solution. Now I'm able to debug and upload new code with MCUXpresso.
Thanks for all your patience Robin! You saved my board!
You are welcome! I am glad to hear that it works now.