mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-31 21:14:37 +00:00 
			
		
		
		
	 44e16a6401
			
		
	
	44e16a6401
	
	
	
		
			
			The issue is `esp_flash_write_encryped` function in ROM on ESP32C3, ESP32S3 calls legacy implementation, which uses old configuration. And this causes write fails. The solution in this commit is to compile and link this function(and related) in IRAM instead of the ROM one. The IRAM cost increases around 1.2KB after the fix
		
			
				
	
	
		
			6 lines
		
	
	
		
			185 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			185 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| CONFIG_ESP_TASK_WDT_EN=n
 | |
| CONFIG_SPI_FLASH_ROM_IMPL=y
 | |
| CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 | |
| CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
 | |
| CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 |