S32K342 MemAcc_MainFunction() does not complete

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

S32K342 MemAcc_MainFunction() does not complete

Jump to solution
1,105 Views
pb632146
Contributor V

Remaking post as I have a better understanding of what the issue appears to be?

When I run the program, it appears to initialize the first MemAcc successfully, but the 2nd and 3rd is completely blank data and never initializes even once the first area is complete. In the example after the first is finished with 96 of 96 then the 2nd one fills in its values. The first never changes off JOB_STATE_STOP and AreaIndex 1 never moves off of JOB_STATE_STARTING.

pb632146_2-1737589698196.png

pb632146_3-1737589736844.png

pb632146_4-1737589746089.png

I have each memsector batch configured identically and assigned to their own Memaccaddress configurations that are also identical.  

pb632146_5-1737589929792.pngpb632146_6-1737589936060.pngpb632146_7-1737589941912.pngpb632146_8-1737589959929.pngpb632146_9-1737589964621.png

pb632146_10-1737589969493.png

 

A comparison with FEE_Example_S32K344 where once Length remain reaches 0, the area index 0 memacc data is removed and AreaIndex 1's information is used and it goes from JOB_STATE_STARTING to JOB_STATE_PROCESSING

pb632146_11-1737590779898.png

pb632146_12-1737590796010.png

 

What might be causing this error of not completeing the job on the first Memory area?

 

 

0 Kudos
Reply
1 Solution
1,060 Views
pb632146
Contributor V
The issue was that the default for Mem Acc Job End Notification Name is a default to NULL_PTR rather than "Fee_JobEndNotification," it would be really nice if the FEE example pointed out such things.

Also it initializes just fine with NULL_PTR for some reason? Which I find very confusing in both this and the example but I suppose I will not question it as I cannot find the config pointer for FEE_Init.

View solution in original post

0 Kudos
Reply
2 Replies
1,074 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @pb632146,

I haven't tested the project, but I noticed that you initialize MemAcc_Init() with a NULL_PTR.

danielmartynek_0-1737705309287.png

danielmartynek_1-1737705441982.png

 

Regards,

Daniel

0 Kudos
Reply
1,061 Views
pb632146
Contributor V
The issue was that the default for Mem Acc Job End Notification Name is a default to NULL_PTR rather than "Fee_JobEndNotification," it would be really nice if the FEE example pointed out such things.

Also it initializes just fine with NULL_PTR for some reason? Which I find very confusing in both this and the example but I suppose I will not question it as I cannot find the config pointer for FEE_Init.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2032676%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K342%20MemAcc_MainFunction()%20does%20not%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2032676%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ERemaking%20post%20as%20I%20have%20a%20better%20understanding%20of%20what%20the%20issue%20appears%20to%20be%3F%3C%2FP%3E%3CP%3EWhen%20I%20run%20the%20program%2C%20it%20appears%20to%20initialize%20the%20first%20MemAcc%20successfully%2C%20but%20the%202nd%20and%203rd%20is%20completely%20blank%20data%20and%20never%20initializes%20even%20once%20the%20first%20area%20is%20complete.%20In%20the%20example%20after%20the%20first%20is%20finished%20with%2096%20of%2096%20then%20the%202nd%20one%20fills%20in%20its%20values.%20The%20first%20never%20changes%20off%20JOB_STATE_STOP%20and%20AreaIndex%201%20never%20moves%20off%20of%20JOB_STATE_STARTING.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pb632146_2-1737589698196.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_2-1737589698196.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320945iB2C7F1682C1F80CF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_2-1737589698196.png%22%20alt%3D%22pb632146_2-1737589698196.png%22%20%2F%3E%3C%2Fspan%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%22pb632146_3-1737589736844.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_3-1737589736844.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320946iA90986F694C9B72D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_3-1737589736844.png%22%20alt%3D%22pb632146_3-1737589736844.png%22%20%2F%3E%3C%2Fspan%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%22pb632146_4-1737589746089.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_4-1737589746089.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320947i6D56F3B301346160%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_4-1737589746089.png%22%20alt%3D%22pb632146_4-1737589746089.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20have%20each%20memsector%20batch%20configured%20identically%20and%20assigned%20to%20their%20own%20Memaccaddress%20configurations%20that%20are%20also%20identical.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pb632146_5-1737589929792.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_5-1737589929792.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320948i0615839B50F0E59C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_5-1737589929792.png%22%20alt%3D%22pb632146_5-1737589929792.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%22pb632146_6-1737589936060.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_6-1737589936060.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320949iE993BEF7213EAD18%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_6-1737589936060.png%22%20alt%3D%22pb632146_6-1737589936060.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%22pb632146_7-1737589941912.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_7-1737589941912.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320950i663D58E2FC4AB7BD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_7-1737589941912.png%22%20alt%3D%22pb632146_7-1737589941912.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%22pb632146_8-1737589959929.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_8-1737589959929.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320951i1880A4571F5A208D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_8-1737589959929.png%22%20alt%3D%22pb632146_8-1737589959929.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%22pb632146_9-1737589964621.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_9-1737589964621.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320952i0D4B1474AFD1789D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_9-1737589964621.png%22%20alt%3D%22pb632146_9-1737589964621.png%22%20%2F%3E%3C%2Fspan%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%22pb632146_10-1737589969493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_10-1737589969493.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320953iE6B910AA42743A34%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_10-1737589969493.png%22%20alt%3D%22pb632146_10-1737589969493.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EA%20comparison%20with%20FEE_Example_S32K344%20where%20once%20Length%20remain%20reaches%200%2C%20the%20area%20index%200%20memacc%20data%20is%20removed%20and%20AreaIndex%201's%20information%20is%20used%20and%20it%20goes%20from%20JOB_STATE_STARTING%20to%20JOB_STATE_PROCESSING%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pb632146_11-1737590779898.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_11-1737590779898.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320954i17468B5E7C6F29D6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_11-1737590779898.png%22%20alt%3D%22pb632146_11-1737590779898.png%22%20%2F%3E%3C%2Fspan%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%22pb632146_12-1737590796010.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_12-1737590796010.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320955i42AE607D833AF9AD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_12-1737590796010.png%22%20alt%3D%22pb632146_12-1737590796010.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWhat%20might%20be%20causing%20this%20error%20of%20not%20completeing%20the%20job%20on%20the%20first%20Memory%20area%3F%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2033858%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K342%20MemAcc_MainFunction()%20does%20not%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2033858%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThe%20issue%20was%20that%20the%20default%20for%20Mem%20Acc%20Job%20End%20Notification%20Name%20is%20a%20default%20to%20NULL_PTR%20rather%20than%20%22Fee_JobEndNotification%2C%22%20it%20would%20be%20really%20nice%20if%20the%20FEE%20example%20pointed%20out%20such%20things.%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%20it%20initializes%20just%20fine%20with%20NULL_PTR%20for%20some%20reason%3F%20Which%20I%20find%20very%20confusing%20in%20both%20this%20and%20the%20example%20but%20I%20suppose%20I%20will%20not%20question%20it%20as%20I%20cannot%20find%20the%20config%20pointer%20for%20FEE_Init.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2033730%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K342%20MemAcc_MainFunction()%20does%20not%20complete%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2033730%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F230291%22%20target%3D%22_blank%22%3E%40pb632146%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EI%20haven't%20tested%20the%20project%2C%20but%20I%20noticed%20that%20you%20initialize%20MemAcc_Init()%20with%20a%20NULL_PTR.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1737705309287.png%22%20style%3D%22width%3A%20598px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1737705309287.png%22%20style%3D%22width%3A%20598px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F321222iCAA0D0D4424FB819%2Fimage-dimensions%2F598x492%3Fv%3Dv2%22%20width%3D%22598%22%20height%3D%22492%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1737705309287.png%22%20alt%3D%22danielmartynek_0-1737705309287.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_1-1737705441982.png%22%20style%3D%22width%3A%20656px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_1-1737705441982.png%22%20style%3D%22width%3A%20656px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F321223i2D7F156A3FFE33B3%2Fimage-dimensions%2F656x253%3Fv%3Dv2%22%20width%3D%22656%22%20height%3D%22253%22%20role%3D%22button%22%20title%3D%22danielmartynek_1-1737705441982.png%22%20alt%3D%22danielmartynek_1-1737705441982.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E