Login  Register

Re: Having trouble with code upload... XCode

Posted by sbt on Dec 28, 2016; 8:54pm
URL: http://bluesaab-forum.90.s1.nabble.com/Having-trouble-with-code-upload-XCode-tp879p893.html

Progress!

Karlis wrote
That's the output with CDC code. What's Error 2 at location6?
Error 2 means "Not Connected", as in there is not an audio channel established between your device and the BlueSaab (because, in this case, the ATMEGA328P can't talk to the RN52 - it's not enabled, as per Karlis's comments).
As you've tried to send the previous track command, this error is reporting location 6, which is the function that passes on your "Previous Track" command to the RN52. This should be fixed by Karlis's suggestion for temporarily bypassing hardware version detection. I was not expecting that to be an issue.

Karlis wrote
1. Please check the values on R13 and R11 on top of the board. Those are the HW revision check network resistors.
Er, isn't it R13 and R14?

You should be able to see the values from the markings, or if you have a multimeter, measure them by probing each end of the component.

R14 should have "1003" on top and measure 100KΩ.

According to the SAAB-CDC code, it's expected that R13 should have "5001" on top and measure 5KΩ.
But, according to v4.1 schematic, it's expected that R13 should have "1002" on top and measure 10KΩ.

Please advise what you have.

Also, if you enable DEBUGMODE as described above, the software will report a "Revision check value" in the messages. Would be curious to see this number.

Cheers,
Sam.

Edit: R13 and 14 not on the bottom; clarify schematic vs. code.
9³ 5D MY02 - Stålgrå, AS3; iOS 16.1; BlueSaab v5.0-p1+Amp v1.1, SAAB-CDC v4.1 with mods