SAMV71Q21 Inquiry about FreeRTOS and CAN

RTOS:FreeRTOSv1000:MemMang 4
AtmelStudio : 7.0.1931
AtmelKits : 7.0.122
AtmelStart : 1.0.161.0
Target Board : SAMV71 Xplained Ultra

Hello.
I have a question about CAN and Heap configuration in FreeRTOS on SAMV71Q21.
I created a project by setting it to FreeRTOS Heap4 in Atmel Start. CAN communication does not work when the configTOTAL_HEAP_SIZE value in the Config / FreeRTOSConfig.h file is set to more than 64K.

During some tests, I found ucHeap [configTOTAL_HEAP_SIZE] in ‘thirdparty \ RTOS \ freertos \ FreeRTOSV10.0.0 \ Source \ portable \ MemMang \ heap_4.c’.
After clearing ‘static’, CAN communication worked.

However, I would like to know a solution that does not require modifying C files because modifying the files generated by Atmel Start is reluctant and I don’t know what side effects will occur.

At first whether the heap is static or not would seem unrelated to the CAN comms, so the first thing to do is figure out why it does. I suspect it will result in the heap being in a different memory location. Does the CAN driver allocate memory?

The CAN driver uses an internal FIFO and does not allocate a heap.