Login  Register

Re: Having trouble with code upload... XCode

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

Yes it's possible that module shipped before the hw rev code went into effect. We (Karlis & I) arbitrarily picked some resistor values to go with the certain hw versions, so I might've been wrong with the value it "should" be. The best way would be to make the REV resistor the proper value.

The only issue with pulling PWREN high all the time is because (I think; it's been a while) the old modules (3.2?) have PWREN pin on arduino going to AIC0 on RN52, and if that pin is high the RN52 can't boot, so we started using the hw rev resistors to identify which modules need which pins pulled high/low.


On Wed, Dec 28, 2016 at 21:29 sbt [via BlueSaab Forum] <[hidden email]> wrote:






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.












2001 9-3 Aero, AS3+tape; SGS 5, Android M 6.0.1; BlueSaab v5.0-p1+Amp v1.1, SAAB-CDC repo latest














If you reply to this email, your message will be added to the discussion below:






To start a new topic under Software, email [hidden email]


To unsubscribe from Software, click here.


NAML

NC, USA