Dear NXP dev team,
I met a issue with CAN transmission sample, my goal is port the can send/recv function to my project, my project is based on FreeRTOS, but after porting the code from flexcan_encrypted sample, find the MCU reset forever.
I have attached the project source code.
I after debuging the issue, I find the below code maybe the root cause to produce the issue,
After remove the FLEXCAN_DRV_Init code, the MCU can run normally.
But the flexcan_encrypted sample run successfully on my board.
Please help me to resolve my issue.
Thanks
Jay
How to add total stack? Could you show me the sample code. Thanks a lot!
Thanks!
Tim
Hi Fu Zeng,
Thanks for your reply.
The issue is fixed.
In the FLEXCAN_DRV_Init function, I find if you use the RTOS, it will create 32 sema:
But the default RTOS environment only config 8192 bytes heap size, after increase the size can fix this issue
Thanks
Jay
Hi Jay,
I also met this problem. How to increase the heap size? Thanks!
Tim