mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
Merge branch 'master' into feature/esp32s2beta_update
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#include "soc/rtc_cntl_reg.h"
|
||||
#include "soc/sens_reg.h"
|
||||
|
||||
|
||||
#include "ulp_private.h"
|
||||
|
||||
typedef struct {
|
||||
uint32_t magic;
|
||||
@@ -77,10 +77,10 @@ esp_err_t ulp_load_binary(uint32_t load_addr, const uint8_t* program_binary, siz
|
||||
if (program_size_bytes < sizeof(ulp_binary_header_t)) {
|
||||
return ESP_ERR_INVALID_SIZE;
|
||||
}
|
||||
if (load_addr_bytes > CONFIG_ESP32_ULP_COPROC_RESERVE_MEM) {
|
||||
if (load_addr_bytes > ULP_RESERVE_MEM) {
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
}
|
||||
if (load_addr_bytes + program_size_bytes > CONFIG_ESP32_ULP_COPROC_RESERVE_MEM) {
|
||||
if (load_addr_bytes + program_size_bytes > ULP_RESERVE_MEM) {
|
||||
return ESP_ERR_INVALID_SIZE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user