I just modified the program to load some values into the buffer, for the write() and then to zero the buffer before the read(). With that I can confirm that as far as read is concerned, the data was nt0 stored or read...
Then, I tried "quickformat". The command list files shows that the file has gone away. Save temp.txt, again creates an empty file.
So, I feel confused. Why is write() not writing anything to the file?
At startup it reports
Space Used = 65536
Filesystem Size = 65536
After writing the file, save temp.txt, the list command produces the following. It shows that the file has been created, but the size is 0...
Command: save temp.txt
Response:
saved to temp.txt 4096 0
The first number is the number of bytes that were supposed to be written. The last number is the size returned by file.size() immediately after...
Following is a complete source code.
The intent is to use LittleFS to save and recall data to and from program memory on a T4.0. The directory listing shows the file is created but that it has zero size.
What I...
@kurtE, I would maintain that the low level should be save/set the number of bits, and transfer, and above that a call that does an 8/16/32/block transfer with all of the dress-up. But then maybe it should be...
Well that's neat, the code. Thank you.
I am very grateful for the help that has been offered, that you know the part and the library so well is a huge help, and I appreciate the reasons for supporting the less...
@joepasquariello Perhaps you are right, I should have stopped at the first line. Let me rephrase.
My sincere feeling is that in an embedded environment, the default API should be close to the hardware and...
The folks at Arduino forum report that command history was added to the serial monitor in version 1.8.10 of the IDE
But, it seems to be missing from my recent install of 1.8.19 with Teensy. Up-arrow in the Serial...
Is there anything wrong with supporting a dedicated or user managed paradigm alongside of the multiple device paradigm?
After all, an MCU on a few centimeters of embedded pcb, is not a desktop. Should so much...
P/S Really, in a dedicated system with one device, even more so that it transfers in blocks, it hardly makes sense to have to save, set, transfer and restore every word.
And for a small MCU system like the...
@joepasquariello Fantastic!!! Thank you so much. So then the hypothesis was right, the setup for 16 bits takes a big part of the 150 nsecs.
BTW those times are from the call to the start of the transfer, yes? ...
@joepasquariello So.... my shower thought this morning.... three new calls for the API, set16bit(), specialtransfer() and restore(). What do you think?
The other thought is that what I should do first is time...
@WMXYZ That is interesting.
One issue is the 710-750nsecs for conversion. readout commences on the first clock after the convert pin is low.
So maybe that is enough. Sync with the clock in code, clear convert...
Doctorate in Chemistry and Physics, former faculty in Materials Science at a big ten school, scientist in x-ray diffraction, spectroscopy and instrumentation at a National Lab. Currently working on lasing, lighting and quantum information applications in organic semiconductors.