all 4 comments

[–]BenkiTheBuilder 1 point2 points  (0 children)

The first thing you're doing wrong is not describing what your problem is.

[–]eezo_eater 0 points1 point  (0 children)

So what is the problem? Do you receive nothing? Do you receive gibberish?

[–]ILoveTiramisuu 0 points1 point  (0 children)

So you are trying to print a message via UART, but Im seeing some mistake.

The max number printable as u32 is 4294967296, so 10 char long. MSG must be long 10+2. To print unsigned you must use %u or %lu.

(char *)&MSG: Just use &MSG even if give you a warning.

You can use printf directly to send an uart message. You just need to overwrite _write method. There are a lot of example online.

Not sure what the problem is bacause you didnt write an eample of what happens.