In reply to louis-alexandre.latchimy:
can you load waveform to check clock is getting generated or not. Adding some prints also will help in debugging. Also I don’t see any code to program CLK_HIGH and CLK_LOW duration, this needs to be set before start_clock is called.