Skip to content

Conversation

@giuliobenetti
Copy link
Contributor

@giuliobenetti giuliobenetti commented Oct 7, 2025

Need to bump to IDF 5.5.1 to be able to program to esp32c5 like this:

esptool.py --chip esp32c5 --port /dev/ttyS2 -b 460800 \
  write_flash 0x2000 /lib/firmware/bootloader.bin \
               0x8000 /lib/firmware/partition-table.bin \
               0xd000  build/ota_data_initial.bin \
               0x10000 /lib/firmware/network_adapter.bin

This is also required to avoid to pass --preview when setting target like:

idf.py set-targert esp32c5

Bsaically IDF 5.5.1 fixes C5 related bugs.

mantriyogesh and others added 30 commits May 19, 2025 08:42
2. delayed network status notification from slave to host in case of deep sleep
- Refactor LWIP port macros
- Add UDP port configuration
- Fix host power save handling
- Improve SPI buffer management with DMA alignment checks
- Update packet filtering during host sleep mode
- Implement optional workqueue for SPI handling
- Replace semaphore-based approach
- Optimize transaction queuing timing
- Fix checksum calculation
- Improve network queue management
- Add transaction timing measurements
- Optimize SPI handler with CS deassertion semaphore
- Implement better error handling in SPI write/read paths
- Configure high-priority workqueue for improved
	  Fix the memory leak in async path
Fix the unwanted repeatative logs in hosted shell
Fix: Simplify connect_ap handling (removed event group)
…acked' structures in between host and slave

2. Fixed double free for RPC request memory
3. Host SPI: Add Flexibility at host to use Workqueue instead of semaphore solution
4. Slave SPI: Extra Debug logs for SPI
5. Added back esp_reset from host to slave
1. Fix SPI throughput issue when MCU is set in UDP
2. C5 5G header change
3. Clean up of code
- added `print_capabilities()` function to spi
- added extra check for BT over UART in `process_capabilities()`
- Simplified CLI Kconfig options
- Prevent auto-connect with SSID in flash when a new SSID is requested
- Reuse feature_enable_disable sync call to get network split availabilty as response
- User-facing debugs updated depending upon network split
- modified logic used to connect to AP when device is not yet
  provisioned
- modified printout to indicate that we connected with static IP
1. Auto Network Setup - Auto configure network on host bootup
2. Network Split - Allow ESP ans host to run network, with same IP

Also updated main README to let user know scenarios and how to choose
NG/ FG/ MCU solutions
1. Auto Network Setup - Auto configure network on host bootup
2. Network Split - Allow ESP ans host to run network, with same IP

Also updated main README to let user know scenarios and how to choose
NG/ FG/ MCU solutions
feat(auto_ip_restore): 1. redefine hosted task priorities

See merge request app-frameworks/esp_hosted!571
- on ESP-IDF v5.5 and above, use `uhci_ll_rx_set_eof_mode()` instead
  of `uhci_ll_set_eof_mode()`.
bugfix(c3_s3_uart_hci) Fix build error due to change in fn name

See merge request app-frameworks/esp_hosted!574
Shreyas0-7 and others added 23 commits July 31, 2025 15:24
Feat/c5 support idf v5.5

See merge request app-frameworks/esp_hosted!603
fix(esp_hosted_ng): Fix compile errors for ng

See merge request app-frameworks/esp_hosted!606
docs(esp_hosted_ng): Update setup docs for esp_hosted ng

See merge request app-frameworks/esp_hosted!609
fix(docs): Update sdio support for c5

See merge request app-frameworks/esp_hosted!610
fix(esp_hosted_ng): Fix De-assert HS signal on CS

See merge request app-frameworks/esp_hosted!611
Docs/deassert cs spi

See merge request app-frameworks/esp_hosted!612
Drop local patch and bump version and commit SHA1

Signed-off-by: Giulio Benetti <[email protected]>
@mantriyogesh
Copy link
Collaborator

@Shreyas0-7 ptal..

@Shreyas0-7
Copy link
Contributor

Hey @giuliobenetti, thanks for your PR, but to move to v5.5.1 we need more changes. Have raised internal MR and it's getting reviewed. Till that time please use default esp-idf version

@giuliobenetti
Copy link
Contributor Author

Hey @giuliobenetti, thanks for your PR, but to move to v5.5.1 we need more changes. Have raised internal MR and it's getting reviewed. Till that time please use default esp-idf version

Hi @Shreyas0-7, thanks for pointing. Indeed it does work with IDF 5.5.0, basically with latest master branch commit building with --preview, but not with 5.5.1. I've been misled because I've never read --preview on various commands suggested on Issue #620, so I wrongly deducted that you were using IDF 5.5.1, instead no.

So I think we can drop this PR, or waiting for IDF 5.5.1 to be stable for C5 and then merge it.

@mantriyogesh
Copy link
Collaborator

@Shreyas0-7 anything to be done here?

@Shreyas0-7
Copy link
Contributor

We cannot take this change. Have raised internal MR to bump up IDF version please take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants