Page 1 of 1

Upload and Run

Posted: Mon Oct 22, 2018 3:14 pm
by steve64
I would like to know, possibly, which are the commands /mechanisms internally invoked by Astrobe IDE for the Nucleo boards
in order to carry out the following two actions:

1) transfer a binary image from PC to target flash memory
2) run the program previously stored in flash

For custom purposes, complementary to the IDE,
I would like to do something equivalent using the ST-Link CLI utility.
Is Astrobe relying on something related to ST-Link CLI?

Re: Upload and Run

Posted: Mon Oct 22, 2018 9:00 pm
by cfbsoftware
1. copy <ModuleName>.bin <USBDriveFolder>\<ModuleName>.bin e.g.

Code: Select all

copy info.bin G:\info.bin
where G: is the USB drivename associated with the Nucleo board connected to your PC as defined in your current configuration file.

2. Clicking on the Reset button on the Astrobe Terminal enables the UART DTR line for 500 msecs.

Astrobe relies on the fact that the supported STM32 Nucleo boards are mbed-enabled. However, you can use the ST-Link CLI to program the boards with the executable file created by Astrobe if you prefer.

Re: Upload and Run

Posted: Tue Oct 23, 2018 8:57 am
by steve64
Perfect!
I'm able to load programs with a plain copy to the USB drive and run then using st-link_cli -rst
I mostly use the Astrobe IDE to do this, but I needed a way to handle some batch scenarios.