Build errors, Missing .axf file, and RedlinkServerException during debug launch

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Build errors, Missing .axf file, and RedlinkServerException during debug launch

152 次查看
Maheswari123
Contributor I

Hello NXP Support Team,

I am encountering multiple issues while trying to build and debug my project in MCUXpresso IDE.

Environment Details:

  • MCUXpresso IDE Version:  v11.8.0

  • Host OS: Windows

  • Target Board / MCU: MKM34z256vll7

  • Debug Probe:CMSIS-DAP 

Symptoms Observed:

  1. Build Errors / Missing .axf/.elf File: When attempting to build the Release configuration, build errors occur. Because of these errors, the .axf/.elf output file is not generated, resulting in the "Program file does not exist" debug launch error.

  2. RedlinkServerException: When attempting to debug or connect, I receive a RedlinkServerException: Cannot write to server not open, indicating a communication failure with LinkServer.

  3. Probe Discovery Issue: The IDE occasionally fails to properly discover or communicate with the debug probe.

Troubleshooting Steps Already Tried:

  • Verified that build errors must be resolved, but need guidance on resolving the specific compilation/linker errors preventing the .axf file generation.

  • Restarted MCUXpresso IDE and power-cycled the debug probe / development board.

0 项奖励
回复
1 回复

11 次查看
Celeste_Liu
NXP Employee
NXP Employee

Hello @Maheswari123 ,

Thanks for your post. 

1. Release build failure / missing .axf or .elf file

The .axf/.elf executable can only be generated after the project has been compiled and linked successfully.

Therefore, please first identify the actual compiler/linker error that is preventing the Release build from completing. Please Clean the project and rebuild the Release configuration, then provide the complete build output from the Console, especially the first error together with the messages around it. With the actual compiler/linker error, we can determine whether the issue is related to source/include paths, linker configuration, undefined references, or something else.

You can also try opening an SDK demo to see if you can successfully build it. This can help determine whether the issue lies with the tool or with your custom code.

2. CMSIS-DAP / LinkServer communication issue

For RedlinkServerException and intermittent probe discovery, please check whether Windows recognizes the CMSIS-DAP probe and whether firewall or security software is blocking communication with Redlink Server. After ending any debug sessions, you can try Clean Up Debug and then search for the probe again.

In addition, please let us know the exact CMSIS-DAP probe being used (for example, MCU-Link, OpenSDA CMSIS-DAP, or another probe). If the issue persists, please also provide the complete LinkServer console/log output related to the error.

Looking forward to your reply.

BR

Celeste

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2418629%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E7%89%88%E6%9C%AC%E9%94%99%E8%AF%AF%EF%BC%8C%E7%BC%BA%E5%B0%91%20.axf%20%E6%96%87%E4%BB%B6%E6%96%87%E4%BB%B6%EF%BC%8C%E4%BB%A5%E5%8F%8A%E8%B0%83%E8%AF%95%E5%90%AF%E5%8A%A8%E6%9C%9F%E9%97%B4%E7%9A%84%20RedlinkServerException%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2418629%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8CNXP%E6%94%AF%E6%8C%81%E5%9B%A2%E9%98%9F%EF%BC%8C%3C%2FP%3E%3CP%3E%E6%88%91%E5%9C%A8%20MCUXpresso%20IDE%20%E4%B8%AD%E6%9E%84%E5%BB%BA%E5%92%8C%E8%B0%83%E8%AF%95%E9%A1%B9%E7%9B%AE%E6%97%B6%E9%81%87%E5%88%B0%E4%BA%86%E5%A4%9A%E4%B8%AA%E9%97%AE%E9%A2%98%E3%80%82%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E7%8E%AF%E5%A2%83%E8%AF%A6%E6%83%85%EF%BC%9A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3EMCUXpresso%20IDE%20%E7%89%88%E6%9C%AC%EF%BC%9Av11.8.0%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%E4%B8%BB%E6%9C%BA%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%EF%BC%9AWindows%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%E7%9B%AE%E6%A0%87%E6%9D%BF%2FMCU%EF%BC%9AMKM34z256vll7%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%E8%B0%83%E8%AF%95%E6%8E%A2%E9%92%88%EF%BC%9ACMSIS-DAP%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3E%E8%A7%82%E5%AF%9F%E5%88%B0%E7%9A%84%E7%97%87%E7%8A%B6%EF%BC%9A%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%3E%3CSTRONG%3E%E6%9E%84%E5%BB%BA%E9%94%99%E8%AF%AF%2F%E7%BC%BA%E5%B0%91%20.axf%2F.elf%20%E6%96%87%E4%BB%B6%EF%BC%9A%3C%2FSTRONG%3E%E5%B0%9D%E8%AF%95%E6%9E%84%E5%BB%BA%20%E7%89%88%E6%9C%AC%20%E9%85%8D%E7%BD%AE%E6%97%B6%EF%BC%8C%E5%87%BA%E7%8E%B0%E6%9E%84%E5%BB%BA%E9%94%99%E8%AF%AF%E3%80%82%E7%94%B1%E4%BA%8E%E8%BF%99%E4%BA%9B%E9%94%99%E8%AF%AF%EF%BC%8C%E6%97%A0%E6%B3%95%E7%94%9F%E6%88%90%20.axf%2F.elf%20%E8%BE%93%E5%87%BA%E6%96%87%E4%BB%B6%EF%BC%8C%E5%AF%BC%E8%87%B4%E5%87%BA%E7%8E%B0%3CI%3E%E2%80%9C%E7%A8%8B%E5%BA%8F%E6%96%87%E4%BB%B6%E4%B8%8D%E5%AD%98%E5%9C%A8%E2%80%9D%3C%2FI%3E%E8%B0%83%E8%AF%95%E7%94%A8%E4%B8%8A%E5%B8%82%EF%BC%8C%E4%B8%8D%E7%94%A8%E5%8F%91%E5%B8%83%E9%94%99%E8%AF%AF%E3%80%82%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3ERedlinkServerException%EF%BC%9A%3C%2FSTRONG%3E%E5%B0%9D%E8%AF%95%E8%B0%83%E8%AF%95%E6%88%96%E8%BF%9E%E6%8E%A5%E6%97%B6%EF%BC%8C%E6%88%91%E6%94%B6%E5%88%B0%20RedlinkServerException%EF%BC%9A%E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