I did. I have tried both with pc and Mac as well. I have found three different versions of your code as well. Different baud rates. Switching the serial cables.
Do you know if there’s a way to check if it works without getting it connected?
The simple example should work, if not, double check your connections to make sure that everything is connected with an multimeter, remember to use short wires to avoid any communication problem.