Closed netanbi closed 1 year ago
Are you pasting a C example to a Rust project? What are you trying to do, actually?
Hi i already fix that , thenks
בתאריך יום ג׳, 13 ביוני 2023, 10:29, מאת ivmarkov @.***
:
Are you pasting a C example to a Rust project? What are you trying to do, actually?
— Reply to this email directly, view it on GitHub https://github.com/ivmarkov/rust-esp32-std-demo/issues/148#issuecomment-1588707989, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHZRXJCIZB43OOAOSAQKLZTXLAJGBANCNFSM6AAAAAAWMAEJTE . You are receiving this because you authored the thread.Message ID: @.***>
Hi i am using esp32-c3 program it with ota from HTTP request and everything work very good now i program a different project , i take hello world example and convert the .bin file to c file then i create header file with that "hello word" c file
this is the start of the .bin file in c just to explain how it look
ifndef BIN_FILEH
define BIN_FILEH
const unsigned char ota_buff[158432] = { 0xE9, 0x05, 0x02, 0x1F, 0x22, 0x03, 0x38, 0x40, 0xEE, 0x00, 0x00, 0x00, 0x05, 0x00, 0x03, 0x03, 0x00, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x02, 0x3C, 0xE0, 0x78, 0x00, 0x00, 0x32, 0x54, 0xCD, 0xAB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
the program enter to ota state but i received error ; E (25341) esp_image: invalid segment length 0x696e6920
I (12591) http_server: http_server_configure: Starting server on port: '80' with task priority: '4' I (12601) http_server: http_server_configure: Registering URI handlers http_server_OTA_update_handler: Writing to partition subtype 17 at offset 0x200000 I (25331) esp_image: segment 0: paddr=00200020 vaddr=3c020020 size=078e0h ( 30944) map E (25341) esp_image: invalid segment length 0x696e6920 I (25341) http_server: http_server_OTA_update_handler: esp_ota_end ERROR!!! I (25351) pp: pp rom version: 9387209
this is the function : esp_err_t http_server_OTA_update_handler(void) { //printf("enter to OTA\r\n"); esp_ota_handle_t ota_handle; int content_length = DATA_LE; int content_received = 0; int recv_len =1001; bool flash_successful = false; static bool is_req_body_started = false;
}
please advice how i can fix that , because i see he enter to segment 0 but filed to continue