4821| 6
|
SPI实验W25QXX_Write函数u8 W25QXX_BUFFER[4096]为什么要申明在函数外? |
5金钱
最佳答案也可以的,声明在函数体内的数组是分配在栈区的,这个数组太多太大容易导致栈区(栈区一般不是很大)溢出的,一般不分配这么大的数组在函数体内,函数体外的全局变量数组分配在静态存储区,这个区域较大可以存储
| ||
| ||
| ||
| ||
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-9 06:50
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网