Content originally posted in LPCWare by lpcxpresso-support on Fri Apr 22 03:27:32 MST 2016
I'm afraid that the vectreset option does not reset well enough to start execution from flash on an LPC812. Using the 'system' reset should work though.
If you omit the -reset option the utility will normally use the type of reset most appropriate to the part. Alternatively you could specify "--reset system" (or -reset=system, or --reset=system) explicitly.
If you don't need the additional output (that is intended for use by the IDE) you can omit '-g' too. Likewise the '-2' which just sets the debug level. In fact "NXP" is the default --vendor, so you could omit that. And the default flash driver set by --flash-driver is picked up based on the part number (LPC812), so you don't really need to specify that either.
In fact you could probably simply use
crt_emu_cm_redlink -p LPC812 --flash-load-exec S:\projects\FPIO32SV1\firmware\MODS_TEST\Release\MODS_TEST.axf
Tip: I imagine that you obtained the command line by modifying what the IDE uses when the 'program flash' tool is used? This is generally a safe thing to do.
(You may notice, in your case, that no '-reset' option is included on that command line... and that should work.)
Sincerely
LPCXpresso IDE Support