Skip to content

monk31/wifi_lattice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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