cancel
Showing results for 
Search instead for 
Did you mean: 

How to access SD Card of STM32F767 Nucleo board from Raspberyy PI model B-V1.2.

Sware.1
Associate II

Board : STM32F767 Nucleo-144

Environment : Raspberry PI model B-V1.2

OS : Raspbian

Issue : How I can access STM32 SD card from Raspberry PI model B-V1.2 ?

I try to access SD card as share drive from My rasbery pi and I have followed below steps on Raspbian OS:

In order to install the ST-Link utilities on Rasbery Pi, we have to make sure to have the libusb-dev library installed. 

1. $ sudo apt-get install libusb-1.0-0-dev

We will now download, build and install the latest ST-Link utilities from scratch

2. $ git clone https://github.com/texane/stlink stlink.git

3. $ cd stlink

4. $ make

5. #install binaries:

6. $ sudo cp build/Debug/st-* /usr/local/bin

7. #install udev rules

8. $ sudo cp etc/udev/rules.d/49-stlinkv* /etc/udev/rules.d/

9. #and restart udev

List all visible drives on the system: 

10. $ sudo fdisk -l

And it should be one of /dev/sdb1 or /dev/sdb2.

Make a directory into which you'll mount the USB drive:

11. $ mkdir /media/usb

Mount the USB drive: 

12. $ sudo mount /dev/sdb2 /media/usb

13. $ cd /media/usb

But I cannot access images stored in USB, Why ?

Am I missing any critical steps ?

3 REPLIES 3

What's the ST-LINK got to do with accessing an SD card on an STM32 board?

You'd need an SD card attached, and build a USB MSC device to provide access.

The faux mass-storage on the mBed platform allows you to drop a binary file as a means of burning firmware to the STM32, not create directories and add random content.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Thanks for your inputs.

I am newbie on ST board.

so kindly provide more inputs on how to build a USB MSC device ?

You find some files in the ST code of the Cube Firmware

i.g: C:\ST\STM32Cube_FW_H7_V1.6.0\Middlewares\ST\STM32_USB_Device_Library\Class\MSC

Kind regards

Daniel