On Tue, 3 Jun 2014 09:04:38 +0200 The Raven originalraven@hotmail.com wrote:
Few minutes after sending my mail i thought it could be the "bug" in serprog. I tested again and all is working, only erase function1 not. The response is not always the same (now it's 0xA5). I attached the patch for LE25FW106, you can commit it if you think it's ok. And you can find logs from all read, write and erase (function0, 1 and 2). For me all looks good, only "LE25FW106-Erase1.txt" not. But on "normal" operation it uses function0 and this works with serprog.
Hi,
I have talked to Denis Carikli (GNUtoo) about this. He has implemented the firmware for the Arduinos implementing serprog. IIRC you got an Arduino Uno which uses a second avr chip instead of an FTDI to connect the micorcontroller to the host. The standard firmware of that chip does not cope well with high bandwidths, i.e. it is buggy. Denis told me that reducing the baud rate supplied to serprog should help with that problem in general, so I would suggest that you try that.
In the long term we want to provide a fixed firmware for the communication Atmel processor. But he has no time and I am not too much interested into fixing foreign code... I'd rather work on my own serprog implementations :)
I will commit your patch (with my sign-off) soon, as it seems to be fine. Thank you very much.