Git Product home page Git Product logo

Comments (24)

revk avatar revk commented on July 17, 2024

Amazon are being weird, I agree. They have shipped to NZ for example!

I have not seen that error before. I suspect you need to do some make menuconfig to try different ESP32 targets, and make flash to find a combination that works.

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

Ah yes.. here is where I am out of my depth. I have followed the Standard Toolchain Setup https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html and can compile and flash the hello_world project, but when I try to make yours I hit this error :

iancooper@m101b ESP32-Daikin % make flash
Makefile:27: mariadb/mysql not installed, needed for tools
idf.py flash

as the first error.

I've installed mariadb with brew install mariadb, but beyond this I don't know the way forward in order to get to the make menuconfig which is why I was trying to flash your pre-built binary. I have not been able to find any info relating to getting mariadb/mysql installed for use with the esp-idf. Maybe the path of least resistance would be to get the same module as yours, I think this would work ? ESP32-PICO-KIT https://au.mouser.com/ProductDetail/Espressif-Systems/ESP32-PICO-KIT?qs=MLItCLRbWsyoLrlknFRqcQ%3D%3D

Thanks for your help,

from esp32-faikin.

revk avatar revk commented on July 17, 2024

Makefile:27: mariadb/mysql not installed, needed for tools is a warning, ignore it - you are not making tools.

That may be a single processor module. You can build for that, but the default make pico is for dual (ESP32-PICO-MINO-02)

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

OK, getting a little closer perhaps. Changed the make menuconfig to not have signed code to get past a .pem error, changed the > Component config > Hardware Settings > Chip revision to Rev 1.0, and Make wroom. I am now getting these errors :

/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c: In function 'ip_event_handler':
/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c:1258:13: error: implicit declaration of function 'sntp_stop'; did you mean 'ap_stop'? [-Werror=implicit-function-declaration]
1258 | sntp_stop ();
| ^~~~~~~~~
| ap_stop
/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c:1259:13: warning: 'sntp_init' is deprecated: use esp_sntp_init() instead [-Wdeprecated-declarations]
1259 | sntp_init ();
| ^~~~~~~~~
In file included from /Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c:26:
/Users/iancooper/esp/esp-idf/components/lwip/include/apps/esp_sntp.h:255:6: note: declared here
255 | void sntp_init(void)
| ^~~~~~~~~
/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c: In function 'task':
/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c:1562:69: error: the comparison will always evaluate as 'true' for the address of 'addr' will never be NULL [-Werror=address]
1562 | if (!esp_netif_get_ip6_global (sta_netif, &ip) && ip.addr)
| ^~
In file included from /Users/iancooper/esp/esp-idf/components/esp_netif/include/esp_netif.h:12,
from /Users/iancooper/esp/esp-idf/components/esp_wifi/include/esp_wifi_default.h:10,
from /Users/iancooper/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:58,
from /Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/include/revk.h:12,
from /Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c:12:
/Users/iancooper/esp/esp-idf/components/esp_netif/include/esp_netif_ip_addr.h:103:14: note: 'addr' declared here
103 | uint32_t addr[4]; /*!< IPv6 address */
| ^~~~
/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c: In function 'revk_boot':
/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c:1840:4: warning: 'sntp_setoperatingmode' is deprecated: use esp_sntp_setoperatingmode() instead [-Wdeprecated-declarations]
1840 | sntp_setoperatingmode (SNTP_OPMODE_POLL);
| ^~~~~~~~~~~~~~~~~~~~~
/Users/iancooper/esp/esp-idf/components/lwip/include/apps/esp_sntp.h:235:6: note: declared here
235 | void sntp_setoperatingmode(u8_t operating_mode)
| ^~~~~~~~~~~~~~~~~~~~~
/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c:1843:4: warning: 'sntp_setservername' is deprecated: use esp_sntp_setservername() instead [-Wdeprecated-declarations]
1843 | sntp_setservername (0, ntphost);
| ^~~~~~~~~~~~~~~~~~
/Users/iancooper/esp/esp-idf/components/lwip/include/apps/esp_sntp.h:249:6: note: declared here
249 | void sntp_setservername(u8_t idx, const char server)
| ^~~~~~~~~~~~~~~~~~
/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c: In function 'revk_web_config':
/Users/iancooper/esp/ESP32-Faikin/components/ESP32-RevK/revk.c:2371:57: error: the comparison will always evaluate as 'true' for the address of 'addr' will never be NULL [-Werror=address]
2371 | if (!esp_netif_get_ip6_global (sta_netif, &ip) && ip.addr)
| ^~
/Users/iancooper/esp/esp-idf/components/esp_netif/include/esp_netif_ip_addr.h:103:14: note: 'addr' declared here
103 | uint32_t addr[4]; /
!< IPv6 address */
| ^~~~
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.

Any thoughts ? Sorry, esp-idf newbie, obviously :-)

Thanks,

from esp32-faikin.

revk avatar revk commented on July 17, 2024

Which version of ESP IDF?
I'm building on 5.0.1

I'll look in to moving to 5.1 in due course.

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

Yes 5.1 I think, I pulled the latest a few days ago. I'll give it a go with 5.0.1

Thanks,

from esp32-faikin.

revk avatar revk commented on July 17, 2024

I'll assume that works for now - I have to sort ESP IDF 5.1 soon anyway.

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

Yes, I have just managed to make it work with v5.0.1, and changed the minimum hardware to V1.0 to suit my ESP-32 vroom module.

Thanks for your help!

One thing I did notice is that once it came up, the set button was missing in the captive portal window when accessed from my MBP M1 running OS 13.4.1. It was fine from my phone.

from esp32-faikin.

revk avatar revk commented on July 17, 2024

Any way to see any error logs. It uses web sockets which usually work.

It's an area I may be able to improve anyway. I'm planning to tidy that up. I have a non web socket build. I may be able to do that and just used the web sockets for the WiFi list.

from esp32-faikin.

revk avatar revk commented on July 17, 2024

I may be able to add a V1 to my standard builds for you so it can OTA update for my changes. Can you confirm exactly what you changed?

You'll see I customised the bin filename to key variants.

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

Can you confirm exactly what you changed?

I think so, it would in the file sdkconfig ? Should I zip and post here ? OTA update would be great, thanks.

Any way to see any error logs.

From running idf.py -p <PORT> monitor ? or is there another place it is logged ?

from esp32-faikin.

revk avatar revk commented on July 17, 2024

diff sdkconfig to sdkconfig.defaults should show.

Logs: I meant from browser - is it upset over web sockets maybe?

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

I'll have a hunt around for logs for the Captive portal.

Not sure I've done this correctly :


iancooper@m101b ESP32-Faikin % diff sdkconfig sdkconfig.defaults
8c8
< CONFIG_SOC_CAPS_ECO_VER_MAX=301
---
> CONFIG_SOC_CAPS_ECO_VER_MAX=3
239a240,242
> CONFIG_SECURE_SIGNED_ON_UPDATE=y
> CONFIG_SECURE_SIGNED_APPS=y
> CONFIG_SECURE_BOOT_V2_RSA_SUPPORTED=y
241c244,249
< # CONFIG_SECURE_SIGNED_APPS_NO_SECURE_BOOT is not set
---
> CONFIG_SECURE_BOOT_V2_PREFERRED=y
> CONFIG_SECURE_SIGNED_APPS_NO_SECURE_BOOT=y
> CONFIG_SECURE_SIGNED_APPS_ECDSA_SCHEME=y
> # CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME is not set
> # CONFIG_SECURE_SIGNED_ON_BOOT_NO_SECURE_BOOT is not set
> CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT=y
242a251,252
> CONFIG_SECURE_BOOT_BUILD_SIGNED_BINARIES=y
> CONFIG_SECURE_BOOT_SIGNING_KEY="secure_boot_signing_key.pem"
243a254,259
> 
> #
> # Potentially insecure options
> #
> # CONFIG_SECURE_BOOT_ALLOW_SHORT_APP_PARTITION is not set
> # end of Potentially insecure options
279,280c295,296
< CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
< # CONFIG_ESPTOOLPY_FLASHSIZE_8MB is not set
---
> # CONFIG_ESPTOOLPY_FLASHSIZE_4MB is not set
> CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
285c301
< CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
---
> CONFIG_ESPTOOLPY_FLASHSIZE="8MB"
303,304c319,320
< CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="components/ESP32-RevK/partitions_4m.csv"
< CONFIG_PARTITION_TABLE_FILENAME="components/ESP32-RevK/partitions_4m.csv"
---
> CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="components/ESP32-RevK/partitions_8m.csv"
> CONFIG_PARTITION_TABLE_FILENAME="components/ESP32-RevK/partitions_8m.csv"
352c368,477
< # CONFIG_BT_ENABLED is not set
---
> CONFIG_BT_ENABLED=y
> # CONFIG_BT_BLUEDROID_ENABLED is not set
> CONFIG_BT_NIMBLE_ENABLED=y
> # CONFIG_BT_CONTROLLER_ONLY is not set
> CONFIG_BT_CONTROLLER_ENABLED=y
> # CONFIG_BT_CONTROLLER_DISABLED is not set
> 
> #
> # NimBLE Options
> #
> CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_INTERNAL=y
> # CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL is not set
> # CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_DEFAULT is not set
> # CONFIG_BT_NIMBLE_LOG_LEVEL_NONE is not set
> # CONFIG_BT_NIMBLE_LOG_LEVEL_ERROR is not set
> CONFIG_BT_NIMBLE_LOG_LEVEL_WARNING=y
> # CONFIG_BT_NIMBLE_LOG_LEVEL_INFO is not set
> # CONFIG_BT_NIMBLE_LOG_LEVEL_DEBUG is not set
> CONFIG_BT_NIMBLE_LOG_LEVEL=2
> CONFIG_BT_NIMBLE_MAX_CONNECTIONS=1
> CONFIG_BT_NIMBLE_MAX_BONDS=3
> CONFIG_BT_NIMBLE_MAX_CCCDS=8
> CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM=0
> CONFIG_BT_NIMBLE_PINNED_TO_CORE_0=y
> # CONFIG_BT_NIMBLE_PINNED_TO_CORE_1 is not set
> CONFIG_BT_NIMBLE_PINNED_TO_CORE=0
> CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE=4096
> # CONFIG_BT_NIMBLE_ROLE_CENTRAL is not set
> # CONFIG_BT_NIMBLE_ROLE_PERIPHERAL is not set
> # CONFIG_BT_NIMBLE_ROLE_BROADCASTER is not set
> CONFIG_BT_NIMBLE_ROLE_OBSERVER=y
> # CONFIG_BT_NIMBLE_NVS_PERSIST is not set
> # CONFIG_BT_NIMBLE_SECURITY_ENABLE is not set
> # CONFIG_BT_NIMBLE_DEBUG is not set
> CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME="nimble"
> CONFIG_BT_NIMBLE_GAP_DEVICE_NAME_MAX_LEN=31
> CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU=256
> CONFIG_BT_NIMBLE_SVC_GAP_APPEARANCE=0
> 
> #
> # Memory Settings
> #
> CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT=12
> CONFIG_BT_NIMBLE_MSYS_1_BLOCK_SIZE=256
> CONFIG_BT_NIMBLE_MSYS_2_BLOCK_COUNT=24
> CONFIG_BT_NIMBLE_MSYS_2_BLOCK_SIZE=320
> CONFIG_BT_NIMBLE_ACL_BUF_COUNT=24
> CONFIG_BT_NIMBLE_ACL_BUF_SIZE=255
> CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE=70
> CONFIG_BT_NIMBLE_HCI_EVT_HI_BUF_COUNT=30
> CONFIG_BT_NIMBLE_HCI_EVT_LO_BUF_COUNT=8
> # end of Memory Settings
> 
> CONFIG_BT_NIMBLE_GATT_MAX_PROCS=4
> # CONFIG_BT_NIMBLE_HS_FLOW_CTRL is not set
> CONFIG_BT_NIMBLE_RPA_TIMEOUT=900
> # CONFIG_BT_NIMBLE_MESH is not set
> # CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS is not set
> CONFIG_BT_NIMBLE_HS_STOP_TIMEOUT_MS=2000
> # CONFIG_BT_NIMBLE_ENABLE_CONN_REATTEMPT is not set
> # CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT is not set
> # CONFIG_BT_NIMBLE_COEX_PHY_CODED_TX_RX_TLIM_EN is not set
> CONFIG_BT_NIMBLE_COEX_PHY_CODED_TX_RX_TLIM_DIS=y
> # CONFIG_BT_NIMBLE_52_FEATURE_SUPPORT is not set
> CONFIG_BT_NIMBLE_COEX_PHY_CODED_TX_RX_TLIM_EFF=0
> CONFIG_BT_NIMBLE_WHITELIST_SIZE=12
> # CONFIG_BT_NIMBLE_TEST_THROUGHPUT_TEST is not set
> # CONFIG_BT_NIMBLE_BLUFI_ENABLE is not set
> CONFIG_BT_NIMBLE_USE_ESP_TIMER=y
> CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE=y
> # end of NimBLE Options
> 
> #
> # Controller Options
> #
> CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
> # CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY is not set
> # CONFIG_BTDM_CTRL_MODE_BTDM is not set
> CONFIG_BTDM_CTRL_BLE_MAX_CONN=3
> CONFIG_BTDM_CTRL_BR_EDR_SCO_DATA_PATH_EFF=0
> CONFIG_BTDM_CTRL_PCM_ROLE_EFF=0
> CONFIG_BTDM_CTRL_PCM_POLAR_EFF=0
> CONFIG_BTDM_CTRL_BLE_MAX_CONN_EFF=3
> CONFIG_BTDM_CTRL_BR_EDR_MAX_ACL_CONN_EFF=0
> CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN_EFF=0
> CONFIG_BTDM_CTRL_PINNED_TO_CORE_0=y
> # CONFIG_BTDM_CTRL_PINNED_TO_CORE_1 is not set
> CONFIG_BTDM_CTRL_PINNED_TO_CORE=0
> CONFIG_BTDM_CTRL_HCI_MODE_VHCI=y
> # CONFIG_BTDM_CTRL_HCI_MODE_UART_H4 is not set
> 
> #
> # MODEM SLEEP Options
> #
> CONFIG_BTDM_CTRL_MODEM_SLEEP=y
> CONFIG_BTDM_CTRL_MODEM_SLEEP_MODE_ORIG=y
> # CONFIG_BTDM_CTRL_MODEM_SLEEP_MODE_EVED is not set
> CONFIG_BTDM_CTRL_LPCLK_SEL_MAIN_XTAL=y
> # end of MODEM SLEEP Options
> 
> CONFIG_BTDM_BLE_DEFAULT_SCA_250PPM=y
> CONFIG_BTDM_BLE_SLEEP_CLOCK_ACCURACY_INDEX_EFF=1
> # CONFIG_BTDM_BLE_SCAN_DUPL is not set
> # CONFIG_BTDM_CTRL_FULL_SCAN_SUPPORTED is not set
> CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP=y
> CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_NUM=100
> CONFIG_BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD=20
> CONFIG_BTDM_RESERVE_DRAM=0xdb5c
> # CONFIG_BTDM_CTRL_HLI is not set
> # end of Controller Options
354a480,481
> # CONFIG_BLE_MESH is not set
> 
575,594d701
< # Chip revision
< #
< # CONFIG_ESP32_REV_MIN_0 is not set
< CONFIG_ESP32_REV_MIN_1=y
< # CONFIG_ESP32_REV_MIN_1_1 is not set
< # CONFIG_ESP32_REV_MIN_2 is not set
< # CONFIG_ESP32_REV_MIN_3 is not set
< # CONFIG_ESP32_REV_MIN_3_1 is not set
< CONFIG_ESP32_REV_MIN=1
< CONFIG_ESP32_REV_MIN_FULL=100
< CONFIG_ESP_REV_MIN_FULL=100
< 
< #
< # Maximum Supported ESP32 Revision (Rev v3.99)
< #
< CONFIG_ESP32_REV_MAX_FULL=399
< CONFIG_ESP_REV_MAX_FULL=399
< # end of Chip revision
< 
< #
609d715
< # CONFIG_ESP_SLEEP_POWER_DOWN_FLASH is not set
611a718
> CONFIG_ESP_SLEEP_PSRAM_LEAKAGE_WORKAROUND=y
612a720
> # CONFIG_ESP_SLEEP_MSPI_NEED_ALL_IO_PU is not set
639a748,753
> # CONFIG_ESP32_REV_MIN_0 is not set
> # CONFIG_ESP32_REV_MIN_1 is not set
> # CONFIG_ESP32_REV_MIN_2 is not set
> CONFIG_ESP32_REV_MIN_3=y
> CONFIG_ESP32_REV_MIN=3
> 
696c810,866
< # CONFIG_SPIRAM is not set
---
> CONFIG_SPIRAM=y
> 
> #
> # SPI RAM config
> #
> CONFIG_SPIRAM_MODE_QUAD=y
> CONFIG_SPIRAM_TYPE_AUTO=y
> # CONFIG_SPIRAM_TYPE_ESPPSRAM16 is not set
> # CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set
> # CONFIG_SPIRAM_TYPE_ESPPSRAM64 is not set
> CONFIG_SPIRAM_SPEED_40M=y
> CONFIG_SPIRAM_SPEED=40
> CONFIG_SPIRAM_BOOT_INIT=y
> # CONFIG_SPIRAM_IGNORE_NOTFOUND is not set
> # CONFIG_SPIRAM_USE_MEMMAP is not set
> # CONFIG_SPIRAM_USE_CAPS_ALLOC is not set
> CONFIG_SPIRAM_USE_MALLOC=y
> CONFIG_SPIRAM_MEMTEST=y
> CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
> # CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP is not set
> CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768
> # CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY is not set
> # CONFIG_SPIRAM_ALLOW_NOINIT_SEG_EXTERNAL_MEMORY is not set
> 
> #
> # SPIRAM cache workaround debugging
> #
> # end of SPIRAM cache workaround debugging
> 
> CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
> CONFIG_SPIRAM_BANKSWITCH_RESERVE=8
> # CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY is not set
> 
> #
> # PSRAM clock and cs IO for ESP32-DOWD
> #
> CONFIG_D0WD_PSRAM_CLK_IO=17
> CONFIG_D0WD_PSRAM_CS_IO=16
> # end of PSRAM clock and cs IO for ESP32-DOWD
> 
> #
> # PSRAM clock and cs IO for ESP32-D2WD
> #
> CONFIG_D2WD_PSRAM_CLK_IO=9
> CONFIG_D2WD_PSRAM_CS_IO=10
> # end of PSRAM clock and cs IO for ESP32-D2WD
> 
> #
> # PSRAM clock and cs IO for ESP32-PICO
> #
> CONFIG_PICO_PSRAM_CS_IO=10
> # end of PSRAM clock and cs IO for ESP32-PICO
> 
> # CONFIG_SPIRAM_CUSTOM_SPIWP_SD3_PIN is not set
> CONFIG_SPIRAM_SPIWP_SD3_PIN=7
> # CONFIG_SPIRAM_2T_MODE is not set
> # end of SPI RAM config
710,712c880,882
< # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160 is not set
< CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
< CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240
---
> CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y
> # CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240 is not set
> CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=160
783a954
> CONFIG_ESP32_ECO3_CACHE_LOCK_FIX=y
810a982
> CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE=y
814d985
< # CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER is not set
816a988
> CONFIG_ESP32_WIFI_CACHE_TX_BUFFER_NUM=32
821a994
> # CONFIG_ESP32_WIFI_AMSDU_TX_ENABLED is not set
896a1070
> CONFIG_FATFS_ALLOC_PREFER_EXTRAM=y
1145a1320
> # CONFIG_MBEDTLS_EXTERNAL_MEM_ALLOC is not set
1477a1653,1654
> # CONFIG_WIFI_PROV_BLE_BONDING is not set
> CONFIG_WIFI_PROV_BLE_SEC_CONN=y
1479,1480c1656
< CONFIG_WIFI_PROV_STA_ALL_CHANNEL_SCAN=y
< # CONFIG_WIFI_PROV_STA_FAST_SCAN is not set
---
> # CONFIG_WIFI_PROV_KEEP_BLE_ON_AFTER_PROV is not set
1551,1552c1727,1728
< CONFIG_REVK_BUILD_SUFFIX="-S1-V1"
< # CONFIG_REVK_PICO is not set
---
> CONFIG_REVK_BUILD_SUFFIX="-S1-PICO"
> CONFIG_REVK_PICO=y
1619a1796,1845
> # CONFIG_BLUEDROID_ENABLED is not set
> CONFIG_NIMBLE_ENABLED=y
> CONFIG_NIMBLE_MEM_ALLOC_MODE_INTERNAL=y
> # CONFIG_NIMBLE_MEM_ALLOC_MODE_EXTERNAL is not set
> # CONFIG_NIMBLE_MEM_ALLOC_MODE_DEFAULT is not set
> CONFIG_NIMBLE_MAX_CONNECTIONS=1
> CONFIG_NIMBLE_MAX_BONDS=3
> CONFIG_NIMBLE_MAX_CCCDS=8
> CONFIG_NIMBLE_L2CAP_COC_MAX_NUM=0
> CONFIG_NIMBLE_PINNED_TO_CORE_0=y
> # CONFIG_NIMBLE_PINNED_TO_CORE_1 is not set
> CONFIG_NIMBLE_PINNED_TO_CORE=0
> CONFIG_NIMBLE_TASK_STACK_SIZE=4096
> CONFIG_BT_NIMBLE_TASK_STACK_SIZE=4096
> # CONFIG_NIMBLE_ROLE_CENTRAL is not set
> # CONFIG_NIMBLE_ROLE_PERIPHERAL is not set
> # CONFIG_NIMBLE_ROLE_BROADCASTER is not set
> CONFIG_NIMBLE_ROLE_OBSERVER=y
> # CONFIG_NIMBLE_NVS_PERSIST is not set
> # CONFIG_NIMBLE_DEBUG is not set
> CONFIG_NIMBLE_SVC_GAP_DEVICE_NAME="nimble"
> CONFIG_NIMBLE_GAP_DEVICE_NAME_MAX_LEN=31
> CONFIG_NIMBLE_ATT_PREFERRED_MTU=256
> CONFIG_NIMBLE_SVC_GAP_APPEARANCE=0
> CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT=12
> CONFIG_NIMBLE_ACL_BUF_COUNT=24
> CONFIG_NIMBLE_ACL_BUF_SIZE=255
> CONFIG_NIMBLE_HCI_EVT_BUF_SIZE=70
> CONFIG_NIMBLE_HCI_EVT_HI_BUF_COUNT=30
> CONFIG_NIMBLE_HCI_EVT_LO_BUF_COUNT=8
> # CONFIG_NIMBLE_HS_FLOW_CTRL is not set
> CONFIG_NIMBLE_RPA_TIMEOUT=900
> # CONFIG_NIMBLE_MESH is not set
> # CONFIG_NIMBLE_CRYPTO_STACK_MBEDTLS is not set
> CONFIG_BTDM_CONTROLLER_MODE_BLE_ONLY=y
> # CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY is not set
> # CONFIG_BTDM_CONTROLLER_MODE_BTDM is not set
> CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN=3
> CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN_EFF=3
> CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN_EFF=0
> CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN_EFF=0
> CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE=0
> CONFIG_BTDM_CONTROLLER_HCI_MODE_VHCI=y
> # CONFIG_BTDM_CONTROLLER_HCI_MODE_UART_H4 is not set
> CONFIG_BTDM_CONTROLLER_MODEM_SLEEP=y
> # CONFIG_BLE_SCAN_DUPLICATE is not set
> # CONFIG_BTDM_CONTROLLER_FULL_SCAN_SUPPORTED is not set
> CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_SUPPORTED=y
> CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_NUM=100
> CONFIG_BLE_ADV_REPORT_DISCARD_THRSHOLD=20
1629d1854
< # CONFIG_ESP_SYSTEM_PD_FLASH is not set
1650,1651c1875,1877
< # CONFIG_SPIRAM_SUPPORT is not set
< # CONFIG_ESP32_SPIRAM_SUPPORT is not set
---
> CONFIG_SPIRAM_SUPPORT=y
> CONFIG_ESP32_SPIRAM_SUPPORT=y
> # CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST is not set
1653,1655c1879,1881
< # CONFIG_ESP32_DEFAULT_CPU_FREQ_160 is not set
< CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
< CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=240
---
> CONFIG_ESP32_DEFAULT_CPU_FREQ_160=y
> # CONFIG_ESP32_DEFAULT_CPU_FREQ_240 is not set
> CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=160
1703a1930
> CONFIG_SW_COEXIST_ENABLE=y
iancooper@m101b ESP32-Faikin % 

from esp32-faikin.

revk avatar revk commented on July 17, 2024

OK I think CONFIG_ESP32_REV_MIN=1

Does the binary it makes have -V1 in it? That will be it.

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

Yes I am fairly sure the only thing I changed was > Component config > Hardware Settings > Chip revision to Rev 1.0.

Sorry, where would I see the -V1 ? The binary is just called Faikin.bin

from esp32-faikin.

revk avatar revk commented on July 17, 2024

OK make usually creates is as Faikin[something].bin, e.g. Faikin-S1.bin, etc.

You should have Faikin-S1-V1.bin

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

OK I am not sure how I managed.. I used just make and at the end I got

Successfully created esp32 image.
Generated /Users/iancooper/esp/ESP32-Faikin/build/Faikin.bin
[856/856] cd /Users/iancooper/esp/ESP3...oper/esp/ESP32-Faikin/build/Faikin.binFaikin.bin binary size 0x117f70 bytes. Smallest app partition is 0x1f0000 bytes. 0xd8090 bytes (44%) free.

Project build complete. To flash, run this command:
/Users/iancooper/.espressif/python_env/idf5.0_py3.11_env/bin/python ../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0xd000 build/ota_data_initial.bin 0x10000 build/Faikin.bin
or run 'idf.py -p (PORT) flash'
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory
make: *** [all] Error 64

Not sure about make: *** [all] Error 64

I used the long form to flash rather than 'idf.py -p (PORT) flash

from esp32-faikin.

revk avatar revk commented on July 17, 2024

Are you running make?

Last line of all: target is

@echo Done: $(PROJECT_NAME)$(SUFFIX).bin

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

Yes I just used Make

from esp32-faikin.

revk avatar revk commented on July 17, 2024

Err make not Make...

try make all just to be sure

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

ah yes, make

So yes, you are correct, make all says

`iancooper@m101b ESP32-Faikin % make all
Makefile:27: mariadb/mysql not installed, needed for tools
Make: Faikin-S1-V1.bin
/Users/iancooper/esp/esp-idf/tools/check_python_dependencies.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Executing action: all (aliases: build)
Running ninja in directory /Users/iancooper/esp/ESP32-Faikin/build
Executing "ninja all"...
[4/5] Generating binary image from built executableesptool.py v4.5.1
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Generated /Users/iancooper/esp/ESP32-Faikin/build/bootloader/bootloader.bin
[5/5] cd /Users/iancooper/esp/ESP32-Fa...Faikin/build/bootloader/bootloader.binBootloader binary size 0x4650 bytes. 0x29b0 bytes (37%) free.
[6/7] Generating binary image from built executableesptool.py v4.5.1
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Generated /Users/iancooper/esp/ESP32-Faikin/build/Faikin.bin
[7/7] cd /Users/iancooper/esp/ESP32-Fa...oper/esp/ESP32-Faikin/build/Faikin.binFaikin.bin binary size 0x117f70 bytes. Smallest app partition is 0x1f0000 bytes. 0xd8090 bytes (44%) free.

Project build complete. To flash, run this command:
/Users/iancooper/.espressif/python_env/idf5.0_py3.11_env/bin/python ../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0xd000 build/ota_data_initial.bin 0x10000 build/Faikin.bin
or run 'idf.py -p (PORT) flash'
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory
make: *** [all] Error 64
iancooper@m101b ESP32-Faikin `

but the Error 64 at the end.

Apologies, hope this isn't wasting your time.

from esp32-faikin.

revk avatar revk commented on July 17, 2024

Ah the error at the end depends on your shell. I will fix that for you now.

I have issued Faikin-S1-V1.bin on ota.revk.uk so you can upgrade. Give that a try.

from esp32-faikin.

iancoop avatar iancoop commented on July 17, 2024

Amazing, seems to be working a treat. I didn't have the BLE and the automated local controls before, Thanks very much :-)

from esp32-faikin.

revk avatar revk commented on July 17, 2024

Well done.

from esp32-faikin.

Related Issues (20)

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.