Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards/stm32f469i-disco: enable cpy2remed programmer #18039

Merged
merged 2 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions boards/stm32f469i-disco/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ PROGRAMMER ?= openocd
# this board has an on-board ST-link adapter
OPENOCD_DEBUG_ADAPTER ?= stlink

# openocd programmer is supported
PROGRAMMERS_SUPPORTED += openocd
#variable needed by cpy2remed PROGRAMMER
#it contains name of ST-Link removable media
DIR_NAME_AT_REMED = "DIS_F469NI"

# openocd and cpy2remed programmers are supported
PROGRAMMERS_SUPPORTED += openocd cpy2remed
27 changes: 24 additions & 3 deletions boards/stm32f469i-disco/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,37 @@ Also provides some system signals and power.

## Working with this Dev-Kit

There are two requirements to start,first of them is the **gcc-arm-embedded** toolchain,
To start the **gcc-arm-embedded** toolchain have to be installed,
we can follow the usual process [here](https://github.com/RIOT-OS/RIOT/wiki/Family:-ARM).

The other requirement is **OpenOCD**, also we can follow the usual process
## Flashing the device

### Flashing the Board using OpenOCD

The start install **OpenOCD**, also we can follow the usual process
[here](https://github.com/RIOT-OS/RIOT/wiki/OpenOCD)

Once both things are installed and ready to work just connect the board through
Once everything is installed and ready to work just connect the board through
the USB Mini-B connector try to compile and flash some code, type:

```
make flash BOARD=stm32f469i-disco
```

### Flashing the Board Using ST-LINK Removable Media

On-board ST-LINK programmer provides via composite USB device removable media.
Copying the HEX file causes reprogramming of the board. This task
could be performed manually; however, the cpy2remed (copy to removable
media) PROGRAMMER script does this automatically. To program board in
this manner, use the command:
```
make BOARD=stm32f469i-disco PROGRAMMER=cpy2remed flash
```
@note This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware update
s
could be found on [this STM webpage](https://www.st.com/en/development-tools/sts
w-link007.html).


*/