Skip to content

Commit

Permalink
add support for c6 programming stub + chip detect. Tested with uart p…
Browse files Browse the repository at this point in the history
…rogramming
  • Loading branch information
hathach committed Jul 5, 2024
1 parent 0de33c2 commit 948b602
Show file tree
Hide file tree
Showing 6 changed files with 11,279 additions and 50 deletions.
14 changes: 13 additions & 1 deletion examples/Brain/program_esp_uart/esp_binaries.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define ESP_BINARIES_H_

// Configuration: select which bins to flash
#define BIN_FILES BIN_METRO_S2
#define BIN_FILES BIN_C6_BLINK_IO8

//------------- Binaries Define -------------//

Expand All @@ -43,6 +43,8 @@

#define BIN_ESP8266 30 // Espressif esp8266

#define BIN_C6_BLINK_IO8 40 // Blink sketch for C6 with LED on IO8

//------------- Binaries include -------------//

#if BIN_FILES == BIN_ESP32_WIFI_AP_SKETCH
Expand All @@ -69,6 +71,9 @@
#elif BIN_FILES == BIN_ESP8266
#include "esp_binaries/esp8266_binaries.h"

#elif BIN_FILES == BIN_C6_BLINK_IO8
#include "esp_binaries/c6_blink_io8.h"

#else
#error "Please select BIN_FILES in esp_binaries.h"

Expand Down Expand Up @@ -116,6 +121,13 @@ struct {

#elif BIN_FILES == BIN_ESP8266
{0x00000, &esp8266_blink_io0},

#elif BIN_FILES == BIN_C6_BLINK_IO8
{0x00000, &c6_blink_io8_bootloader},
{0x8000, &c6_blink_io8_partitions},
{0xe000, &boot_app0},
{0x10000, &c6_blink_io8},

#else
#error "Please select BIN_FILES in esp_binaries.h"
#endif
Expand Down
Loading

0 comments on commit 948b602

Please sign in to comment.