UAVCAN node with ChibiOS

Hi,

I’m building uavcan external sensor node for ArduCopter using ChibiOS on stm32h7 controller.

I’m trying to create multiple threads to operate each sensor and a separate thread for handling the uavcan functionalities.

When I run uavcan thread alone, it is able to initialize and to communicate with the ArduPilot successfully.
But, if I run any other thread along with uavcan, then uavcan is not able to initialize and it is running to different kinds of error each time(memory fault, bus fault, usage faults etc).
I’ve tried increasing the stack size, memorypoolsize, priorities but nothing has resolved my issue.
Also, I’m not able to find any examples of uavcan with rtos integrarion.

So, is it possible to run an external uavcan node with rtos(ChibiOS)? I would like to see how it can be run in a multi thread environment.

Thankyou

Look at the AP_Periph branch of ArduPilot.