> Any ideas what I can do to investigate?

Add a delay after each printf ...

The serial console buffer gets filled faster than it empties and it leads to a panic() condition because there is no more buffer space.


Cheers,

Sylvain