¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: NanoVNA firmvare, compiled by DiSlord #firmware


 

Preliminary alfa update for NanoVNA H4 v0.9.0

As you know H4 have SD Card support (see images), but MicroSD slot not installed on board
I install it (get from old card reader), and implement read/write functional.

SC card Read/Write use:
SPI bus (shared vs LCD display), not decrease SPI bus speed, on test card not big amount errors on this speed
For read operation use CRC16 check, for not lost data
For write operation use multiple repeat on write errors
Supported cards: SD v1, SD v2, MMC (check only SD v2)
SD card slot pin CD not connected (it used for define inserted card in slot), so on every write need check it (it slowdown speed).
SD card use SPI bus for read/write operations (not fast speed, but easy to add), Stm32f303 processor not have hardware support SDIO :(

For filesystem support use last FatFS R0.14, options:
Support Fat16/Fat32 filesystem
Support long filenames
Support RTC use (real time clock)
Support read/write file
For take screenshot need click on Bandwidth text on bottom (see screenshot)
For get and write 1 screenshot need ~2-3 seconds (filesize ~300kB), output format 16bpp *.bmp

If screenshot success on middle screen show
SCREENSHOT
VNA_20200522_86284.bmp
or in some cases (i can`t find how check CRC on write operations)
SCREENSHOT
Fail write
All screenshots put in root directory, filename format:
VNA_year mounth day_number.bmp
For support time in Fat filesystem and filename, implemented RTC clock in VNA
For set clock need use command 'time'
usage: time [y|m|d|h|min|sec] value
Warning! command time not check correct value input
RTC clock not reset while battery in

All logs go to console, so possible see some errors (connect to PC, run Putty or another console programm and made some screenshots)
Warning!!!! For not lost data, not use card vs important data, use formatted on Fat32 filesystem cards.

PS support SD card take 2 days, but now i know how it work :) (read a lot of manuals and datasheet)

Join [email protected] to automatically receive all group messages.