-
Notifications
You must be signed in to change notification settings - Fork 25
chore(build): update sdkconfig to 5.5.3 and guard c5 firmware embedde… #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3e0e98d
7d3c3c7
738f82b
551c27f
48324c4
5e67323
68e3164
e6c7144
c7f52c1
77ab629
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "system_hardware": "HighBoy", | ||
| "version": "0.1.0", | ||
| "version": "1.1.0", | ||
| "ota_repository_url": "https://repo.highboy.com.br/firmware/system/update.json", | ||
| "changelog": "" | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,8 +12,10 @@ static const char *TAG = "C5_FLASHER"; | |||||||||
| #define FLASH_BLOCK_SIZE 1024 | ||||||||||
|
|
||||||||||
| // Access to embedded binary symbols | ||||||||||
| #if C5_FIRMWARE_EMBEDDED | ||||||||||
| extern const uint8_t c5_firmware_bin_start[] asm("_binary_TentacleOS_C5_bin_start"); | ||||||||||
| extern const uint8_t c5_firmware_bin_end[] asm("_binary_TentacleOS_C5_bin_end"); | ||||||||||
| #endif | ||||||||||
|
|
||||||||||
| // ESP Serial Protocol Constants | ||||||||||
| #define ESP_ROM_BAUD 115200 | ||||||||||
|
|
@@ -104,8 +106,13 @@ void c5_flasher_reset_normal(void) { | |||||||||
|
|
||||||||||
| esp_err_t c5_flasher_update(const uint8_t *bin_data, uint32_t bin_size) { | ||||||||||
| if (!bin_data) { | ||||||||||
| #if C5_FIRMWARE_EMBEDDED | ||||||||||
| bin_data = c5_firmware_bin_start; | ||||||||||
| bin_size = c5_firmware_bin_end - c5_firmware_bin_start; | ||||||||||
| #else | ||||||||||
| ESP_LOGE(TAG, "Embedded C5 firmware is unavailable"); | ||||||||||
| return ESP_ERR_NOT_FOUND; | ||||||||||
|
Comment on lines
+113
to
+114
|
||||||||||
| ESP_LOGE(TAG, "Embedded C5 firmware is unavailable"); | |
| return ESP_ERR_NOT_FOUND; | |
| ESP_LOGW(TAG, "C5 firmware update skipped: embedded firmware is unavailable and no external binary was provided"); | |
| return ESP_OK; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| #ifndef OTA_VERSION_H | ||
| #define OTA_VERSION_H | ||
|
|
||
| #define FIRMWARE_VERSION "0.1.0" | ||
| #define FIRMWARE_VERSION "1.1.0" | ||
|
|
||
| #endif // OTA_VERSION_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(EXISTS ${C5_BIN_PATH})should quote the path (if(EXISTS "${C5_BIN_PATH}")) to avoid mis-parsing when the source dir path contains spaces or special characters. This is a common CMake footgun and can cause the embed step to be skipped unexpectedly.