patchAVR In-System Programmer - Patches: patch #3933, Flush Serial Port on Open - Needed...


You are not allowed to post comments on this tracker with your current authentication level.

patch #3933: Flush Serial Port on Open - Needed for Serial Bootloader

Submitted by:  None
Submitted on:  Fri 22 Apr 2005 04:20:57 PM UTC  
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open

Fri 22 Apr 2005 04:20:57 PM UTC, original submission:  

We're using a stk500 compatible bootloader on the avr128. to program, we press and hold the reset butten of the embedded system, then start uisp (uisp sends its sdk500 hello msg) and release the reset button. the bootloader starts with sdk500 "I'm here" message which triggers uisp to respond immediately.

For this to work, uisp should not get any garbage data from the last program run. A simple fix for Serial.C just flushed the Serial Port on opening. I guess this should not harm anyone else, but helps us a lot (what do you expect from a freshly opened serial port? :)



Attached Files
file #8709:  Serial.C.patch added by None (303B - application/octet-stream - Serial.C.patch)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-04-22 None Attached File- => Added Serial.C.patch, #4488
    Carbon-Copy- => Added mringwal --AT-- inf --DOT-- ethz --DOT-- ch

Back to the top

Powered by Savane 3.7