Re: SD FAT32: Write failed with err 28 (no space left on device)

2020-09-19 Thread Bob Feretich
Just a thought On M7 devices, the DMA buffers need to be cache line aligned. Nuttx has special malloc functions configurable for FAT buffers. Also, I'm not sure the cache invalidate code was tested well for store-into cache mode. Store-through was known to be working. -Bob On Fri, Sep 18, 2

Re: SD FAT32: Write failed with err 28 (no space left on device)

2020-09-19 Thread Bob Feretich
. Regards, Bob On 9/18/2020 8:54 AM, Bob Feretich wrote: Just a thought On M7 devices, the DMA buffers need to be cache line aligned. Nuttx has special malloc functions configurable for FAT buffers. Also, I'm  not sure the cache invalidate code was tested well for store-into cache

Re: ADXL372 sensor test fail

2020-12-17 Thread Bob Feretich
To debug this type of problem you need to be able to observe the activity on the SPI bus. A 4-channel scope would be ideal, but you can do it with a 2-channel scope. Most likely, you are not routing your "SPI chip select" to the appropriate GPIO pin. That could be caused by several factors.

Using nsh application return code in a script

2021-02-14 Thread Bob Feretich
I have tried to write a nsh script that... * Runs an application. * Examines the application's return code. * Then runs one of several applications based upon the value of the return code. The application return code seems to have an effect on $?, if I set the return code to 0 or 1, but if I set