i.MX93 Cortex-M33 command line build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX93 Cortex-M33 command line build

473 Views
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 Kudos
Reply
1 Reply

344 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2297185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX93%20Cortex-M33%20command%20line%20build%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2297185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20got%20a%20flat%20CMakeLists.txt%20build%20system%20for%20the%20SDK%2025.12.00%20hello_world%20sample%20for%20the%20i.MX93evk%20board.%20It%20builds%20ok%20but%20there%20is%20a%20problem%20with%20file%20paths%20in%20the%20elf%20file%2C%20causing%20the%20arm%20debugger%20to%20struggle%20setting%20breakpoints.%20I'm%20trying%20to%20use%20thes%20ecompiler%20flags%20to%20converst%20my%20WSL%20file%20paths%20to%20windows%20file%20paths%2C%20so%20I%20can%20debug%20in%20VS%20Code%20under%20windows%3A%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3E-ffile-prefix-map%3D%2Fmnt%2Fc%2F%3DC%3A%2F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3E-fdebug-prefix-map%3D%2Fmnt%2Fc%2F%3DC%3A%2F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EBut%20the%20file%20paths%20inside%20the%20elf%20end%20up%20looking%20like%20this%3A%3CBR%20%2F%3Emain%20C%3A%2Fgit%2Fesg-ng-core-m33%2Fmcimx93evk%2Fhello_world%2Fbuild%2FC%3A%2Fgit%2Fesg-ng-core-m33%2Fmcimx93evk%2Fhello_world%2Fsource%2Fhello_world.c%3A32%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EI%20have%20a%20workaound%2C%20but%20wondered%20if%20anyone%20has%20encountered%20and%20solved%20this%3F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EThanks%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%3EI%20discussed%20with%20the%20AE%20team%2C%20please%20refer%20to%20the%20following%20update.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWe%20never%20try%20the%20build%20in%20WSL.%20Since%20you%20can%20change%20the%20path%20map%20and%20debug%2C%20looks%20like%20nothing%20wrong.%20If%20the%20incorrect%20path%20cause%20any%20debug%20issue%2C%20we%20suggest%20to%20use%20windows%20develop%20environment%20directly.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E