Coder Social home page Coder Social logo

wifi_lattice's Introduction

wifi_lattice

microPython1

this project allow the ESP32 to connect to my Wifi network and programming,probing FPGA MACHX02

programming language : micropython for his clean syntax

CAUTION : tested with ESP32 model WROVER and machx02 4000 firmware micropython version = esp32spiram-20220117-v1.18.bin

i use a raspberry pi 3 to create a local network with a static adress (192.168.4.1). I use software raspap.com to set a wifi hotspot access

programming (wifi_prog)

in main.py (line 25 and 26), set your WIFI_SSID, WIFI_PASSWD , default is set raspap.com

  1. download the code in the esp32 flash with esp32tools (folder esp32_jtag)
  2. download wifi_prog.py and your file jed on your raspberry
  3. set command "python3 wifi_prog.py" and follow instructions (caution if the message "esp32 is not in the network" display, try again because sometimes request network response is longer)

wifi_prog

bus esp32_jtag

Pin (TCK) → GPIO (pin 18 esp32)
Pin (TDO) → GPIO (pin 19 esp32)
pin (TDI) → GPIO (pin 23 esp32)
pin (TMS) → GPIO (pin 21 esp32)

benchmark : MACHX02-4000 => programming = 1 mn 38 s

bus esp32_spi

the spi machx02 must be configure in slave device with sysconfig register. check the jed file if pins are configured as slave

Pin CCLK) → GPIO (pin 14 esp32)
Pin (SPISO) → GPIO (pin 12 esp32)
pin (SN) → GPIO (pin 15 esp32)
pin (SISPI) → GPIO (pin 13 esp32)

benchmark : MACHX02 7000 => programming = 50 s lattice diamond : programming ftdi = 40 s

bus esp32_i2c is under construct

probing (wifi_probe)

this tool allow to change the state of a pin for test

in main.py (line 25 and 26), set your WIFI_SSID, WIFI_PASSWD

  1. download the code in the esp32 flash with esp32tools (folder esp32_jtag)
  2. download wifi_probe.py and your file bsm on your raspberry (see example)
  3. set command "python3 wifi_probe.py" and follow instructions

wifi_probe

wifi_lattice's People

Contributors

monk31 avatar

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.