Started by wouter, April 24, 2008, 02:02:12 PM
Quote from: Andy Ayre on May 09, 2008, 10:35:59 AMHow about implementing a user configurable delay along with the Go operation? The delay is the length of time to wait after sending the command before the COM port is closed.For example specifying 10 seconds will send the Go command and then wait 10 seconds before closing the COM port, which will stop execution from RAM.
// fm_connect, fm_program etc. runs fine.presults = fm_select_debug_mode (FM_DEBUG_MODE_ON, "f:\\kram\\reset2.fmd");presults = fm_reset (FM_RESET, 0x40000200, (1000 << 16)); // specify ARM mode and 1 second delay
tx> U 23130\d\arx> U 23130\d\arx> 0\d\atx> G 1073742336 T\d\arx> G 1073742336 T\d\adebug> COM Port RX flushed
Quote from: Andy Ayre on December 08, 2009, 10:00:33 AMWe found an issue with this. Please try version 5.44.
options.hwconfig = FM_HWBOOTEXEC; presults = fm_connect(&options, sizeof(options)); presults = fm_program ( .... ); // load LPC application to RAM presults = fm_reset (FM_RESET, 0x40000200, (1000 << 16)); // run application after 1 second delay // application takes control over the LPC // talk to the app using fm_raw_transmit and fm_raw_receive