Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: espressif/ESP8266_NONOS_SDK
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.5
Choose a base ref
...
head repository: espressif/ESP8266_NONOS_SDK
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: release/v3.0.5
Choose a head ref
  • 10 commits
  • 86 files changed
  • 2 contributors

Commits on Oct 20, 2021

  1. feat: Updated at core verison to 55fa931

    - Fixed that CWJAP returned wrong errno
    ustccw committed Oct 20, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8ddf402 View commit details
  2. Merge branch 'feature/update_at_core' into 'release/v3.0.5'

    feat: Updated at core verison to 55fa931
    
    See merge request sdk/ESP8266_NONOS_SDK!297
    xcguang committed Oct 20, 2021
    Copy the full SHA
    c474f0e View commit details
  3. feat: Update at bin to 1.7.5

    xcguang committed Oct 20, 2021
    Copy the full SHA
    655d302 View commit details

Commits on Nov 3, 2021

  1. feat(core): Updated all core version to a5c6adc

    - refactor: upgrade internal compiler, from xt to gcc 5.2.0
    ustccw committed Nov 3, 2021
    Copy the full SHA
    cca44b6 View commit details

Commits on Nov 8, 2021

  1. Merge branch 'feature/update_core_v3.0.5' into 'release/v3.0.5'

    feat(core): Updated all core version to a5c6adc
    
    See merge request sdk/ESP8266_NONOS_SDK!300
    xcguang committed Nov 8, 2021
    Copy the full SHA
    670e231 View commit details

Commits on Nov 18, 2021

  1. Merge branch 'feature/update_at_bin' into 'release/v3.0.5'

    feat: Update at bin to 1.7.5
    
    See merge request sdk/ESP8266_NONOS_SDK!298
    xcguang committed Nov 18, 2021
    Copy the full SHA
    38fda5f View commit details

Commits on Apr 11, 2024

  1. Copy the full SHA
    f640989 View commit details
  2. feat: Add patch_array.h

    xcguang committed Apr 11, 2024
    Copy the full SHA
    12aadf2 View commit details
  3. feat: Update libdriver.a

    xcguang committed Apr 11, 2024
    Copy the full SHA
    9a72362 View commit details
  4. Merge branch 'feature/add_th25q16_patch_for_v3.0.5' into 'release/v3.…

    …0.5'
    
    feat: Add th25q16 patch and remove IoT_Demo
    
    See merge request sdk/ESP8266_NONOS_SDK!315
    xcguang committed Apr 11, 2024
    Copy the full SHA
    6df25bd View commit details
Showing with 2,150 additions and 6,932 deletions.
  1. +153 −11 .gitlab-ci.yml
  2. +6 −3 Makefile
  3. +12 −12 VERSION
  4. BIN bin/at/1024+1024/user1.2048.new.5.bin
  5. BIN bin/at/1024+1024/user2.2048.new.5.bin
  6. BIN bin/at/512+512/user1.1024.new.2.bin
  7. BIN bin/at/512+512/user2.1024.new.2.bin
  8. BIN bin/at_sdio/1024+1024/user1.2048.new.5.bin
  9. BIN bin/at_sdio/1024+1024/user2.2048.new.5.bin
  10. +1 −1 driver_lib/Makefile
  11. +56 −0 driver_lib/driver/system_patch_apply.c
  12. +0 −44 examples/IoT_Demo/driver/Makefile
  13. +0 −330 examples/IoT_Demo/driver/i2c_master.c
  14. +0 −177 examples/IoT_Demo/driver/key.c
  15. +0 −147 examples/IoT_Demo/gen_misc.bat
  16. +0 −163 examples/IoT_Demo/gen_misc.sh
  17. +0 −83 examples/IoT_Demo/include/driver/i2c_master.h
  18. +0 −51 examples/IoT_Demo/include/driver/key.h
  19. +0 −60 examples/IoT_Demo/include/ssl/cert.h
  20. +0 −54 examples/IoT_Demo/include/ssl/private_key.h
  21. +0 −88 examples/IoT_Demo/include/user_config.h
  22. +0 −59 examples/IoT_Demo/include/user_esp_platform.h
  23. +0 −30 examples/IoT_Demo/include/user_esp_platform_timer.h
  24. +0 −67 examples/IoT_Demo/include/user_iot_version.h
  25. +0 −41 examples/IoT_Demo/include/user_json.h
  26. +0 −84 examples/IoT_Demo/include/user_light.h
  27. +0 −57 examples/IoT_Demo/include/user_light_adj.h
  28. +0 −63 examples/IoT_Demo/include/user_plug.h
  29. +0 −56 examples/IoT_Demo/include/user_sensor.h
  30. +0 −69 examples/IoT_Demo/include/user_webserver.h
  31. +0 −134 examples/IoT_Demo/user/user_devicefind.c
  32. +0 −1,402 examples/IoT_Demo/user/user_esp_platform.c
  33. +0 −359 examples/IoT_Demo/user/user_esp_platform_timer.c
  34. +0 −177 examples/IoT_Demo/user/user_json.c
  35. +0 −158 examples/IoT_Demo/user/user_light.c
  36. +0 −356 examples/IoT_Demo/user/user_light_adj.c
  37. +0 −138 examples/IoT_Demo/user/user_main.c
  38. +0 −175 examples/IoT_Demo/user/user_plug.c
  39. +0 −244 examples/IoT_Demo/user/user_sensor.c
  40. +0 −1,807 examples/IoT_Demo/user/user_webserver.c
  41. +2 −1 examples/at/Makefile
  42. +2 −1 examples/at_espconn/Makefile
  43. +2 −1 examples/at_nano/Makefile
  44. +2 −1 examples/at_sdio/Makefile
  45. +1 −1 examples/esp_mqtt_proj/Makefile
  46. +125 −127 examples/{IoT_Demo → gen_patch_bin}/Makefile
  47. +27 −0 examples/gen_patch_bin/gen_bin.sh
  48. +51 −0 examples/gen_patch_bin/gen_misc.sh
  49. +36 −0 examples/gen_patch_bin/gen_patch_bin.py
  50. +2 −4 examples/{IoT_Demo/include/user_devicefind.h → gen_patch_bin/include/user_config.h}
  51. +150 −0 examples/gen_patch_bin/ld/patch.ld
  52. +211 −0 examples/gen_patch_bin/tools/gen_appbin_user.py
  53. +46 −45 examples/{IoT_Demo → gen_patch_bin}/user/Makefile
  54. +927 −0 examples/gen_patch_bin/user/th25q16hb.c
  55. +1 −1 examples/peripheral_test/Makefile
  56. +2 −1 examples/simple_pair/Makefile
  57. +2 −1 examples/smart_config/Makefile
  58. +2 −1 examples/wpa2_enterprise/Makefile
  59. +3 −2 examples/wps/Makefile
  60. +1 −1 examples/wps/driver/Makefile
  61. +282 −0 include/patch_array.h
  62. +1 −1 ld/eagle.app.v6.ld
  63. +1 −1 ld/eagle.app.v6.new.1024.app1.ld
  64. +1 −1 ld/eagle.app.v6.new.1024.app2.ld
  65. +1 −1 ld/eagle.app.v6.new.2048.ld
  66. +1 −1 ld/eagle.app.v6.new.512.app1.ld
  67. +1 −1 ld/eagle.app.v6.new.512.app2.ld
  68. +1 −1 ld/eagle.app.v6.old.1024.app1.ld
  69. +1 −1 ld/eagle.app.v6.old.1024.app2.ld
  70. +1 −1 ld/eagle.app.v6.old.512.app1.ld
  71. +1 −1 ld/eagle.app.v6.old.512.app2.ld
  72. +1 −0 ld/eagle.rom.addr.v6.ld
  73. BIN lib/libat.a
  74. BIN lib/libcrypto.a
  75. BIN lib/libdriver.a
  76. BIN lib/libespnow.a
  77. BIN lib/libmain.a
  78. BIN lib/libnet80211.a
  79. BIN lib/libpp.a
  80. BIN lib/libssl.a
  81. BIN lib/libupgrade.a
  82. BIN lib/libwpa.a
  83. BIN lib/libwpa2.a
  84. BIN lib/libwps.a
  85. +1 −1 third_party/Makefile
  86. +33 −33 tools/gen_appbin.py
164 changes: 153 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -21,32 +21,174 @@ stages:
- echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config


build_ssc:
# build_ssc:
# <<: *build_template
# artifacts:
# paths:
# - ./SSC/ssc_bin
# expire_in: 6 mos
# script:
# - git clone $GITLAB_SSH_SERVER/yinling/SSC.git
# - cd SSC
# # ssc master branch does not support nonos any more, now checkout to the reserved branch
# - git checkout ${SSC_DEFAULT_BRANCH}
# - chmod +x gen_misc_non_os.sh
# - ./gen_misc_non_os.sh

build_at:
<<: *build_template
artifacts:
paths:
- ./SSC/ssc_bin
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- git clone $GITLAB_SSH_SERVER/yinling/SSC.git
- cd SSC
# try checkout same branch
- git checkout ${CI_BUILD_REF_NAME} || git checkout ${SSC_DEFAULT_BRANCH}
- chmod +x gen_misc_non_os.sh
- ./gen_misc_non_os.sh
- cp -rf examples/at at
- cd at
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_at:
build_at_espconn:
<<: *build_template
artifacts:
paths:
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- cp -rf examples/at at
- cd at
- cp -rf examples/at_espconn at_espconn
- cd at_espconn
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_at_nano:
<<: *build_template
artifacts:
paths:
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- cp -rf examples/at_nano at_nano
- cd at_nano
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_at_sdio:
<<: *build_template
artifacts:
paths:
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- cp -rf examples/at_sdio at_sdio
- cd at_sdio
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_esp_mqtt_proj:
<<: *build_template
artifacts:
paths:
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- cp -rf examples/esp_mqtt_proj esp_mqtt_proj
- cd esp_mqtt_proj
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

# build_IoT_Demo:
# <<: *build_template
# artifacts:
# paths:
# - ./bin/upgrade
# - ./bin/*.bin
# expire_in: 6 mos
# script:
# - cp -rf examples/IoT_Demo IoT_Demo
# - cd IoT_Demo
# - make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_peripheral_test:
<<: *build_template
artifacts:
paths:
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- cp -rf examples/peripheral_test peripheral_test
- cd peripheral_test
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_simple_pair:
<<: *build_template
artifacts:
paths:
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- cp -rf examples/simple_pair simple_pair
- cd simple_pair
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_smart_config:
<<: *build_template
artifacts:
paths:
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- cp -rf examples/smart_config smart_config
- cd smart_config
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_wpa2_enterprise:
<<: *build_template
artifacts:
paths:
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- cp -rf examples/wpa2_enterprise wpa2_enterprise
- cd wpa2_enterprise
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_wps:
<<: *build_template
artifacts:
paths:
- ./bin/upgrade
- ./bin/*.bin
expire_in: 6 mos
script:
- cp -rf examples/wps wps
- cd wps
- make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=5

build_gen_patch_bin:
<<: *build_template
artifacts:
paths:
- ./bin/*.h
expire_in: 6 mos
script:
- cp -rf examples/gen_patch_bin gen_patch_bin
- cd gen_patch_bin
- python2 gen_patch_bin.py
- cp patch_array.h ../bin/

build_driver_lib:
<<: *build_template
artifacts:
paths:
- ./lib
expire_in: 6 mos
script:
- cd driver_lib
- ./make_lib.sh driver

push_master_to_github:
stage: deploy
only:
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ else
OBJDUMP = xt-objdump
endif

PYTHON?=python2
BOOT?=none
APP?=0
SPI_SPEED?=40
@@ -209,6 +210,7 @@ OBINS := $(GEN_BINS:%=$(BINODIR)/%)

CCFLAGS += \
-g \
-Os \
-Wpointer-arith \
-Wundef \
-Wl,-EL \
@@ -219,6 +221,7 @@ CCFLAGS += \
-ffunction-sections \
-fdata-sections \
-fno-builtin-printf \
-fno-jump-tables \
-fno-guess-branch-probability \
-freorder-blocks-and-partition \
-fno-cse-follow-jumps
@@ -279,7 +282,7 @@ endif
@echo "!!!"

ifeq ($(app), 0)
@python ../tools/gen_appbin.py $< 0 $(mode) $(freqdiv) $(size_map) $(app)
@$(PYTHON) ../tools/gen_appbin.py $< 0 $(mode) $(freqdiv) $(size_map) $(app)
@mv eagle.app.flash.bin ../bin/eagle.flash.bin
@mv eagle.app.v6.irom0text.bin ../bin/eagle.irom0text.bin
@rm eagle.app.v6.*
@@ -289,10 +292,10 @@ ifeq ($(app), 0)
@echo "eagle.irom0text.bin---->0x10000"
else
ifneq ($(boot), new)
@python ../tools/gen_appbin.py $< 1 $(mode) $(freqdiv) $(size_map) $(app)
@$(PYTHON) ../tools/gen_appbin.py $< 1 $(mode) $(freqdiv) $(size_map) $(app)
@echo "Support boot_v1.1 and +"
else
@python ../tools/gen_appbin.py $< 2 $(mode) $(freqdiv) $(size_map) $(app)
@$(PYTHON) ../tools/gen_appbin.py $< 2 $(mode) $(freqdiv) $(size_map) $(app)

ifeq ($(size_map), 6)
@echo "Support boot_v1.4 and +"
24 changes: 12 additions & 12 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
gwen:
at : b29dcd3
crypto : b29dcd3
espnow : b29dcd3
main : b29dcd3
net80211 : b29dcd3
pp : b29dcd3
ssl : b29dcd3
upgrade : b29dcd3
wpa : b29dcd3
wpa2 : b29dcd3
wps : b29dcd3
at : a5c6adc
crypto : a5c6adc
espnow : a5c6adc
main : a5c6adc
net80211 : a5c6adc
pp : a5c6adc
ssl : a5c6adc
upgrade : a5c6adc
wpa : a5c6adc
wpa2 : a5c6adc
wps : a5c6adc

phy:
phy : 1156_0

gitlab:
driver : 5a2a54b4
driver : 12aadf20
json : f55d5fee
lwip : 5623f48f
mbedtls : 82b93fe5
Binary file modified bin/at/1024+1024/user1.2048.new.5.bin
Binary file not shown.
Binary file modified bin/at/1024+1024/user2.2048.new.5.bin
Binary file not shown.
Binary file modified bin/at/512+512/user1.1024.new.2.bin
Binary file not shown.
Binary file modified bin/at/512+512/user2.1024.new.2.bin
Binary file not shown.
Binary file modified bin/at_sdio/1024+1024/user1.2048.new.5.bin
Binary file not shown.
Binary file modified bin/at_sdio/1024+1024/user2.2048.new.5.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion driver_lib/Makefile
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ LINKFLAGS_eagle.app.v6 = \
-nostdlib \
-T$(LD_FILE) \
-Wl,--no-check-sections \
-u call_user_start \
-u call_user_start1 \
-Wl,-static \
-Wl,--start-group \
-lc \
56 changes: 56 additions & 0 deletions driver_lib/driver/system_patch_apply.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#include "osapi.h"
#include "patch_array.h"
#include "mem.h"
#include "eagle_soc.h"

#if 0
typedef int (*__ets_printf_t)(const char *fmt, ...);
#define ROM_PRINTF(_fmt, ...) ((__ets_printf_t)(0x400024cc))(_fmt, ##__VA_ARGS__)
#else
#define ROM_PRINTF(_fmt, ...) ets_printf(_fmt, ##__VA_ARGS__)
#endif

extern void call_user_start(void);
extern char _heap_start;

int patch_apply(void)
{
uint32_t flash_id;
int ret = __INT_MAX__;

WRITE_PERI_REG(0x60000240, 0);
WRITE_PERI_REG(0x60000200, 0x01 << 28);
while(READ_PERI_REG(0x60000200) != 0);
flash_id = READ_PERI_REG(0x60000240) & 0xffffff;
ROM_PRINTF("flash_id=0x%x\r\n", flash_id);
if (flash_id == 0x1560eb) {
ROM_PRINTF("apply...\r\n");
uint32 len = 0;
uint8* data = patch_data + 8;
uint32* addr = 0;
uint8 loop = 0;

ROM_PRINTF("data %p %d...\r\n", data, patch_data[1]);
for (loop = 0; loop < patch_data[1] && (data - patch_data < sizeof(patch_data) - 8); loop++) {
addr = data[0] | (data[1] << 8) | (data[2] << 16) | (data[3]<<24);
len = data[4] | (data[5] << 8) | (data[6] << 16) | (data[7]<<24);
data += 8;
ets_memcpy(addr, data, len);
data += len;
ROM_PRINTF("addr=0x%x, len=%d\r\n",addr, len);
}
int (*apply_patch)(uint8_t *buffer1024);
apply_patch = patch_data[4] | (patch_data[5] << 8) | (patch_data[6] << 16) | (patch_data[7]<<24);
ROM_PRINTF("apply_patch=0x%08x...\r\n", *(uint32*)apply_patch);
ret = apply_patch(&_heap_start);
ROM_PRINTF("apply done...\r\n");
}
return ret;
}

void call_user_start1(void)
{
int32 ret = patch_apply();
ROM_PRINTF("ret=%d\r\n", ret);
call_user_start();
}
44 changes: 0 additions & 44 deletions examples/IoT_Demo/driver/Makefile

This file was deleted.

Loading