Hey everyone,
I'm trying to write a batch file to automate the process of copying the firmware and resetting the board after compiling it.
This is what i have so far.
SET FROM=C:\Users\Ehsan\Downloads\*_LPC1768.bin
SET TO=E:\
SET PORT=COM3
MODE %PORT%:115200,N,8,1>NUL
:WAIT
IF EXIST %FROM% GOTO COPY
TIMEOUT 1
GOTO WAIT
:COPY
MOVE /Y %FROM% %TO%
ECHO BREAK_SEQUENCE>%PORT%
GOTO WAIT
I'm sure most of you know what it does but in case you don't, it waits in the background until it detects a compiled firmware in the FROM folder and then copies it to your mbed drive and finally resets the board. No user interactions are required. All you have to do is press CTRL-D to compile your program.
However, the problem im facing is that i dont know what should replace the BREAK_SEQUENCE. I've tried to reset the board using TeraTerm's Alt-B and it works perfectly. I did the loop back test and i saw that Alt-B outputs the following in hex format.
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
My preferred terminal is Termite, but it has no break option as teraterm and when i send the above sequence nothing happens.
Any help is appreciated.
Is there a way to reset the LPC1768 module via software? I have an mbed module installed in a first test site 120 miles away. I have been monitoring and fine tuning the application remotely by using LogMeIn. With the module plugged into the USB I have been able to do all modifications and debug except pushing the RESET button after a new firmware download. I've thought of a few different methods:
A software reset would be nice. I searched this site, but did not find any information on a warm restart.
Doug