Scenario:
Issue:
Application starts misbehaving when large memory buffer is allocated with new scatter loader file.
Some of the functionalities partially fail, like File system, network etc.
I have attached map file generated with and without large buffer allocated in the program.
Like to have suggestion on, what I am missing here and root cause for the issue.
Thanks.
Solved! Go to Solution.
My apologies for the delayed response and thank you for providing additional information.
By looking at your scatter file it seems that you are using LWIp stack, but what I do not know how is the large buffer related to the stack or how interacts with your application, so I could not reproduce your issue. Could you replicate this on a much simpler environment?
Let me know if you found something else that we could consider during this time.
Best regards,
Diego
I understood, that you where first using the ITCM and DTMC ( 64 KB each) for your application. But then you also required the OCRAM ( 128 KB), so you started to use this memory.
I have the i.MX RT1020 to work and SDK examples. Are you able to point me how I could replicate your issue with using an SDK example as an starting point?
Are you using KEIL or IAR? What is your current SDK version?
Cache could sometimes have an implication on system, application performance.
Best regards,
Diego
Hello Deigo,
Do you have any update on recreation of issue?
thanks
haric
Hello Deigo,
But , after reading a bit of data sheet and memory related application note.
I disabled only Data Cache in code.
/* Enable I cache and D cache */
//SCB_EnableDCache();
SCB_EnableICache();
Now the system functions properly. I do not see and un usual behaviour of program.
Still, I like to knwo the root cause and why controller memory access behaves in such manner.
thanks and regards
haric
My apologies for the delayed response and thank you for providing additional information.
By looking at your scatter file it seems that you are using LWIp stack, but what I do not know how is the large buffer related to the stack or how interacts with your application, so I could not reproduce your issue. Could you replicate this on a much simpler environment?
Let me know if you found something else that we could consider during this time.
Best regards,
Diego
I bellevue we have found solution.
Let us close this case. Currently system is stable andmemory allocation is fine with fix i had made.
Further memory allocations are carefully monitored.
Hello Diego,
I use Keil and SDK version in reference with Keil is MIMXRT1021_DFP 12.1.0.
SDK is older version
I had attached .map file, there you could find typical use case where memory usage can be seen.
based on that you could create a test scenario.
thanks and regards
haric