Issue with Matter Commissioning on RT1060 EVKC Board When Using External SDRAM as Heap

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

Issue with Matter Commissioning on RT1060 EVKC Board When Using External SDRAM as Heap

Jump to solution
356 Views
pooisonner
Contributor III

Hello,

I am developing Matter using the RT1060 EVKC board.

I downloaded the thermostat example from NXP's GitHub and am working on it.

The default source code allocates the heap to internal OCRAM, and Matter commissioning works fine with this setup.

However, when I initialize the external 32MB SDRAM and modify the linker to move the heap to 0x80000000 with a size of 1MB, the program runs without issues.

But after this change, Matter commissioning no longer works.

When I revert the heap back to OCRAM, commissioning works again.

Could you please advise on what the issue might be and how to resolve it?

Thank you.

0 Kudos
Reply
1 Solution
342 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @pooisonner ,

Thanks for your interest in NXP MIMXRT series!

Make sure that your SDRAM is properly initialized before use, preferably through a DCD, as it is used by the BootROM and it is necessary to initialize the SDRAM during the system boot phase.

Best regards,
Gavin

View solution in original post

0 Kudos
Reply
1 Reply
343 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @pooisonner ,

Thanks for your interest in NXP MIMXRT series!

Make sure that your SDRAM is properly initialized before use, preferably through a DCD, as it is used by the BootROM and it is necessary to initialize the SDRAM during the system boot phase.

Best regards,
Gavin

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2147919%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIssue%20with%20Matter%20Commissioning%20on%20RT1060%20EVKC%20Board%20When%20Using%20External%20SDRAM%20as%20Heap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147919%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20developing%20Matter%20using%20the%20RT1060%20EVKC%20board.%3C%2FP%3E%3CP%3EI%20downloaded%20the%20thermostat%20example%20from%20NXP's%20GitHub%20and%20am%20working%20on%20it.%3C%2FP%3E%3CP%3EThe%20default%20source%20code%20allocates%20the%20heap%20to%20internal%20OCRAM%2C%20and%20Matter%20commissioning%20works%20fine%20with%20this%20setup.%3C%2FP%3E%3CP%3EHowever%2C%20when%20I%20initialize%20the%20external%2032MB%20SDRAM%20and%20modify%20the%20linker%20to%20move%20the%20heap%20to%200x80000000%20with%20a%20size%20of%201MB%2C%20the%20program%20runs%20without%20issues.%3C%2FP%3E%3CP%3EBut%20after%20this%20change%2C%20Matter%20commissioning%20no%20longer%20works.%3C%2FP%3E%3CP%3EWhen%20I%20revert%20the%20heap%20back%20to%20OCRAM%2C%20commissioning%20works%20again.%3C%2FP%3E%3CP%3ECould%20you%20please%20advise%20on%20what%20the%20issue%20might%20be%20and%20how%20to%20resolve%20it%3F%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2148254%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Matter%20Commissioning%20on%20RT1060%20EVKC%20Board%20When%20Using%20External%20SDRAM%20as%20Heap%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2148254%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%2F250724%22%20target%3D%22_blank%22%3E%40pooisonner%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20interest%20in%20NXP%20MIMXRT%20series!%3C%2FP%3E%0A%3CP%3EMake%20sure%20that%20your%20SDRAM%20is%20properly%20initialized%20before%20use%2C%20preferably%20through%20a%20DCD%2C%20as%20it%20is%20used%20by%20the%20BootROM%20and%20it%20is%20necessary%20to%20initialize%20the%20SDRAM%20during%20the%20system%20boot%20phase.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EGavin%3C%2FP%3E%3C%2FLINGO-BODY%3E