JN5168: memcmp does not work under Beyond Studio.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

JN5168: memcmp does not work under Beyond Studio.

2,774 次查看
hazeman
Contributor II

memcmp does not work properly.

If I call memcmp with a length > 1 on identical memory areas it returns a non-zero value.

I've tried this on the application template (AN-1174) end device as follows

    vInitSystem();

    memset(b,0,sizeof(b));

    memset(c,0,sizeof(c));

    b[0]=1;

    b[18]=18;

    c[0]=1;

    c[18]=18;

    if (memcmp(b,c,2)!=0) for (;;);

    vStartActiveScan();

It does not connect. If I change the compare length to 1 it does connect.

If I change the BA toolchain path in config_ba2.mk to "ba-elf-ba2-r34135" it works.

If I force it to use the optimised versions under r36379 it works.

I am using Beyond Studio Build 1308 and JN-SW-4143 Build 1307.

Any ideas?

标签 (1)
0 项奖励
回复
3 回复数

2,493 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Liam,

I am trying to replicate the issue.

Mario

0 项奖励
回复

2,493 次查看
vivekpjohn
Contributor II

Hi,

I am not able to get the Beyound studio IDE and SDKs. I am really stuck with a project of JN5168. Can you plz tell me how /from where to get the beyond studio and SDKs

0 项奖励
回复

2,493 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Vivek,

You can check the next link for download the IDE

IEEE 802.15.4|JN516x MCUs|NXP

JN-SW-4141

Let me Know if you have problems with the software

Best Regards

Mario

0 项奖励
回复