Upload and Run

General discussions about working with the Astrobe IDE and programming ARM Cortex-M0, M3, M4 and M7 microcontrollers.
Post Reply
steve64
Posts: 44
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

Upload and Run

Post by steve64 » Mon Oct 22, 2018 3:14 pm

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?

cfbsoftware
Site Admin
Posts: 525
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Re: Upload and Run

Post by cfbsoftware » Mon Oct 22, 2018 9:00 pm

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.

steve64
Posts: 44
Joined: Mon Jul 09, 2018 8:56 am
Location: Italy

Re: Upload and Run

Post by steve64 » Tue Oct 23, 2018 8:57 am

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.

Post Reply