开发板有 4M spi flash, 为什么会崩溃??啥原因呢。
关于esp32 常量区溢出问题。
关于esp32 常量区溢出问题。
我定义了一个 const char[] 的数组 大小是1.2M 结果运行不起来。 改成250K 就能运行。
开发板有 4M spi flash, 为什么会崩溃??啥原因呢。
开发板有 4M spi flash, 为什么会崩溃??啥原因呢。
-
ESP_@In逍遥子
- Posts: 132
- Joined: Thu Nov 15, 2018 2:06 am
Re: 关于esp32 常量区溢出问题。
如果你有这么大的数组,用默认的 partition 分区表肯定是不行了,默认的 partiton 分区的 app 才 1M。
所以,你可以通过以下进行尝试:
step 1. 修改分区表,可以参看这个文档:https://docs.espressif.com/projects/esp ... ables.html
step 2. menuconfig->Serial flasher config->Flash size (4 MB) 选择 4 MB
所以,你可以通过以下进行尝试:
step 1. 修改分区表,可以参看这个文档:https://docs.espressif.com/projects/esp ... ables.html
step 2. menuconfig->Serial flasher config->Flash size (4 MB) 选择 4 MB
-
ESP_@In逍遥子
- Posts: 132
- Joined: Thu Nov 15, 2018 2:06 am
Re: 关于esp32 常量区溢出问题。
Probably because the partition start is at 0x10000, and if the size is set to 0x400000, then the end of the partition will be at 0x410000, outside of 4MB range?
-
ESP_@In逍遥子
- Posts: 132
- Joined: Thu Nov 15, 2018 2:06 am
Who is online
Users browsing this forum: No registered users and 2 guests
