Posted by
Karlis on
Dec 28, 2016; 5:36pm
URL: http://bluesaab-forum.90.s1.nabble.com/Having-trouble-with-code-upload-XCode-tp879p892.html
Thanks for the information!
Ok, so RN52 settings are correct. These are the good news. :)
The bad news - for some reason, software can't detect your hardware revision. It says:
"BlueSaab"
Free SRAM: 707 bytes
Software version: v4.0
Hardware version:
Legacy
RN52 Error 2 at location: 6
Go back to "Previous" Track
Invalid command.
Invalid command.
RN52 Error 2 at location: 6
Go back to "Previous" Track
Where it should say:
"BlueSaab"
Free SRAM: 707 bytes
Software version: v4.0
Hardware version:
Hardware version: v3.3A/v4.1/v4.2
RN52 Error 2 at location: 6
Go back to "Previous" Track
Invalid command.
Invalid command.
RN52 Error 2 at location: 6
Go back to "Previous" Track
And that's where the problem is. Software is instructed to detect hardware revision of the board and if it falls into certain version, pull the PWREN pin on RN52 high thus enabling power to RN52. That's what brings the lights on. RN52 programming code doesn't care about this and pulls that pin high regardless of hardware revision of the board.
So here are two things that can be done and checked:
1. Please check the values on R13 and R11 on top of the board. Those are the HW revision check network resistors.
2. A quick and dirty fix would be to add this line between lines 183 and 184 in RN52impl.cpp file and re-upload the code:
digitalWrite(BT_PWREN_PIN,HIGH);This should fix it for now. We can work on determining the root cause once we have sorted this out.
Let me know how it goes...
2001 9-5 SE V6; 2006 9-5 Wagon; iOS; BlueSaab version = "latest and greatest" :)