How do I access the SD card formatting in the Axoloti software?


#1

Hello all,

I've found a few topics mentioning that I need to go to Window -> Remote. I don't understand this; the only options I have are Axoloti, Keyboard and file manager. I understand from previous posts that this option is somehow hard to find/hidden, but I can't seem to get to the bottom of it! Sorry for density if it's obvious! :wink:


#2

OK I found this post from Jonhannes explaining the workaround with the current version of the software:

johannesSep '16
Sorry, the 'remote' is removed in 1.0.11 since it was not up-to-date anymore.
As a workaround, to format an sdcard with axoloti:

create an empty patch
add a "script/script2" object, and click the edit button on the script object
put this in the script:
void setup(){
FRESULT err = f_mkfs(0, 0, 0);
if (err == FR_OK) LogTextMessage("format done");
else report_fatfs_error(err,"");
}
void loop(){}
click the "live" button
After several seconds, "format done" appears in the main window.
I will add an object to the factory object library to format cards.


#3

You can also use the util/format object, no need to make a new object.


#4

Great, thanks for the info.


#5

The util/format module seems to have stopped working with the new firmware for me - it just fails straight away. It says no SD card in the main window too. Any ideas?

Thanks.


#6

Ive just tested util/format here on latest firmware/axo 1.0.12, and works ok.

if the card is not showing as mounted, thats probably the cause.

perhaps the card is faulty?

I would try to test the card with a card reader on your computer, if its ok then format it there (fat) and try again...
in addition, try another card in axo.


#7

Thanks. Good to know it's still working for you. It's a cheapo card, so I did think it might be that but I wanted to rule out firmware first.

It actually doesn't show up at all - in the main Axo window so I presume it's not mounted. I'll try a card reader. I'm beginning to think I should buy a new one from a non-shitty brand.


#8

I've been having similar problems with formatting my SDcard. I've tried mentioned above methods but none of them worked.
Whenever I try to use any sdcard related operation I keep getting on the console:

file error: FR_DISK_ERR, filename:"/"

Whenever I try util/format object it goes directly to failed.
After (FAT) formatting

Is it the SD card I'm working with? It's strange because it's not working on 2 different I have.

Thank you


#9

I found this topic as I experienced a similar issue - Suddenly the Axoloti was unable to read any files (FR_DISK_ERR).
But the card would work perfectly fine on my computer. I suspected that the reader of my unit was broken.
Then I tried this util/format object and it worked. Luckily there was nothing of importance on the card. It's still weird.

A possibly related issue (or cause) is, the "Board -> Enter Card Reader Mode" had stopped working a while ago (my OS is Ubuntu 16.04).
It would freeze while mounting and I would pull the USB plug from the Axoloti.
Afterwards I would run "fsck" on the card and it reports "Dirty bit is set", which I then unset.