Difference between revisions of "SiRad Simple v4"

From indie Semiconductor Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NUMBEREDHEADINGS__
 
__NUMBEREDHEADINGS__
  
[[File:Logo_small.png|frameless|right]]
+
= SiRad Simple® v4 =
  
== Flash SiRad Easy v3 ==
+
Requirements:
 +
* keep the firmware ready that you want to flash (*.bin file)
 +
* know the COM port number of your device
 +
* terminal program, i.e. [https://realterm.sourceforge.io/ Realterm]
 +
* [https://www.st.com/en/development-tools/stm32cubeprog.html STM32CubeProgrammer] OR [https://login.siliconradar.com STM32Flash] tool and [https://login.siliconradar.com flash script] configured for SiRad Simple
  
''' Needed Tools '''
+
== Use a terminal program to set the device into programming mode ==
  
: [https://realterm.sourceforge.io/ Realterm], [https://www.st.com/en/development-tools/stm32cubeprog.html STM32CubeProgrammer]
+
The device needs to be booted into the programming mode prior to flashing. You can use any terminal program to achieve what is described below, however, we use Realterm as an example to describe the process.
  
''' Preparations '''
+
Connect to the device using the following UART settings:
 +
* 230400 baud / 1 Mbaud (depending on firmware)
 +
* COM port number of your device
 +
* Parity: None
 +
* Data bits: 8
 +
* Stop bits: 1
 +
* Flow control: None
  
Look up the COM port of your device in the Windows Device Manager or double click on Realterm's Port text field to refresh the available UARTs and guess which might be your device's COM port.
+
Switch to the <b>Port</b> tab and chose the settings, then click on <b>Open</b>. You should see the communication of the device flowing over the UART. Now switch to the <b>Send</b> tab and put in <b>!W\r\n</b> into the first send line. Click <b>Send ASCII</b> to send the programming command to the device. The communication flow should stop and the LED should stop blinking. Do not power cycle the device now until the flash process was finished.  
  
''' Connect '''
+
<b>Important:</b> Switch back to the <b>Port</b> tab and release the <b>Open</b> button to be able to connect with the flash tool.
  
:Connect the USB to the device to power it up. Connect Realterm to the device via its "Port" tab with the COM port of your device: baud rate 230400, no parity, 8 data bits, 1 stop bit, no flow control. Check the output of the device, data should be flowing similar to the SiRad Easy and Simple. Got o Realterm's "Send" tab and enter !W\r\n in the first text line, then click "Send ASCII". Data should stop flowing as the device goes into boot load mode. Now go back to the "Port" tab and close the connection by unsetting the "Open" button.
+
<b>Trouble shooting:</b> If an error message appears in Realterm just click it away and try a few more times to click the button until it was released without an error message.
  
''' Flash '''
+
== Use STM32CubeProgrammer to flash the firmware ==
  
:Open STM32CubeProgrammer and switch to UART mode in the top right corner of the tool. Choose the COM port of your device and click "Connect". The tool should show the memory content of the device. Go to the "Open file" tab and load the firmware binary. Click the "Download" in the top right corner of the memory view window. The tool will show a dialog once the transfer is complete. Disconnect from the device. Now power cycle the device and recheck the device output with Realterm.
+
The firmware can be flashed after the device has been set to programming mode.
  
''' Troubleshooting '''
+
Connect to the device using the following UART settings:
 +
* COM port number of your device
 +
* 115200 baud
 +
* Parity: Even
 +
* Data bits: 8
 +
* Stop bits: 1.0
 +
* Flow control: Off
  
:If the whole process does not work or STM32CubeProgrammer does not want to connect to the device, please close all applications, power cycle the device and start over. Connection issue may occur if the COM port wasn't correctly opened or closed by one of the applications during the flash process.
+
Switch to the <b>Open file</b> tab and chose the firmware file you want to flash. Then click the <b>Download</b> button to flash the firmware to the device. It should take some minutes. The flash progress can be observed with the green progress bar in the bottom of the tool. Just close the tool after the finished flash progress.
 +
 
 +
<b>Trouble shooting:</b> If STM32CubeProgrammer does not want to connect to the device, please check that the port is closed in the terminal program.
 +
 
 +
<b>Trouble shooting 2:</b> If STM32CubeProgrammer does not want to flash, please check the baud rate setting as described above.
 +
 
 +
== Power cycle the device ==
 +
 
 +
The device now needs to be power cycled to get back into standard operation mode. You can now use the device as usual.
 +
 
 +
 
 +
= SiRad Simple® v4 UART connector =
 +
 
 +
An additional 1.27mm pitch standard 5 pin header can be soldered to the device so that the additional UART can be used instead of the USB. The Harwin connector
 +
from here: [https://www.mouser.de/ProductDetail/Harwin/M50-3530542?qs=sGAEpiMZZMs%252BGHln7q6pm8Vn94ktop%2FJwhkhXFFxcRyhQMMF1Pswug== Mouser], for example, fits for that purpose.
 +
 
 +
 
 +
= SiRad Simple® v4 Front End connectors =
 +
 
 +
The module has connectors for the interface board / break out board mounted. In case you want to design your own extension board, these connectors are available from Mouser under part number 10132798-012100LF and 10132798-022100LF.

Latest revision as of 11:26, 27 November 2019


1 SiRad Simple® v4

Requirements:

1.1 Use a terminal program to set the device into programming mode

The device needs to be booted into the programming mode prior to flashing. You can use any terminal program to achieve what is described below, however, we use Realterm as an example to describe the process.

Connect to the device using the following UART settings:

  • 230400 baud / 1 Mbaud (depending on firmware)
  • COM port number of your device
  • Parity: None
  • Data bits: 8
  • Stop bits: 1
  • Flow control: None

Switch to the Port tab and chose the settings, then click on Open. You should see the communication of the device flowing over the UART. Now switch to the Send tab and put in !W\r\n into the first send line. Click Send ASCII to send the programming command to the device. The communication flow should stop and the LED should stop blinking. Do not power cycle the device now until the flash process was finished.

Important: Switch back to the Port tab and release the Open button to be able to connect with the flash tool.

Trouble shooting: If an error message appears in Realterm just click it away and try a few more times to click the button until it was released without an error message.

1.2 Use STM32CubeProgrammer to flash the firmware

The firmware can be flashed after the device has been set to programming mode.

Connect to the device using the following UART settings:

  • COM port number of your device
  • 115200 baud
  • Parity: Even
  • Data bits: 8
  • Stop bits: 1.0
  • Flow control: Off

Switch to the Open file tab and chose the firmware file you want to flash. Then click the Download button to flash the firmware to the device. It should take some minutes. The flash progress can be observed with the green progress bar in the bottom of the tool. Just close the tool after the finished flash progress.

Trouble shooting: If STM32CubeProgrammer does not want to connect to the device, please check that the port is closed in the terminal program.

Trouble shooting 2: If STM32CubeProgrammer does not want to flash, please check the baud rate setting as described above.

1.3 Power cycle the device

The device now needs to be power cycled to get back into standard operation mode. You can now use the device as usual.


2 SiRad Simple® v4 UART connector

An additional 1.27mm pitch standard 5 pin header can be soldered to the device so that the additional UART can be used instead of the USB. The Harwin connector from here: Mouser, for example, fits for that purpose.


3 SiRad Simple® v4 Front End connectors

The module has connectors for the interface board / break out board mounted. In case you want to design your own extension board, these connectors are available from Mouser under part number 10132798-012100LF and 10132798-022100LF.