Test basics over. Works fine now. No ram issue or segfault.
Next step : test with slave, pwm etc...