i.MX93 Cortex-M33 command line build

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

i.MX93 Cortex-M33 command line build

535 次查看
clarken
Junior Contributor I

I have got a flat CMakeLists.txt build system for the SDK 25.12.00 hello_world sample for the i.MX93evk board. It builds ok but there is a problem with file paths in the elf file, causing the arm debugger to struggle setting breakpoints. I'm trying to use thes ecompiler flags to converst my WSL file paths to windows file paths, so I can debug in VS Code under windows:

    -ffile-prefix-map=/mnt/c/=C:/
    -fdebug-prefix-map=/mnt/c/=C:/
 
But the file paths inside the elf end up looking like this:
main C:/git/esg-ng-core-m33/mcimx93evk/hello_world/build/C:/git/esg-ng-core-m33/mcimx93evk/hello_world/source/hello_world.c:32

I have a workaound, but wondered if anyone has encountered and solved this?
Thanks
Nick
0 项奖励
回复
1 回复

406 次查看
yipingwang
NXP TechSupport
NXP TechSupport

I discussed with the AE team, please refer to the following update.

We never try the build in WSL. Since you can change the path map and debug, looks like nothing wrong. If the incorrect path cause any debug issue, we suggest to use windows develop environment directly. 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2297185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.mx93%20Cortex-M33%20%E5%91%BD%E4%BB%A4%E8%A1%8C%E7%89%88%E6%9C%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2297185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%9C%89%E4%B8%80%E4%B8%AA%20i.mx93EVK%20%E6%9D%BF%E7%9A%84%20SDK%2025.12.00%20hello_world%20%E7%A4%BA%E4%BE%8B%E7%9A%84%E6%89%81%E5%B9%B3%E5%8C%96%20CMakeLists.txt%20%E7%BC%96%E8%AF%91%E7%B3%BB%E7%BB%9F%E3%80%82%E5%AE%83%E5%8F%AF%E4%BB%A5%E6%AD%A3%E5%B8%B8%E6%9E%84%E5%BB%BA%EF%BC%8C%E4%BD%86%E6%98%AF%20elf%20%E6%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%B7%EF%BC%9A%3CBR%20%2F%3Emain%20C%3A%20%2Fgit%2Fesg-ng-core-m33%2Fmcimx93evk%2FHello_world%2F%E7%89%88%E6%9C%AC%2FC%3A%20%2Fgit%2Fesg-ng-core-m33%2Fmcimx93evk%2Fhello_world.c%3A%2032%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%E6%88%91%E6%9C%89%E4%B8%80%E4%B8%AA%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95%EF%BC%8C%E4%BD%86%E4%B8%8D%E7%9F%A5%E9%81%93%E6%98%AF%E5%90%A6%E6%9C%89%E4%BA%BA%E9%81%87%E5%88%B0%E8%BF%87%E5%B9%B6%E8%A7%A3%E5%86%B3%E4%BA%86%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%9F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%E8%B0%A2%E8%B0%A2%EF%BC%81%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3ENick%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2301002%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20i.MX93%20Cortex-M33%20command%20line%20build%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2301002%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E4%B8%8E%20AE%20%E5%9B%A2%E9%98%9F%E8%BF%9B%E8%A1%8C%E4%BA%86%E8%AE%A8%E8%AE%BA%EF%BC%8C%E6%9C%80%E6%96%B0%E6%83%85%E5%86%B5%E5%A6%82%E4%B8%8B%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%E6%88%91%E4%BB%AC%E4%BB%8E%E4%B8%8D%E5%B0%9D%E8%AF%95%E5%9C%A8%20WSL%20%E4%B8%AD%E7%89%88%E6%9C%AC%E3%80%82%E6%97%A2%E7%84%B6%E4%BD%A0%E5%8F%AF%E4%BB%A5%E6%9B%B4%E6%94%B9%E8%B7%AF%E5%BE%84%E5%9B%BE%E5%B9%B6%E8%BF%9B%E8%A1%8C%E8%B0%83%E8%AF%95%EF%BC%8C%E7%9C%8B%E6%9D%A5%E6%B2%A1%E4%BB%80%E4%B9%88%E9%97%AE%E9%A2%98%E3%80%82%E5%A6%82%E6%9E%9C%E9%94%99%E8%AF%AF%E8%B7%AF%E5%BE%84%E5%AF%BC%E8%87%B4%E8%B0%83%E8%AF%95%E9%97%AE%E9%A2%98%EF%BC%8C%E5%BB%BA%E8%AE%AE%E7%9B%B4%E6%8E%A5%E4%BD%BF%E7%94%A8%20Windows%20%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E