7e repeatedly reboots after power up.

More
17 Feb 2014 06:40 #20427 by Pagres
I performed a number of mods to my 7e. I did the diode mode to increase range, and installed the nrf24l01 and a7105 modules. Got it all soldered together and tucked away in tx. It powered up fine so I proceeded to alter the code as directed to enable the new hardware. Once again process seemed to go smoothly. Feeling confident I loaded couple of model files to test tx. After choosing model (v202) the tx rebooted. I switched the power off and back on again and the tx continually reboots unless the ext or ent buttons are pushed then it will go into the usb or other programing mode.

I was hoping someone might have seen this before. Since I did so many mods at once troubleshooting will be more difficult. Is it possible to switch models from pc to check if it is causing problem? Any insight will be appreciated.

Please Log in or Create an account to join the conversation.

More
17 Feb 2014 06:49 #20428 by SeByDocKy
Replied by SeByDocKy on topic 7e repeatedly reboots after power up.

Pagres wrote: I performed a number of mods to my 7e. I did the diode mode to increase range, and installed the nrf24l01 and a7105 modules. Got it all soldered together and tucked away in tx. It powered up fine so I proceeded to alter the code as directed to enable the new hardware. Once again process seemed to go smoothly. Feeling confident I loaded couple of model files to test tx. After choosing model (v202) the tx rebooted. I switched the power off and back on again and the tx continually reboots unless the ext or ent buttons are pushed then it will go into the usb or other programing mode.

I was hoping someone might have seen this before. Since I did so many mods at once troubleshooting will be more difficult. Is it possible to switch models from pc to check if it is causing problem? Any insight will be appreciated.



Check again your soldering job. Maybe 2 wires are shortcut somewhere ...

Please Log in or Create an account to join the conversation.

More
17 Feb 2014 07:20 #20432 by Pagres
Replied by Pagres on topic 7e repeatedly reboots after power up.
Yeah that's what I'd expect also. I was just hoping that the rebooting was symptomatic of particular wires being crossed. Or a common mistake enabling modules in the code.

Please Log in or Create an account to join the conversation.

More
17 Feb 2014 17:19 - 17 Feb 2014 17:26 #20454 by hexfet
Replied by hexfet on topic 7e repeatedly reboots after power up.
Sounds similar to the issue I had when installing a non-PA A7105 module that was pulled from an X1 stock tx. Do not connect the MISO pin from the module. It's unused for A7105 modules, but defaults to an output from the A7105 and will prevent MISO from working for other modules.

Removing that connection fixed the problem.
Last edit: 17 Feb 2014 17:26 by hexfet.

Please Log in or Create an account to join the conversation.

More
17 Feb 2014 19:19 #20463 by PhracturedBlue
Replied by PhracturedBlue on topic 7e repeatedly reboots after power up.
if it only started rebooting after switching to the v202, it likely means the nrf24l02 isn't being detected. It could be because one of the other modules is interfering, but either way it is likely a soldering issue.

I've been meaning to ask hexfet/victzh to look into this. the nrf protocols will all generate an infinite loop if the nrf doesn't respond properly, and that probably isn't the ideal situation.

specifically lines like these:
while (!(status = (NRF24L01_ReadReg(NRF24L01_07_STATUS) & (BV(NRF24L01_07_TX_DS) | BV(NRF24L01_07_MAX_RT))))) ;
are not at all safe

Please Log in or Create an account to join the conversation.

More
17 Feb 2014 21:55 #20474 by hexfet
Replied by hexfet on topic 7e repeatedly reboots after power up.
Agree this is not safe. These protocols set up the nRF in auto-acknowledge mode, and either the data sent or retry timeout bit needs to be set before sending the next packet. The symax protocol can sit in this loop up to 12mS during bind. Probably better to return from the callback without waiting and come back to the same point in the flow until one of the bits is set. Not sure how difficult that will be in the binding process. Not difficult once bound. Will take a look.

For the soldering/mis-wiring type issues I've been noodling a proposal for some type of hardware check. My first thought was to return an error indication from protocol init/bind if nonsensical values are read from the chip. But that would need to be put in every protocol.

Maybe better would be a HWCheck function in the common/protocol files, and a new start-up function that checks each installed module at power-on, shortly before ProtocolInit. The check function could be as simple as reading a register that should not be 00 or FF (which would have caught the mis-wiring I've done). I tried this for the nRF chip and the only problem was the error screen I displayed was overwritten by the binding message when ProcotolInit was called. Not sure what the best behavior would be if a module error is detected.

Perhaps the HWCheck could later be extended to actually test the device. Or even enumerate the installed devices automatically...

Please Log in or Create an account to join the conversation.

More
18 Feb 2014 00:27 #20482 by PhracturedBlue
Replied by PhracturedBlue on topic 7e repeatedly reboots after power up.
each chip has a Reset() (except the nrf chip I guess). This is the place I would expect to:
a) make sure thechip is in low power mode
b) turn off the PA/LNA
c) chck if the chip exists

We should cycle through these at power-on, and run the apropriate one each time the protocol changes. It would be a pretty good place to do the needed check. I think it is as simple as finding a register with a known value after reset and reading it.

Please Log in or Create an account to join the conversation.

More
18 Feb 2014 00:36 #20484 by Pagres
Replied by Pagres on topic 7e repeatedly reboots after power up.
Hexfet I think you may have my solution. I know I hooked up the miso on syma x1 module. Did I read correctly that syma x1 module does not have a PA? So that means the PA should be set to zero for the a7105 in the code when using syma x1 module?

Please Log in or Create an account to join the conversation.

More
18 Feb 2014 01:55 #20493 by hexfet
Replied by hexfet on topic 7e repeatedly reboots after power up.
The Syma X1 module does not have PA. You can set it to zero or just leave it commented out. Either way you'll still need to remove the MISO connection.

Please Log in or Create an account to join the conversation.

More
18 Feb 2014 03:35 #20505 by Pagres
Replied by Pagres on topic 7e repeatedly reboots after power up.
Problem solved. I opened up tx to cut miso connection and noticed the gnd connection had come loose. So I repaired gnd and snipped miso on syma module. When put back together tx not only stopped rebooting but was able to bind to v202 fc. I have yet to shut off pa setting for the a7105 module but will do so before I attempt to use it. Thanks to all for your help!

Please Log in or Create an account to join the conversation.

More
18 Feb 2014 17:40 #20528 by victzh
Replied by victzh on topic 7e repeatedly reboots after power up.
Anyway, I'll check V202, HiSky, and SLT for potentially infinite loops because of hardware problems. There should be at least a reasonably short retry count after which we can detect hardware failure instead of going to watchdog.

Please Log in or Create an account to join the conversation.

More
19 Feb 2014 13:05 #20579 by hexfet
Replied by hexfet on topic 7e repeatedly reboots after power up.
I reworked the YD717 code to remove the tight loop. Instead it reschedules the callback in 500uS and keeps checking for packet send complete before sending the next packet. Updated the pull request.

Please Log in or Create an account to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum