Giter Club home page Giter Club logo

nanovna-f303's Introduction

NanoVNA - Very tiny handheld Vector Network Analyzer

About

This is my attemp to port the STM32F303CCT6 to this popular NanoVNA project. The benefits are larger SRAM 40KB from 16KB, larger flash 256KB from 128KB, faster CPU clock 72MHz from 48MHz, and floating point accelerator. For detail information, please refer to the original project page by edy555.

https://github.com/ttrftech/NanoVNA

Preparation

Please refer to original NanoVNA page for detail preparation information.

The current test board has the MCU STM32F072CBT6 replaced by STM32F303CCT6. Also, the USB_DP pin has a 1.5K ohm pull up resistor connected to VDD (3.3V), and the USB_DP (PA12) is shorted with PA10. AT power-up, PA10 will pull down USB_DP then release to inform host a device is plugged in. Another way is to connect USB_DP to PA10 directly and use PA10 to control USB connect and disconnect.

Because edy555's ChibiOS/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c is not updated with ADCv3 protocol, I modified and name it as hal_adc_lld.c.fixed. To put the file at the correct location, do the following. I will find a nicer way to handle it later.

$ cp hal_adc_lld.c.fixed ./ChibiOS/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.c

Compile

To compile for STM32F303CCT6, add TARGET=F303

$ make TARGET=F303

Since F303 doesn't support crystal-less DFU, a separate ST_Link is required to flash the firmware. Users need to solder the pins on the NanoVNA SWD port.

To flash firmware at Linux, refer to

https://github.com/texane/stlink

The flash firmware command at Linux(Ubuntu) is

$ st-flash write build/ch.bin 0x8000000

At Ubuntu, the shell can be accessed via

$ sudo screen /dev/ttyACM0 57600

Hardware mod candidates:

  • Add D2 Schottky diode to measure the battery voltage. Easy.
  • Add another 220nF cap parallel to C38 to solve the tlv320aic3204 fail-to-start issue. Easy.
  • Replace STM32F072CBT6 to STM32F303CCT6. Add 1.5K resistor between VDD and USB_DP. Short USB_DP (PA12) and PA10. Harder.
  • Add 8MHz chrystal to PCB. Better with PCB revision.

Status

Most of functions are working, except DFU via pull-down menu.

Credit

Thanks @edy555 for creating this tiny feature rich gadget. edy555 is also working on the F303 version of NanoVNA plus other new features, probably named NanoVNA-V2.

Thanks @hugen79 for providing the hardware for my porting work and debugging support.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.