QSPI Auxiliary Functionality

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome.
steved
Posts: 547
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 4 times
Been thanked: 58 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: 11224
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 401 times
Been thanked: 333 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: 547
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 4 times
Been thanked: 58 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 4 times


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 4 guests