Browse Source

update: 更新脚本区大小的说明

Wendal Chen 4 years ago
parent
commit
a19c3c172a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      app/port/luat_conf_bsp.h

+ 5 - 2
app/port/luat_conf_bsp.h

@@ -7,8 +7,11 @@
 // Air101 与 Air103 的Flash大小有差异,需要区分
 #define AIR101
 
-// 文件系统大小, 一般不需要修改
-// 若需要增加,必须等于 (112+64*N), 其中N为正整数.
+// FLASH_FS_REGION_SIZE包含2部分: 脚本区和文件系统区
+// 其中文件系统区固定48k, 脚本区默认64k, 两者加起来就是默认值 112
+// 若需要增加脚本区的大小, 那么大小必须是64的整数倍, 例如变成 128, 192
+// 128k脚本区, 对应的FLASH_FS_REGION_SIZE为 176, 因为 128+48=176 
+// 192k脚本区, 对应的FLASH_FS_REGION_SIZE为 240, 因为 192+48=176 
 #define FLASH_FS_REGION_SIZE 112
 
 // 内存优化: 减少内存消耗, 会稍微减低性能