I'm trying to port arduino ModbusSlave lib(https://github.com/lucasso/Modbu...), for generic use with samd.
I'm no expert in compiling and manual memory aloccation, so please bear with me.
Project is attached.
i'm using atmel ice for programming and debugging.
The main code is simple, and it isn't even using the functions and classes that cause the problem, they just are in the project folder and linked in directories compiler. I'm compiling C++ using this method: https://microchipsupport.force.c...
It compile without a problem, but when i run the code it get stuck at reset_handler(), like there was a interrupt without a handler. After tracking the problem, it appears to be something related to linked lists.
This are the functions that cause the problem, if i comment them all, it works as it should.(obviously wouldn't be able to use modbus slave, but i'm aren't using it at the moment, the problem is caused just for being in the project directories)
The problem seems to be similar to the one described here: https://www.avrfreaks.net/forum/...
but i couldn't use this solution, as atmel had already resolve it, and wasn't the exact same problem.
The code jumps from _libc_init_array() to dummy_handler(void);
here are logs of debugging:
any help would be appreciated