s32ds + greenhill compiler C code

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

s32ds + greenhill compiler C code

1,071 Views
kdscrr
Contributor II

Dear:
HELLO, When I Integrate ghs into s32ds ,and use the S32ds IDE to build the project, as you see, I have import the asm file, but the log show that the S32DS can not call the ghs to compiler the asm code, I do not KNOW why. I need some help.
Thank you.

kdscrr_0-1759126181967.png


in the build log, I can not see the asm file to be compiled.

kdscrr_1-1759126262577.pngkdscrr_2-1759126300493.png

 

 

0 Kudos
Reply
3 Replies

907 Views
kdscrr
Contributor II

@petervlna 

Thank you for responsing,  But I mean that the .asm file can not compiler, although I have already add it into source file,

kdscrr_0-1759990980294.png

but When I change the suffix from .asm to .s, then S32DS can compiler it.
Thank you

0 Kudos
Reply

1,006 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

As the error express you have unresolved symbols:.

Here are some general tips:

Causes of Unresolved Symbols in S32DS

  1. Missing Source Files or Libraries

    • You may have included a header file but forgot to link the corresponding source file or library.
    • Check your project settings to ensure all necessary .c or .cpp files are included.
  2. Incorrect Linker Settings

    • Verify that your linker script includes all required memory sections and symbols.
    • Ensure that the paths to libraries and object files are correctly set in the project properties.
  3. Code Generation Issues

    • If you're using the S32 Configuration Tool, make sure to click “Update Code” after making changes to peripherals, pins, clocks, etc.
    • Sometimes peripherals are not correctly added (e.g., SIUL2 for S32K344), which causes headers to be invalid after code generation. [Re: S32K34...inclusions]
  4. Wrong Build Configuration

    • Ensure you're building in the correct mode (e.g., Debug vs. Release).
    • Some symbols might only be available in specific configurations.
  5. Circular or Missing Includes

    • Check for missing or circular #include statements.
    • Use “Index > Rebuild” in Eclipse to refresh symbol resolution.

Best regards,

Peter

0 Kudos
Reply

1,065 Views
kdscrr
Contributor II

I only add the asm file, as the picture show, it can not compile.

kdscrr_0-1759126834719.png

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2177194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Es32ds%20%2B%20greenhill%20compiler%20C%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2177194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%3A%3CBR%20%2F%3EHELLO%2C%20When%20I%26nbsp%3B%3CSPAN%3EIntegrate%20ghs%20into%20s32ds%20%2Cand%20use%20the%20S32ds%20IDE%20to%20build%20the%20project%2C%20as%20you%20see%2C%20I%20have%20import%20the%20asm%20file%2C%20but%20the%20log%20show%20that%20the%20S32DS%20can%20not%20call%20the%20ghs%20to%20compiler%20the%20asm%20code%2C%20I%20do%20not%20KNOW%20why.%20I%20need%20some%20help.%3CBR%20%2F%3EThank%20you.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kdscrr_0-1759126181967.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22kdscrr_0-1759126181967.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358832i03758D1E6D3F733F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kdscrr_0-1759126181967.png%22%20alt%3D%22kdscrr_0-1759126181967.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ein%20the%20build%20log%2C%20I%20can%20not%20see%20the%20asm%20file%20to%20be%20compiled.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kdscrr_1-1759126262577.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22kdscrr_1-1759126262577.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358833i57B6D8EF456C9DE4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kdscrr_1-1759126262577.png%22%20alt%3D%22kdscrr_1-1759126262577.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kdscrr_2-1759126300493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22kdscrr_2-1759126300493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358835iF330AC08D7356C5F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kdscrr_2-1759126300493.png%22%20alt%3D%22kdscrr_2-1759126300493.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2182757%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20s32ds%20%2B%20greenhill%20compiler%20C%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2182757%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F13836%22%20target%3D%22_blank%22%3E%40petervlna%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20responsing%2C%26nbsp%3B%20But%20I%20mean%20that%20the%20.asm%20file%20can%20not%20compiler%2C%20although%20I%20have%20already%20add%20it%20into%20source%20file%2C%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kdscrr_0-1759990980294.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22kdscrr_0-1759990980294.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360013iB3CCD8090578931E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kdscrr_0-1759990980294.png%22%20alt%3D%22kdscrr_0-1759990980294.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ebut%20When%20I%20change%20the%20suffix%20from%20.asm%20to%20.s%2C%20then%20S32DS%20can%20compiler%20it.%3CBR%20%2F%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2178755%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32ds%20%2B%20greenhill%20compiler%20C%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2178755%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EAs%20the%20error%20express%20you%20have%20unresolved%20symbols%3A.%3C%2FP%3E%0A%3CP%3EHere%20are%20some%20general%20tips%3A%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1975763096%22%20id%3D%22toc-hId-2000453227%22%3ECauses%20of%20Unresolved%20Symbols%20in%20S32DS%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3EMissing%20Source%20Files%20or%20Libraries%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EYou%20may%20have%20included%20a%20header%20file%20but%20forgot%20to%20link%20the%20corresponding%20source%20file%20or%20library.%3C%2FLI%3E%0A%3CLI%3ECheck%20your%20project%20settings%20to%20ensure%20all%20necessary%20%3CCODE%3E.c%3C%2FCODE%3E%20or%20%3CCODE%3E.cpp%3C%2FCODE%3E%20files%20are%20included.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3EIncorrect%20Linker%20Settings%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EVerify%20that%20your%20linker%20script%20includes%20all%20required%20memory%20sections%20and%20symbols.%3C%2FLI%3E%0A%3CLI%3EEnsure%20that%20the%20paths%20to%20libraries%20and%20object%20files%20are%20correctly%20set%20in%20the%20project%20properties.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3ECode%20Generation%20Issues%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIf%20you're%20using%20the%20S32%20Configuration%20Tool%2C%20make%20sure%20to%20click%20%3CSTRONG%3E%E2%80%9CUpdate%20Code%E2%80%9D%3C%2FSTRONG%3E%20after%20making%20changes%20to%20peripherals%2C%20pins%2C%20clocks%2C%20etc.%3C%2FLI%3E%0A%3CLI%3ESometimes%20peripherals%20are%20not%20correctly%20added%20(e.g.%2C%20SIUL2%20for%20S32K344)%2C%20which%20causes%20headers%20to%20be%20invalid%20after%20code%20generation.%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio%2FS32K344-Example-Not-working-Unresolved-inclusions%2Fm-p%2F1917813%22%20target%3D%22_blank%22%3E%5BRe%3A%20S32K34...inclusions%5D%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3EWrong%20Build%20Configuration%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EEnsure%20you're%20building%20in%20the%20correct%20mode%20(e.g.%2C%20Debug%20vs.%20Release).%3C%2FLI%3E%0A%3CLI%3ESome%20symbols%20might%20only%20be%20available%20in%20specific%20configurations.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSTRONG%3ECircular%20or%20Missing%20Includes%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECheck%20for%20missing%20or%20circular%20%3CCODE%3E%23include%3C%2FCODE%3E%20statements.%3C%2FLI%3E%0A%3CLI%3EUse%20%3CSTRONG%3E%E2%80%9CIndex%20%26gt%3B%20Rebuild%E2%80%9D%3C%2FSTRONG%3E%20in%20Eclipse%20to%20refresh%20symbol%20resolution.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2177204%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32ds%20%2B%20greenhill%20compiler%20C%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2177204%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20only%20add%20the%20asm%20file%2C%20as%20the%20picture%20show%2C%20it%20can%20not%20compile.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kdscrr_0-1759126834719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22kdscrr_0-1759126834719.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F358838i5CA5F2706990BA4A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22kdscrr_0-1759126834719.png%22%20alt%3D%22kdscrr_0-1759126834719.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E