MEMORY ASSIGNING ISSUE

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

MEMORY ASSIGNING ISSUE

699 Views
Varshini_ext
Contributor I

Hi,

I am trying to build to integrate a new folder into the existing project in S32K322 microcontroller. But I am facing hardfault issue in Clock driver. From my observation the hardfault is not ocurring because of insufficient memory, there is sufficient memory available in sram. I would like to know that is there any limitations in acessing the sram memory.

Note:

1)I have created a project with dual core(CM0,CM1) enabled.  

2)I am attaching the memory usage of existing project created and a new folder integrated project. 

3)Just adding 700 extra byte size is causing a hardfault.Existing project memory usageExisting project memory usageMemory usage after integration of new folderMemory usage after integration of new folderimage (1).pngimage (1).png

 

Regards,

Varshni

 
 

 

0 Kudos
Reply
1 Reply

666 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Varshini_ext,

There are many possible root causes.

Try find more information about the fault exception.

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-...

https://community.nxp.com/t5/S32K-Knowledge-Base/How-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-...

https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

 

What kind of fault exception is it?

What is the PC address of the fault instruction?

 

Thank you,

BR, Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2248085%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMEMORY%20ASSIGNING%20ISSUE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248085%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20build%20to%20integrate%20a%20new%20folder%20into%20the%20existing%20project%20in%20S32K322%20microcontroller.%20But%20I%20am%20facing%20hardfault%20issue%20in%20Clock%20driver.%20From%20my%20observation%20the%20hardfault%20is%20not%20ocurring%20because%20of%20insufficient%20memory%2C%20there%20is%20sufficient%20memory%20available%20in%20sram.%20I%20would%20like%20to%20know%20that%20is%20there%20any%20limitations%20in%20acessing%20the%20sram%20memory.%3C%2FP%3E%3CP%3ENote%3A%3C%2FP%3E%3CP%3E1)I%20have%20created%20a%20project%20with%20dual%20core(CM0%2CCM1)%20enabled.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E2)I%20am%20attaching%20the%20memory%20usage%20of%20existing%20project%20created%20and%20a%20new%20folder%20integrated%20project.%26nbsp%3B%3C%2FP%3E%3CP%3E3)Just%20adding%20700%20extra%20byte%20size%20is%20causing%20a%20hardfault.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Existing%20project%20memory%20usage%22%20style%3D%22width%3A%20765px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Existing%20project%20memory%20usage%22%20style%3D%22width%3A%20765px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367087i3EB236E9601BB259%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22Existing%20project%20memory%20usage%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EExisting%20project%20memory%20usage%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EExisting%20project%20memory%20usage%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Memory%20usage%20after%20integration%20of%20new%20folder%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Memory%20usage%20after%20integration%20of%20new%20folder%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367090i362EF1549D4E2A06%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image%20(1).png%22%20alt%3D%22Memory%20usage%20after%20integration%20of%20new%20folder%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EMemory%20usage%20after%20integration%20of%20new%20folder%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EMemory%20usage%20after%20integration%20of%20new%20folder%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image%20(1).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image%20(1).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367089i03A25ED017B47D5D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image%20(1).png%22%20alt%3D%22image%20(1).png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Eimage%20(1).png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EVarshni%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2248359%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MEMORY%20ASSIGNING%20ISSUE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248359%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257286%22%20target%3D%22_blank%22%3E%40Varshini_ext%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThere%20are%20many%20possible%20root%20causes.%3C%2FP%3E%0A%3CP%3ETry%20find%20more%20information%20about%20the%20fault%20exception.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-RTD300%2Fta-p%2F1806259%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-RTD300%2Fta-p%2F1806259%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FHow-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-MCU-S32K3XX%2Fta-p%2F1595570%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FHow-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-MCU-S32K3XX%2Fta-p%2F1595570%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FFault-handling-on-S32K14x%2Fta-p%2F1114447%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FFault-handling-on-S32K14x%2Fta-p%2F1114447%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EWhat%20kind%20of%20fault%20exception%20is%20it%3F%3C%2FP%3E%0A%3CP%3EWhat%20is%20the%20PC%20address%20of%20the%20fault%20instruction%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%2C%3C%2FP%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%3C%2FLINGO-BODY%3E