QSPI Auxiliary Functionality

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

QSPI Auxiliary Functionality

Postby steved » Tue Apr 24, 2018 4:46 pm

The QSPI devices I've looked at have some auxiliary functionality - a multi-byte unique ID, and a certain amount of OTP memory.

Any thoughts on how this could best be exposed to the outside world?

My initial thought is a single ioctl()-like interface, to make it simple to add additional options later.

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: QSPI Auxiliary Functionality

Postby Giovanni » Tue Apr 24, 2018 5:45 pm

Hi,

It is already possible to send custom commands by calling the inner functions, currently there is no official API, it could be an idea.

Giovanni

steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: QSPI Auxiliary Functionality

Postby steved » Thu May 03, 2018 1:34 pm

I implemented this using the threatened ioctl()-like interface, as the attached.
Mostly to give some ideas - maybe add a pointer in the VMT to the ioctl() routine. And there are some other error codes which could usefully be added.
Attachments
QSPI_ioctl.zip
(2.34 KiB) Downloaded 164 times

steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: QSPI Auxiliary Functionality

Postby steved » Wed Jul 24, 2019 9:24 am

Just revisiting this - any comments?

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: QSPI Auxiliary Functionality

Postby Giovanni » Wed Jul 24, 2019 5:51 pm

Not yet, I will do another pass on the flash driver later, I am on another thing right now.

Giovanni

steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: QSPI Auxiliary Functionality

Postby steved » Wed Jul 24, 2019 9:08 pm

No problem; I'll stick with what I've got for now (or maybe generalise it a bit)


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 7 guests