mkdir() for VS1010

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
Post Reply
AAT
User
Posts: 7
Joined: Fri 2021-01-08 18:07

mkdir() for VS1010

Post by AAT » Thu 2021-01-28 9:50

Is there a way to add a directory to the FAT structure in the SPI Flash? I can create files but I cannot see how to create a new directory (other than via mounting the Flash as a USB storage device via runlevel 14).

AAT
User
Posts: 7
Joined: Fri 2021-01-08 18:07

Re: mkdir() for VS1010

Post by AAT » Mon 2021-02-08 14:26

@Panu Any thoughts about this??

User avatar
Henrik
VLSI Staff
Posts: 1199
Joined: Tue 2010-06-22 14:10

Re: mkdir() for VS1010

Post by Henrik » Tue 2021-02-09 9:22

Hello!

We currently have a bigger project going on where the goal is to port many command-line VS1005 tools to VS1010, including mkdir.

How big urgency do you have?

Kind regards,
- Henrik
Good signatures never die. They just fade away.

terop
User
Posts: 2
Joined: Thu 2021-01-28 12:54

Re: mkdir() for VS1010

Post by terop » Tue 2021-02-09 11:57

Here's MkDir solution for 1010.

// Tero

User avatar
Henrik
VLSI Staff
Posts: 1199
Joined: Tue 2010-06-22 14:10

Re: mkdir() for VS1010

Post by Henrik » Tue 2021-02-09 12:02

Hello!

As you can see, our new team member Tero has implemented an mkdir application. If you look at the source code, you can also find the function that actually does the job.

Please note that this is a first release for VS1010 so it is highly experimental at this stage. Before trying it out on a live system, please please please make a backup of it first.

We'd love to have your comments on whether mkdir works for you or if you are having issues.

Kind regards,
- Henrik
Good signatures never die. They just fade away.

terop
User
Posts: 2
Joined: Thu 2021-01-28 12:54

Re: mkdir() for VS1010

Post by terop » Tue 2021-02-09 14:04

Here's new version of MkDir... Some Swap32 thing fixed.
// Tero
Attachments
MkDir.zip
vs1010 MkDir solution
(14.52 KiB) Downloaded 2 times

AAT
User
Posts: 7
Joined: Fri 2021-01-08 18:07

Re: mkdir() for VS1010

Post by AAT » Tue 2021-02-09 17:34

Many many thanks Tero & Henrik!
In terms of urgency we are still working on the new electronics so we won't be testing this on our full product design for a few more weeks, but should have everything in place before the summer, so having a version of mkdir() to work with now really helps.
We will certainly let you know if we have any issues with it.

Post Reply