Removed spin locks to avoid potential tight loops, added some prints to determine Uart settings