@jiwenfei I tried the mentioned example. Its works fine.
The issue is not related to memory. According to your logs, the total size is around 2.3MB.
By default, the console is USB selected, which means the logs can only be printed using a USB port instead of UART.
I suggest you check the configuration using idf.py menuconfig -> Component config ->esp system settings ->channel for console output --> Default: UART0 if using the UART port on your board, and it's working.
I trained a simple network like
and it is slim and quantized, then i rebuild the model following your instructions step by step.
like:
![image](https://user-images.githubusercontent.com/14801991/210041744-0b116221-4d84-49e7-8c23-afb0d1084a9e.png)
and the csv is![image](https://user-images.githubusercontent.com/14801991/210041802-8ecf74d9-8530-41f0-900f-3a1beb65b094.png)
it show errors like :
and my idf's version is esp-idf-v4.4.3