[Solved]massStorageCopy "No space left on device" linux

The official STMicroelectronics Arduino core
Post Reply
User avatar
Rick Kimball
Posts: 1040
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

[Solved]massStorageCopy "No space left on device" linux

Post by Rick Kimball » Mon Jun 12, 2017 3:58 pm

So I've been using the new core ( https://github.com/stm32duino/Arduino_Core_STM32 ) with a new board variant I'm configuring. It seems to be working well except every once in a while I get this message :
/home/kimballr/Arduino/hardware/st/tools/linux64/massStorageCopy -I /tmp/arduino_build_936571/toneMelody.ino.bin -O NUCLEO
cp: error writing '/media/kimballr/NUCLEO/toneMelody.ino.bin': No space left on device
copying /tmp/arduino_build_936571/toneMelody.ino.bin to /media/kimballr/NUCLEO
Once I get this, the only way to recover is to unplug the NUCLEO board. Then after plugging it back, it seems to work fine for some unknown number of uploads until it happens again.

I'm on 64 bit Ubuntu 16.04.2 LTS. The board I'm using is a NUCLEO-F030R8 MB1136 C-01.

Anyone else seen this?

BTW: It isn't space lacking on my /tmp directory that has 154G
$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sdb3 230G 64G 154G 30% /

I just checked the firmware on the NUCLEO board it is : V2.J27.M15 STM32 Debug+Mass storage
-rick

fpiSTM
Posts: 226
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: massStorageCopy "No space left on device" linux

Post by fpiSTM » Tue Jun 13, 2017 7:05 am

Hi Rick,

massStorageCopy binary uses the scp command to perform the copy.

Code: Select all

      sprintf(cmd, "scp %s %s", input_path, output_path);
      system(cmd);
FYI, source here: https://github.com/stm32duino/Arduino_T ... torageCopy

So, I think error comes from scp.
Could you try manually, when you meet this issue with massStorageCopy ?

Maybe, it is linked to the fact you have "Nucleo" instead of default "NODE_F030R8". Issue with FS?

I've got the same fw:
V2.J27.M15 STM32 Debug+Mass storage
Maybe you could try to update it to V2.J28.M18 STM32 Debug+Mass storage

User avatar
Rick Kimball
Posts: 1040
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: massStorageCopy "No space left on device" linux

Post by Rick Kimball » Tue Jun 13, 2017 2:21 pm

Upgrading to 'V2.J28.M18' seemed to fix it. I didn't know there was a newer one.

I guess the STLink utility is something you have to manually upgrade? I was using the windows version in a VM. I just grabbed the java based one and ran it on linux (my normal OS) and that had the newer firmware.

Thanks!
-rick

fpiSTM
Posts: 226
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: massStorageCopy "No space left on device" linux

Post by fpiSTM » Tue Jun 13, 2017 3:40 pm

Welcome.
I've upgraded it too.
Yes, you have to manually perform this upgrade.

Post Reply