Skip to main content

Configure External Storage Devices

You can configure the BeagleBone Black to access a USB storage device or µSD card from CODESYS Control for BeagleBone. The compatibility of specific USB storage devices or µSD cards depends on the hardware. In theory, however, every USB storage device or µSD card should function with the BeagleBone Black.

Accessing a USB storage device or µSD card

Configuring Linux for automounting

Debian provides a package which takes care of the automounting pluggable storage media. This package can also be installed on your BeagleBone Black.

Installing the usbmount package from the Debian directory:

command> sudo apt-get install usbmount

The device has to be connected to the Internet and configured so that it can access the Debian server.

Accessing USB storage devices

When a USB storage device is connected, usbautomount automatically creates the /media/usb folder where you can access the files on the USB memory device. The CODESYS Control runtime system is configured so that USB storage devices are automatically displayed when they are available. When a USB storage device is connected, it is added to the /media/usb folder. In CODESYS, the $USB$ placeholder can be used to access this folder. There are two ways to do this:

  • You can use the file transfer in the CODESYS Development System to access the $USB$ placeholder.

  • You can access these same files from your IEC application by using the library CAA_File.

    Pay attention that the files may not be accessible because the medium is pluggable. Therefore, check the result of CAAFileOpen.