Changes

Programming Arm

513 bytes removed, 20:35, 9 October 2018
no edit summary
<h4> Programming the Example </h4>
Note with the CW1173 CW303 Arm target, you need to configure a clock before programming of the device will succeed. Programming of the target device will be done as part of the CW-Capture software setup, discussed next.
<h4> Communicating from CW-Capture Software </h4>
To do so, simply scroll down and select the "setup_cwlite_stm32f_aes.py" file:
 [[File:Stm32f aesStm32f_aes.PNG|thumb|leftframeless|1104x1104px]]
You'll notice the contents of the script contain the following setup:<syntaxhighlight lang="python" line="1">
<ol start="14" style="list-style-type: decimal;">
<li><p>Hit the ''Check Signature'' button and confirm the device is detected. If not you may have issues with the clock setup.</p>[[File:Stm32f programmer sig.png|none|thumb|357x357px]]<p></p></li>
<li><p>Using the ''Find'' button, navigate to the <code>simpleserial-base-CWLITEARM.hex</code> (or whatever your binary is called), which you built earlier with the <code>make</code> command. You can then press the ''Erase/Program/Verify'' button, and confirm the file is programmed into the XMEGA device:</p>[[File:Stm32f programmer succ.png|none|thumb|362x362px]]<p></p></li><li><p>If the software freezes and the verification fails after a long period of time, set the Read Block Size to 64 instead of 256.</p></li><li><p>Note the programmer dialog not only shows the successful programming status, but also shows when the <code>.hex</code> file was last modified. Always confirm this matches with when you last remember compiling the program -- if it is widely different this suggests you have selected the wrong file!</p> <p>Finally we can check communications with the programmed file:</pli></li></olp[[File:09_Cw1173_connectrun.png|image]] <ol start="17" style="list-style-type: decimal;"><li>Close If you'd like, you can close the STM32F programmer dialog.</li><li>Open If you frequently reprogram the status monitor under <i>Tools > Encryption Status Monitor</i>.</li><li>Resize the monitor window. The monitor will show sent &amp; received data target, you may want to the targetleave it open.</lip><li>Hit the ''Run 1'' button ([[File:Capture One Button.PNG|image]]). You may have to hit it a few times, as the very first serial data is often lost. You should see data populate in the ''Text Out'' field of the monitor window. Note that each byte of the ''Text In'' is incremented in the ''Text Out'' field.</li></ol>
Approved_users, administrator
366
edits