FLASHit 9-STM32 Manual - hse-electronics GmbH
FLASHit 9-STM32 Manual - hse-electronics GmbH
FLASHit 9-STM32 Manual - hse-electronics GmbH
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>FLASHit</strong> 9-<strong>STM32</strong> <strong>Manual</strong><br />
<strong>FLASHit</strong> returns the "return code" which is then displayed by CmdLine.<br />
With the following program lines you can extract the "error code" from the return value (see 7.1).<br />
uiErrorCode = (unsigned int) ( ulReturnValue >> 8 );<br />
With the following program lines you can extract the "short code" from the return value.<br />
cShortCode = (char)( ulReturnValue & 0x0F );<br />
Short code equals bit 4 from the return value as shown below.<br />
0 No error<br />
1 Error in hex file<br />
2 Error in target system<br />
3 Flash was not found<br />
4 Flash type not supported as yet<br />
5 Error while deleting the flash module<br />
6 Error while programming the flash module<br />
7 Checksum error<br />
8 Error in program flow of <strong>FLASHit</strong><br />
other error in Windows<br />
<strong>FLASHit</strong> can also generate a "return code file" (result.txt) for evaluation by another application.<br />
Note: If you want to work with CmdLine, then it must be located in the <strong>FLASHit</strong> directory!<br />
Subject to change!<br />
"We hope your work is a success"<br />
The <strong>hse</strong>-<strong>electronics</strong> Team<br />
10-06 Seite 24 e-flashit-manual-cortex18.docx