- Posts: 9
7e repeatedly reboots after power up.
- Pagres
- Topic Author
- Offline
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.
- SeByDocKy
- Offline
- Posts: 1016
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.
- Pagres
- Topic Author
- Offline
- Posts: 9
Please Log in or Create an account to join the conversation.
- hexfet
- Away
- Posts: 1892
Removing that connection fixed the problem.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
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))))) ;
Please Log in or Create an account to join the conversation.
- hexfet
- Away
- Posts: 1892
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.
- PhracturedBlue
- Offline
- Posts: 4402
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.
- Pagres
- Topic Author
- Offline
- Posts: 9
Please Log in or Create an account to join the conversation.
- hexfet
- Away
- Posts: 1892
Please Log in or Create an account to join the conversation.
- Pagres
- Topic Author
- Offline
- Posts: 9
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- hexfet
- Away
- Posts: 1892
Please Log in or Create an account to join the conversation.
- Home
- Forum
- General
- General Discussions
- 7e repeatedly reboots after power up.