Login  Register

Re: Having trouble with code upload... XCode

Posted by sbt on Dec 29, 2016; 2:12am
URL: http://bluesaab-forum.90.s1.nabble.com/Having-trouble-with-code-upload-XCode-tp879p898.html

saabstutz wrote
For me R13, is a 1003 rotated 180 degrees (as compared to R14 and the writing on the board) R14 is a correctly rotated 1003. They say 100K next to them on the board, but I don't have a multimeter so unfortunately I cannot get a real world reading on that.
Not to worry, you've identified visually. Glad it's working for you. I note that resistors are not polarised, so it doesn't matter which way around you solder them on. R13 on your PCB is marked "REV", so if you do change it, that's the one to replace. R14 is fine.

saabstutz wrote
What command gives me the revision check number? I remember seeing it earlier but can't find it again...
Again, not to worry. You'd need enable the DEBUGMODE to see the rc number on the serial console, but don't need to try this now.

Seth wrote
I'm not sure why it hasn't been a problem before...and if changing the code
works, then fine, BUT you'll have to make sure you add that fix each time
you update the software in the future. Which kind of defeats the purpose of
the hardware rev check :)
Seth,

It looks like the detection code went into v3.7, but Karlis may have shipped with earlier version. I'll admit to still being confused over whether it's correct, since it's configured for 5kΩ resistors in the code, not 10kΩ. It sounds like saabstutz has some dev skills, so he might be able to float Karlis's suggested patch in another git branch, if he's not inclined/equipped to replace R13.

I'm not sure if this would effect any previous hardware revisions, but we could solve this by pulling PWREN high for all revisions. I assume for those where it's already connected to 3V3, there's nothing else on the ATMEGA328P pin? It looks like RN52 PWREN is connected to the ATMEGA328P PB0 pin even on hardware v3.2.

Cheers,
Sam.
9³ 5D MY02 - Stålgrå, AS3; iOS 16.1; BlueSaab v5.0-p1+Amp v1.1, SAAB-CDC v4.1 with mods