XBAR1_IRQ_2_3_IRQHandler called wenn starting FreeRTOS

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

XBAR1_IRQ_2_3_IRQHandler called wenn starting FreeRTOS

Jump to solution
1,640 Views
Christof
Contributor II

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.

Christof_0-1645086325718.png


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.

Labels (1)
0 Kudos
1 Solution
1,591 Views
Christof
Contributor II

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


View solution in original post

0 Kudos
5 Replies
1,626 Views
Christof
Contributor II

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

0 Kudos
1,629 Views
jeremyzhou
NXP Employee
NXP Employee

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.
-------------------------------------------------------------------------------

0 Kudos
1,621 Views
Christof
Contributor II

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 

Christof_0-1645174267568.png

The difference is that i am now stuck with an MemoryManageFault

Christof_1-1645174344206.png

If i place the heap in the SRAM_OC2 region the program works fine.
I included the complete Project in the zip File



0 Kudos
1,602 Views
jeremyzhou
NXP Employee
NXP Employee

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.

jeremyzhou_0-1645429768905.png

jeremyzhou_1-1645429794340.png

 


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.
-------------------------------------------------------------------------------

0 Kudos
1,592 Views
Christof
Contributor II

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


0 Kudos