Hello guys,
I'm making available here files to write on ESP8266, this will give you, all functions USBi does, but using WiFi TCP/IP ( Exception will apply, see another topic q-a/115184 )
Before write, set the folowing, also note there are 2 versions, with and without debug, so pay attention.
For ESP8266 Board
CPU Frequency: 160Mhz
Flash Size: 4MB (FS:1MB OTA:~1019kb)
iwIP Variant: v2 Higher Bandwidth
Debug Port: Disabled ( Set port only if you want debug messages, it will slow down all comunications! )
Debug Level: NoAssert-NDEBUG
Wire Connections
ESP8266 D1 port to Adau board i2C SCL port
ESP8266 D2 port to Adau board i2C SDA port
ESP8266 D3 port to Adau board RESET ( ESP8266 needs reset DSP wheen boot/powerup )
ESP8266 D4 port to Adau board SELF BOOT ( Not available on this version )
DO NOT forget, I2C lines requires 2k2 resistor on each pin, if your ADAU board does not have resistors, you must add!
I2C Address is fixed at this moment:
Eeprom: 0x50 => 0xA1
DSP: 0x34 => 0x68
Serial Debug baudrate: 115.200
For ESP32 board ( Beta version, added on 2020/07/03 )
CPU Frequency: 240Mhz
Flash Size: 4MB (FS:1.5MB)
Core debug Level: None
Wire Connections
ESP32 17 port to Adau board i2C SCL port
ESP32 16 port to Adau board i2C SDA port
ESP32 21 port to Adau board RESET ( ESP8266 needs reset DSP wheen boot/powerup )
ESP32 xx port to Adau board SELF BOOT ( Not available on this version )
DO NOT forget, I2C lines requires 2k2 resistor on each pin, if your ADAU board does not have resistors, you must add!
I2C Address is automatic in the folowing interval:
Eeprom: 0xA0 .. 0xAE
DSP: 0x68 .. 0x76
Serial debug baudrate: 250000
ESP8266/ESP32 Network configuration:
Wifi SSID: TCPi
WiFi password: SigmaStudio#*
IP: 192.168.0.1/24
TCP Port: 8086
Persistent connect to an existing SSID ( WiFi Router ), updated on 2020/04/15
After connect to TCPi, use the folowing url: http : //192.168.0.1 / connect ? ssid=ssidname & password=wifipassword
If ( wrong provided ssid or password ) or ( provided ssid is off-line ), TCPi will keep in AP Mode
Firmware: version 1.0.0.4 build 2020/04/16
Firmware: version 1.0.0.4 build 2020/07/03
For ESP8266 user who have trouble with Filesystem Format, build the folowing sketch, then load it on ESP8266 Module before write TCPi Firmware or write firmware using esptool with the folowing:
( Thanks to RichT tip ) esptool.py --port COMx write_flash --flash_size 4MB-c1 0x0 filename.bin
/* Please note, this will work only o ESP8266 Modules with 4MB flash size. Choose board like bellow Board: NodeMCU 1.0(ESP-12E-Module) Cpu Frequency: 160 Mhz Flash Size: 4MB (FS:2MB OTA:~1019KB) ==> Very Important!!! Flash Partitions size. Write this sketch using arduino! This will create partitions on your ESP Module. After see sucessfull message over serial. you may write TCPi firmware using your preffered tool. */ void setup() { Serial.begin(115200); while (!Serial); Serial.write("\r\nThis sketch is working\r\n"); Serial.write("You may now write TCPi firmware using you preferred tool.\r\n"); } void loop() { delay(1); }
I have done some improvents on code, so i will upload this soon, includes:
I2C now can handle all possible address ( DSP AND EEPROM ) in automatic way.
SPI is now possible, but need some person with ADAU1701 with SPI connection for try out ( I do not have that! ), please send private message about that.
Can handle ADAU1452 too, its almost done, left only safeload implementation wich is in progress.
Automatic detection TCP/IP Protocols between ADAU1401/ADAU1701/ADAU1452
I will be updating this post, whenever there are changes.
If you encounter any problems, let me know, sending a private message.
Updateing
[edited by: Rocha at 4:01 AM (GMT 0) on 16 Jul 2020]