# Generating C headers of regulated DSDL

**URL:** <https://forum.opencyphal.org/t/generating-c-headers-of-regulated-dsdl/920>\
**Category:** Nunavut\
**Created:** [August 18, 2020, 12:23pm UTC](https://forum.opencyphal.org/t/generating-c-headers-of-regulated-dsdl/920 "2020-08-18T12:23:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thierry](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/thierry/32/665_2.png) [@Thierry](https://forum.opencyphal.org/u/Thierry)\
**Post date:** [August 18, 2020, 12:23pm UTC](https://forum.opencyphal.org/t/generating-c-headers-of-regulated-dsdl/920/1 "2020-08-18T12:23:01Z")

</div>

Hi,  
So I’m having a strange problem during the compilation of the C headers for some regulated DSDL’s.  
Using Nunavut I will get an error stating “Maximum recursion depth exceeded”.  
I’ve tried increasing the maximum recusion depth, but that just leads to an stack buffer overflow.  
When I specify to output .hpp by Nunavut, they compile just fine…

Public DSDL’s that im trying :  
[PX4 Public BMS DSDL](https://github.com/PX4/public_regulated_data_types/tree/4ef80c77c7ea9a5ac74ec1fa58055e7609b7758e)  
And [DS015 Draft DSDL](https://github.com/PX4/public_regulated_data_types/tree/ds015_message_set)

Any idea?  
Thanks in advance!  
Thierry

---

<div class="post-metadata">

**Author:** ![david.lenfesty](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/david.lenfesty/32/488_2.png) [@david.lenfesty](https://forum.opencyphal.org/u/david.lenfesty)\
**Post date:** [August 22, 2020, 12:07am UTC](https://forum.opencyphal.org/t/generating-c-headers-of-regulated-dsdl/920/2 "2020-08-22T00:07:39Z")

</div>

What seems to be the same issue has been found while reviewing the new C serialization PR ([https://github.com/UAVCAN/nunavut/pull/115#issuecomment-678115391](https://github.com/UAVCAN/nunavut/pull/115#issuecomment-678115391)). I’ve been able to replicate it and have opened a tracking issue [here](https://github.com/UAVCAN/nunavut/issues/130)
