I'm working on my UART project with FRDM-KL25Z board and in my own projects, I encountered the "Flash Download Failed - Target DLL Has Been Cancelled" error. But, after adding "Device" software components (those green squares) in project files everything was fine.
However, my UART project was not working and I tried to see the SDKs and learn from them but, the same error was happening there. Now, the problem is that the SDKs has start_up and system files and if I add software components the duplication error will be shown. It seems this error caused a lot of trouble back then (7-10 year ago) and I couldn't find any solution. Not to mention that I've already tried solutions like configuring the debugger (pemicro) and those flash settings; they are not working. If after all these years someone has a proper solution for this, I'd appreciate the help.
Solved! Go to Solution.
Hello @ElectroDesi9n ,
Thanks for your post. You can refer to the following thread: Error: Flash Download failed - Target DLL has been cancelled - NXP Community
Could you please tell me which IDE you are using, CodeWarrior or Keil? I recommend that you use MCUXpresso IDE and give it a try to see if there are still the same problem.
MCUXpresso IDE for NXP MCUs | Linux, Windows and MacOS | NXP Semiconductors | NXP Semiconductors
Finally, if your issue still remains unresolved, could you provide me with more detailed information, such as a screenshot of the error page or a connection diagram of the board?
Hope this will help you. If this doesn't fully answer your question please contact me again. I will be glad to help you further.
Best Regards,
Celeste
Hello @ElectroDesi9n ,
Thanks for your post. You can refer to the following thread: Error: Flash Download failed - Target DLL has been cancelled - NXP Community
Could you please tell me which IDE you are using, CodeWarrior or Keil? I recommend that you use MCUXpresso IDE and give it a try to see if there are still the same problem.
MCUXpresso IDE for NXP MCUs | Linux, Windows and MacOS | NXP Semiconductors | NXP Semiconductors
Finally, if your issue still remains unresolved, could you provide me with more detailed information, such as a screenshot of the error page or a connection diagram of the board?
Hope this will help you. If this doesn't fully answer your question please contact me again. I will be glad to help you further.
Best Regards,
Celeste
Dear @Celeste_Liu,
Thanks for your help; changing my IDE from Keil to MCUExpresso helped to solve my initial problem. But, now when I want to run SDKs I'm encountering a weird problem. The simple "hello world" demmo application works fine; when I debug it, the initial "hello world" message is shown on Tera Term terminal and my character inputs are echoed back to laptop. However, when I try the "UART Interrupt" driver example, nothing happens; I'm able to debug it and no error is shown, but neither the initial message of the SDK nor my input is displayed on terminal.
I'll appreciate your help.
Hello @ElectroDesi9n ,
I'm glad to know that you have started to try MCUXpresso. Have you carried out the connection operation according to /doc/readme.txt? As shown in the following figure.
Best Regards,
Celeste
Dear @Celeste_Liu,
I've connected the laptop and board with mini USB as it was written. The configuration is as it should be; I didn't change anything. The image below shows the J2 18 and 20 are used as their ALT3 functionality. If I need to change to code or make external connection with jumper wires, I'll appreciate your help.
Best Regards,
Radman
Hello @ElectroDesi9n ,
I have made an attempt on my side and it can work normally without the need to modify the code. For the board connection, you can refer to the following figure.
The result is as described in the readme.txt.
Please check whether your USB2COM connection is correct or not. Or you can take a photo and send it to me. I'll help you check it.
Best Regards,
Celeste
Dear @Celeste_Liu,
I hope you see this message soon or someone else help me fast. After researching and reading reference manuals I see that the "hello world" uses the debug UART and the OpenSDA so that no external hardware is required which is not the case for real world UART communications. But, my project's goal is the wireless communication between laptop and KL25Z with ESP-01 wifi module as bridge.
I want to use UART between laptop and KL25Z and ESP-01 to be able to configure ESP-01 with AT command and then establish wireless connections. But in any case, I just need some sort of wireless communication between any two devices for tomorrow. I'd appreciate your help.
Best Regards,
Radman
Hello @ElectroDesi9n ,
About how to use UART between laptop and KL25Z and ESP-01, I observed that you have another post: Can't Configure ESP-01 With AT Commands Using KL25Z - NXP Community And my colleague has already replied to you. Regarding that issue, please discuss it in that thread. Thanks for your understand.
BRs,
Celeste
Dear @Celeste_Liu,
I don't have any other hardware except KL25Z and ESP-01. I thought KL25Z is capable of communicating by itself. I'm confused a little bit, why do I need external hardware for this example while I didn't need anything for "hello world" demo?
I should complete my project by tomorrow, so I'll appreciate if you help me to do something with what I already have.
Best Regards,
Radman