I am using the MIMXRT1060-EVK with the matching XpressoSDK.
I created a project based on the freertos_hello example and added code from the semc to initialize the sdram interface.
I also enabled static allocation support for FreeRTOS to allocate the TCB and stack on the external SDRAM.
When vTaskStartScheduler(); gets called the created Task gets never executed but the processor is stuck in the DefaultISR handler. The callstack indicated that the XBAR1_IRQ_2_3 was called.
That doesn't make sense to me because the example code should not have initialized the XBAR module in any way.
If I place the heap in the m_data2 region (internal RAM) everything works fine.
I attached the relevant source files and the linker file.
Maybe i missed something about the initalization or propper usage of the external SDRAM.
Solved! Go to Solution.
I also managed to get it running
But i had to enable the DCD usage and set following Compiler defines
SKIP_SYSCLK_INIT
XIP_BOOT_HEADER_DCD_ENABLE=1
I created my Project with VisualGDB in VisualStudio. If you can work with that i can provide it quite fast.
Otherwise i would have to recreate it in MCUXpresseIDE with may take some time as i'm not familiar with it.
Kind Regards
Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I was wondering if you can upload the complete demo project, as I'd like to replicate the phenomenon and it can help me to figure it out.
Looking forward to your further reply.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
I think i managed to reproduce the Problem as an MCUXpressoIDE Project.
My program is still stuck after calling vTaskStartScheduler();
The call stack seems to be quite similar
The difference is that i am now stuck with an MemoryManageFault
If i place the heap in the SRAM_OC2 region the program works fine.
I included the complete Project in the zip File
Hi,
Thanks for your reply.
Firstly, the demo runs well on my board actually, next, I still like to suggest you use the DCD mechanism to initialize the SDRAM.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
I also managed to get it running
But i had to enable the DCD usage and set following Compiler defines
SKIP_SYSCLK_INIT
XIP_BOOT_HEADER_DCD_ENABLE=1