代码如下:
size_t read_len=0;
printf("lf_setting_init\r\n");
memset(&lf_setting,0,sizeof(lf_setting));
read_len = ef_get_env_blob(LF_SETTING,&lf_setting,sizeof(lf_setting_t),NULL);
printf("lend=%d;ssid=[%s],pwd=[%s]\n",lf_setting.wifi_ssid,lf_setting.wifi_pwd,read_len);
调用到ef_get_env_blob直接死机
Exception Entry--->>>
mcause 38000005, mepc 230796d4, mtval 000003c4
Exception code: 5
msg: Load access fault
=== backtrace start ===
backtrace: 0x2304b572
backtrace: 0x23049f5e
backtrace: 0x230796d8 <--- TRAP
backtrace: 0x23050a78
backtrace: 0x230026d0
backtrace: 0x23001422
backtrace: 0x23000c66
backtrace: INVALID!!!
=== backtrace end ===
麻烦看一下可能的原因