adv_vendor_self_provision_with_peripheral例程打開(kāi)睡眠模式報(bào)錯(cuò)

因?yàn)樾枰偷墓乃栽赼dv_vendor_self_provision_with_peripheral的基礎(chǔ)上去修改,但是在CONFIG.H的頭文件里打開(kāi)了HAL_SLEEP,編譯報(bào)錯(cuò),怎么解決呢?


10:43:15 **** Incremental Build of configuration obj for project adv_vendor_self_provision_with_peripheral ****

make -j8 all?

Memory region? ? ? ? ?Used Size? Region Size? %age Used

? ? ? ? ? ?FLASH:? ? ? 126288 B? ? ? ?152 KB? ? ?81.14%

./APP/app.o: in function `vendor_model_srv_send':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app.c:532:(.text.vendor_model_srv_send+0x1a): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR4'

./APP/app.o: in function `prov_reset':

? ? ? ? ? ? ?RAM:? ? ? ?17284 B? ? ? ? 18 KB? ? ?93.77%

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app.c:356:(.text.App_ProcessEvent+0x14): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR15'

./APP/app.o: in function `prov_complete':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app.c:315:(.text.prov_complete+0x44): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR4'

./APP/app.o: in function `blemesh_on_sync':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app.c:748:(.text.blemesh_on_sync+0xe0): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR30'

./APP/app.o: in function `App_Init':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app.c:738:(.text.App_Init+0x26): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR4'

./APP/app.o: in function `App_trans_model_reveived':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app.c:1251:(.text.App_trans_model_reveived+0x760): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR4'

./APP/app_vendor_model_srv.o: in function `adv_srv_trans_send':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app_vendor_model_srv.c:591:(.text.adv_srv_trans_send+0x30): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR3'

./APP/app_vendor_model_srv.o: in function `ind_reset':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app_vendor_model_srv.c:495:(.text.ind_reset.constprop.4+0x4): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR6'

./APP/app_vendor_model_srv.o: in function `vendor_message_srv_send_trans':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app_vendor_model_srv.c:400:(.text.vendor_message_srv_send_trans+0xc): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR3'

./APP/app_vendor_model_srv.o: in function `vendor_message_srv_trans_reset':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app_vendor_model_srv.c:426:(.text.vendor_message_srv_trans_reset+0x4): relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR3'

./APP/app_vendor_model_srv.o: in function `vendor_model_srv_reset':

E:\EVT\EXAM\BLE\MESH\adv_vendor_self_provision_with_peripheral\obj/../APP/app_vendor_model_srv.c:70:(.text.vendor_model_srv_rsp_recv+0x42): additional relocation overflows omitted from the output

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:58: adv_vendor_self_provision_with_peripheral.elf] Error 1


您好,可以用新下載的EVT解壓一份,只修改HAL_SLEEP看是否會(huì)有一樣的報(bào)錯(cuò)。不推薦修改CONFIG.H中的宏,因?yàn)樵擃^文件是公共文件,建議在工程配置Properties中添加宏。一般使能該宏是不會(huì)有問(wèn)題的。
如果用EVT沒(méi)有出現(xiàn)同樣的報(bào)錯(cuò),可以排查定位一下問(wèn)題工程中的代碼塊。


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频