查看ESP8266 Flash的源代码
←
ESP8266 Flash
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Flash Memory Map == ;; Map the flash: <source lang=c> /* * Memory map first 8Mbit of flash * address space is: 0x4020 0000 - 0x402F FFFF */ Cache_Read_Enable (0, 0, 0); </source> ;; Unmap the flash: <source lang=c> Cache_Read_Disable(); </source> <br><br> === Cache_Read_Enable === void Cache_Read_Enable(uint8 odd_even, uint8 mb_count, unt8 no_idea); Valid values for odd_even: 0 – clears bits 24 & 25 of control register 0x3FF0000C 1 – clears bit 24, sets bit 25 other – clears bit 25, sets bit 24 Function of odd_even: 0 – allows access to even numbered mb 1 – allow access to odd numbered mb other – appears to do the same as 1, there must be a difference but I haven’t worked out what it it Valid values for mb_count: 0-7 – set bits 16, 17 & 18 of control register 0x3FF0000C Function of mb_count: Which odd or even bank to map (according to odd_even option) e.g. mb_count = 0, odd_even = 0 -> map first 8Mbit of flash e.g. mb_count = 0, odd_even = 1 -> map second 8Mbit of flash e.g. mb_count = 1, odd_even = 0 -> map third 8Mbit of flash e.g. mb_count = 1, odd_even = 1 -> map fourth 8Mbit of flash Valid values for no_idea: 0 – sets bit 3 of 0x3FF00024 1 – sets bit 26 of 0x3FF0000C and sets bits 3 & 4 of 0x3FF00024 Function of no_idea: The clue is in the name, I can’t work out what this does from my experiments, but the SDK always sets this to 1. * Reverse engineered by Richard Burton: http://richard.burtons.org/2015/06/12/esp8266-cache_read_enable/ <br><br>
返回到
ESP8266 Flash
。
个人工具
18.219.213.27
该IP地址的讨论
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面