I am trying to debug my sketch flashed into Bluz DK. I have gone thru’ the Serial Debugging tutorial.
I am using a photon as the USB serial adapter. Only TX-RX pins are connected accordingly between Bluz and Photon since I am powering the Bluz from a separate power source.
Now after I flash my new code having Serial1.begin(); Serial1.print() etc., the Bluz doesn’t work properly - it keeps on blinking slow green after it is restarted. On my Serial term on Mac (where my photon is connected via USB and powered), I can see the print messages coming from photon’s sketch (the one from the tutorial), but no print is displayed from the Bluz. (Please note that my bluz gateway was switched off after flashing my code. Even if it was on, I was seeing the same behaviour).
Every time this happens, I can’t flash back my old code (that doesn’t have Serial1 code) since it doesn’t connect to my bluz gateway. I have to reflash the bluz firmware using STLink.
Any idea what could be going wrong here? Also, if I keep my gateway up while debugging via another photon, would it create any issue, i.e. does gateway also use TX/RX of the bluz DK?
Any help would be very much appreciated.