Skip to content

SmartArduino/WIFI_5.8G

Repository files navigation

purchase address:http://www.esp8266module.com/24g58g-dual-band-wifi-module-internet-of-things-wifi-analysis-smart-home-industrial-grade-5g-module-p2119397.html

WF6000 SDK Development Environment Composition

1.1.0 Firmware Build Environment (Linux OS)

The following information is based on Ubuntu 14.04. After installing Ubuntu on VirtualBox, set shared folders or install Samba for the convenience of Windows and moving files, Firmware Build and Download.

1.1.1 Shared Folder Set

-Select Shared Folder

-Reboot after setting Group to access Shared Folder. [User account: inc]

$ cd /media

$ ls

sf_share

$ sudo usermod –aG vboxsf inc

$ sudo shutdown –r now

-Go to Shared Folder after Rebooting.

$ cd /media/sf_share

$ ls

wf6000_sdk.tar.gz

1.1.2 VirtualBox Network Setting and Samba Installation

a、Set Ubuntu Network
b、Install and Set Samba

$ sudo apt-get install samba samba-common

$ sudo apt-get install system-config-samba cifs-utils

$ cd ~

$ mkdir wf6000

$ sudo vi /etc/samba/smb.conf

[wf6000]

comment = ubuntu samba

read only = no

writable = yes

path = /home/inc/wf6000

guest ok = no

browseable = yes

public = yes

writable = yes

$ sudo smbpasswd -a wf6000

$ sudo /etc/init.d/samba restart

1.1.3 Xtensa toolchain Setting

a、Change Permission of xtensa-IncCacheV7-elf.tar.gz.

$ cd /home/inc

$ sudo tar xfz xtensa-IncCacheV7-elf.tar.gz

$ sudo chmod –R +x xtensa-IncCacheV7-elf

b、2.Append the following Path to ~./bashrc on the last line

$ cd ~

$ vi .bashrc

export PATH=${PATH}:~/xtensa-IncCacheV7-elf/bin

$ source .bashrc

1.2 WF6000 SDK Build

1.2.1 Copy wf6000_sdk.tar.gz to the working location (samba directory), decompress it, and change Permission

$ cp wf6000_sdk.tar.gz /home/inc/wf6000

$ sudo tar xfz wf6000_sdk.tar.gz

$ chmod –R +x wf6000_sdk

1.2.2 Go to examples of wf6000_sdk and proceed with firmware Build. If Build is normal, you can check the below Massage without error.

$ cd ./wf6000_sdk/examples

$ ls

at_command 、 ping 、 sample 、 sniffer、 wdt

gpio_ext_intr 、 pwm 、 scan 、 socket、 wlan_operation

gpio_led_blink 、 rf_tuning 、 security_engine 、 sw_timer

$ cd ping

$ ls

build.sh inc 、 src

$ ./build.sh

======================================= CONFIG

CURR_DIR: /home/kdk/kdk_sb/wf6000/release_sdk/wf6000_sdk/examples/ping

USER_DIR: ping

======================================= CLEAN

rm: cannot remove ‘*.bin’: No such file or directory

sf_loader/Makefile:139: bin_info_cfg: No such file or directory

make: *** No rule to make target `bin_info_cfg'. Stop.

======================================= COMPILE

DRAM code offset : 0x28000

SF code MAX size : 1024 KB

Enable a IRAM OVERLAP in SF_Loader, change a MAX_TEXT_SIZE from 118783 to 131072 bytes

DRAM : starting from 0x3ffa8000 to 0x3ffbffff, length(0x18000)

(rodata+data: 96KB/160KB) + (bss: 144KB) + (mac_buff: 160KB) = 400KB

IRAM : starting from 0x40000000 to 0x40013fff, length(0x14000)

SROM_CODE : srom_text_size : 0x000909f0 hdr->srom_size : 0x244

SROM_RO_DATA : srom_ro_data_size : 0x00000000 hdr->srom_size : 0x244

FW INFO : AB5 version(0x1A651140:V4416) for SF_LOADER (align 0x1000)

DRAM 0x3ffa8000 (0096KB:0160KB), CRC16(0xc6c5)

IRAM 0x40000000 (0080KB:0128KB), CRC16(0xd155)

SROM 0x5004c000 (0580KB:1024KB), CRC16(0xb2ba)

Total sizes : 888832 (0xd9000) Bytes.

4+0 records in

4+0 records out

16384 bytes (16 kB) copied, 0.00353527 s, 4.6 MB/s

217+0 records in

217+0 records out

888832 bytes (889 kB) copied, 0.000856974 s, 1.0 GB/s

======================================= END

$

1.3 Firmware Download

1.Connect the UART0 of WF6000 SFP2501 EVB to PC and run Update Tool.
2.When Update Tool is executed, check Uart Port of the connected PC.
3.Check UART0 Baudrate of the WF6000 SFP2501 EVB in operation and select it.
4.Click FIRMWARE to select the bin file to download

a、FW_xxxx_AA0_SC0_S401N_MC400D_6L3T_6000.bin (Firmware) Select BANK1 or BANK2 to download Firmware

b、FW_xxxx_AA0_SC0_S401N_MC400D_6L3T_6000_ROM.bin (SF_Loader + Firmware) If you select BANK0 to download, SF_Loader is downloaded to BANK0 and Firmware is downloaded to Bank1.

5.Select file and press START to download Firmware.
6.When Firmware is normally downloaded, Firmware transfer successful Massage is displayed on the right side. After this, COM Port is automatically closed.

1.4 MAC Address Read/Write

1.Click Read to read MAC Address.
2.If you change the current MAC Address, click WRITE to change MAC Address after editing MAC Address at the bottom

1.5 Download with SF_Loader of Mask Rom

If WF6000 SFP2501 EVB is not operated and Firmware is not downloaded to DM, select MASK ROM to download Firmware

1.Select Mask Rom
2.Baudrate 115200
3.Click Firmware
4.Select file (FW_xxxx_AA0_SC0_S401N_MC400D_6L3T_6000_ROM.bin)
5.After clicking START, if the following dialog box is displayed, power off WF6000 SFP2501 EVB and then on again, Firmware proceeds when Rebooting is detected.
6.When Firmware transfer successful Massage is displayed, reset to restart WF6000 SFP2501 EVB.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages