Flashing works but node reboot on old firmware

Started by cpasset, February 19, 2016, 06:39:28 AM

cpasset

Hi,

After flashing a node for a gateway connected to a compter, the node reboot but still use the old firmware.

We are designing a POC for a client using a classic newtork architecture : nodes with sensors transmitting data to a gateway connected to a Pi. We use this gateway for flashibng the nodes. Our wireless protocol to put the nodes into flashing mode works fine, then the python script to push the hex files to the node shows that all packet are ack and that the transmission works fine.

On the node side, the debug output that the hex is received correctly and acked, then when it is done is setup the watchdog and reboot.

The problem is that on reboot, the node has not been flashed and runs the old firmware, the flash is initialised and woke up before flashing. We currently have no understanding of what is going wrong, would anyone have a clue about this issue ?

Regards,

Felix

First ensure you have a FLASH MEM chip soldered on the target Moteino. I would also like to know what other devices (especially SPI) are attached to your target.
Then please look over this thread, also see this thread. There are instructions there to read the FLASH MEM content to see what was written to it in case of a failure.

I would suggest using the latest windows tool for WP from here, its much easier than the Python script method and has improvements, also 50% faster WP is possible. Also please update your WirelessHEX69 library to the latest code, then reload your WP programmer and target nodes (via FTDI, with this latest code) before trying again.

If none of those answers solve your problem please let me know.

cpasset

Hi,

We have a flash chip installed and no other SPI device attached, the wirelessHEX69 was the latest.

I do not understand why but it now reboot on the new software althought I did not change anything in my software, right now my best guess would be that the component were tired after a hard day of coding.

If the issue starts again I will follow up and want is going wrong.

Thank you.

Regards

Felix

Yes we have to understand the poor chips, they get tired sometimes too  ::)
If it happens again please let me know! ;)