Tool/software: Linux
Hi,
I am working with `UniFlash 4.6` on launchxl-cc2650 boards and would like to select the board to flash from the command line arguments of `dslite.sh`.
In an ideal scenario, I would be using a common `cc2650f128.ccxml` file adapted from the one generated from the graphical interface, that I could reuse for different boards and just specify the serial number or the /dev/tty port to use for flashing in a script.
In different forums/posts I have seen options like ComPort, --serial for some other versions that did not work.
And in the source code reference to `SEPK.POD_PORT`, `SEPK.POD_SERIAL`, `pod_port` or `pod_serial` but these cannot be given as `--settings` so not sure how to handle it.
When looking in the `cc2650f128.ccxml` the `Debug Probe Selection` section looks more like the graphical interface configuration than the flasher so not sure if that is the way I should specify it.
<property Type="choicelist" Value="1" id="Debug Probe Selection"> <choice Name="Select by serial number" value="0"> <property Type="stringfield" Value="MYSERIALNUMBER" id="-- Enter the serial number"/> </choice> </property>
Overall nothing wrong, but I do not know how to handle it from scripts.
What would be the canonical way to implement a script that flash for a given serial number/serial port: "my_flasher.sh SERIAL_NUMBER FLASHFILE".
If it is generating an xml file, then fine, just want to be sure before going that way, or if there is a simpler way.
Thank you in advance.
Regards,
Gaëtan