得到了一些简单的代码,它使用带有 HSPI 的 MCP3208 来读取一些值。然后我想 sqrt() 这些值。此外,它使用 i2c 连接到 DS3231 模块,获取时间并报告自纪元以来的时间(来自 mk
time)
添加 powf() 函数 我收到错误消息 a.text will not fit in iram1_0_seg
我如何计算出使用的内容所有的记忆?
或者,我怎样才能增加段的大小?
我正在使用 SDK 1.0.1,出于某种原因 HSPI 不能与 1.1.0 版本一起使用
编译器是否有一些好的标志奇迹般地使事情变得更小?在 Windows 7 上运行。
我什至还没有放入我需要用来将计算值发布到服务器的代码!
代码:
全选C:/projects/ESP/esp8266/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -Idriver -Iuser -Idriver/include -Iuser/include -Iinclude -IC:/Projects/ESP/esp_iot_sdk_v1.0.1/include -Os -Os -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -c user/i2c_master.c -o build/user/i2c_master.o
C:/projects/ESP/esp8266/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -Idriver -Iuser -Idriver/include -Iuser/include -Iinclude -IC:/Projects/ESP/esp_iot_sdk_v1.0.1/include -Os -Os -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -c user/spi.c -o build/user/spi.o
C:/projects/ESP/esp8266/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -Idriver -Iuser -Idriver/include -Iuser/include -Iinclude -IC:/Projects/ESP/esp_iot_sdk_v1.0.1/include -Os -Os -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -c user/user_main.c -o build/user/user_main.o
C:/projects/ESP/esp8266/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -Idriver -Iuser -Idriver/include -Iuser/include -Iinclude -IC:/Projects/ESP/esp_iot_sdk_v1.0.1/include -Os -Os -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -c user/ds3231.c -o build/user/ds3231.o
C:/projects/ESP/esp8266/xtensa-lx106-elf/bin/xtensa-lx106-elf-ar cru build/blink_app.a build/user/i2c_master.o build/user/spi.o build/user/user_main.o build/user/ds3231.o
C:/projects/ESP/esp8266/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -LC:/Projects/ESP/esp_iot_sdk_v1.0.1/lib -TC:/Projects/ESP/esp_iot_sdk_v1.0.1/ld/eagle.app.v6.ld -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lm -lnet80211 -lphy -llwip -lpp -lc -lgcc -lwpa -lmain build/blink_app.a -Wl,--end-group -o build/blink.out
c:/projects/esp/esp8266/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: build/blink.out section `.text' will not fit in region `iram1_0_seg'
collect2.exe: error: ld returned 1 exit status
Makefile:120: recipe for target 'build/blink.out' failed
make: *** [build/blink.out] Error 1
0