mysmartgrid / hexabus

The HexaBus Project: An IPv6-based home automation bus. We develop both hard- and software for the future of home automation.
http://hexabus.net
49 stars 15 forks source link

Flashing a Socket via Bootloader doesn't always work #49

Open eBrnd opened 12 years ago

eBrnd commented 12 years ago

I've tried flashing the Hexabus Plugs via the bootloader over the air a few more times. I have not yet figured out when it works and when it doesn't, but the particular image that is flashed onto the Plug seems to have some effect on it.

For example, I have an image of the firmware (current development branch) that makes the Plug behave strangely when flashed over-the-air: The Plug sometimes reboots after receiving a ping, the serial debug output stops working after a few requests from hexaswitch, and after a few more it also reboots. Receiving some network packets: Hang up or reboot, and so on...

The same image flashed with a JTAG onto the same plug works fine, but flashing it breaks the bootloader.

Disabling UDP_HANDLER_DEBUG in the hexabus_config.h seems to help: If I compile the same image with UDP_HANDLER_DEBUG set to 0, it works even when flashed via the bootloader.

domke commented 12 years ago

I just flashed the development branch on three plugs using the bootloder. Two of them seem to work fine, the third one is behaving strangely. After powering it up, the red LED flashes once every three seconds. I tried to flash the image several times, always the same behaviour. Can't try JTAG and debug output right now, I'll bring the faulty plug to the office for inspection.