Is there a way to free a Serial COM Port?

Hello everyone,

I have a arduino fio, that I borrowed from my university. So it is pre loaded with a sketch. So when I configure two new xbees series 2 modules, they are talking to each other. But when I try uploading a new sketch I get the ‘Serial Com Port already in use’ error.

So I check around to see why am I getting the error. There is nothing else connected to my ports and I have verified this with device manager. But then I saw the x-ctu terminal and there is bunch of data coming in. I believe this is why I am getting the error. So is there a way that I can free this port or stop the data from coming in so I can upload a new sketch.

Thank you.

The PC side bootloader should close the serial port, then assert reset, then open the port to begin the download, then remove the reset to cause the microprocessor to execute the bootloader.

If the bootloader on the micro thinks there’s no download coming (timeout, etc) it will run whatever program is present and that program may emit serial data. So the bootloader reset scheme should deal with this.

Thanks for the suggestion . Please can you tell me how would I reset the bootloader or if you a site that could assist me, please can you provide a link.

Thank you.