Can you please help me with the following problem?
I think there is an issue with the OND-checksum using the following flags :-6 -m -t 62500 -v when it tries to obtain the .bin file for the .img.
Looking forward to hearing from you soon.
I will ask our technical team to look at this.
Would you please tell me if you have found any informations concerning my issue?
I just pinged the team again.
Sorry for the delay.
Hello Mr. Krakar,
It is OK but I hope that they will find a solution for my issue soon.
Thank you for this question, I also have the same issue, I hope you'll find a solution soon!
All the best
I just pinged the team again asking them to respond.
Are you able to tell me if you are running the latest versions of the Tollchain and JenNet-IP SDK from:
You should have:
JN-SW-4141 BeyondStudio for NXP Toolchain v1308
JN-SW-4165 JN516x JenNet-IP SDK v1107
Once I have confirmation I will set up the same installation here and investigate.
Hello Mr. LookerYes,indeed.I have the versions you have mentioned.
I should add that your currently installed versions should be available from the Add/Remove Programs application in your Windows Control Panel.
Could you also post the output from the compiler when it calls OND_Checksum?
Here is the output from the compiler:
Linking BR_WirelessFirmware_JN5168_1000000.elf ...
/c/NXP/bstudio_nxp/sdk/JN-SW-4165/../Tools/ba-elf-ba2-r34135/bin/ba-elf-gcc -Wl,--gc-sections -Wl,-u_AppColdStart -Wl,-u_AppWarmStart -TApp_Stack_Size.ld -march=ba2 -mcpu=jn51xx -mredzone-size=4 -mbranch-cost=3 -fomit-frame-pointer -Os -fshort-enums -flto -nostartfiles -L/c/NXP/bstudio_nxp/sdk/JN-SW-4165/Chip/JN5168/Build -L/c/NXP/bstudio_nxp/sdk/JN-SW-4165/Chip/JN5168/Library -Wl,-ueSecurityTxPrepare -Wl,-ueSecurityTxEncrypt -Wl,-ubSecurityRxProcess -L/c/NXP/bstudio_nxp/sdk/JN-SW-4165/Platform/DK4/Library -L/c/NXP/bstudio_nxp/sdk/JN-SW-4165/Components/Library -L/c/NXP/bstudio_nxp/sdk/JN-SW-4165/Stack/JIP/Build -TAppBuildJip_JN5168.ld -o BR_WirelessFirmware_JN5168_1000000.elf -Wl,--start-group JIP-Gateway.o Queue.o UartBuffered.o SerialLink.o RADIUS.o md5.o Exceptions.o ModuleConfig.o -lDBG_JN516x -lJIP_JN516x -l6LP_JN516x -lJenNet_JN516x -lMiniMac_JN516x -lMiniMacShim_JN516x -lMMAC_JN516x -lAes_JN516x -lHardwareApi_JN516x -lMicroSpecific_JN516x -lBoot_JN516x -lPDM_EEPROM_JN516x -lBoardLib_JN516x -Wl,--end-group -Wl,-Map,BR_WirelessFirmware_JN5168_1000000.map
text data bss dec hex filename
93264 784 21901 115949 1c4ed BR_WirelessFirmware_JN5168_1000000.elf
Generating binary ...
/c/NXP/bstudio_nxp/sdk/JN-SW-4165/../Tools/ba-elf-ba2-r34135/bin/ba-elf-objcopy BR_WirelessFirmware_JN5168_1000000.elf $( /c/NXP/bstudio_nxp/sdk/JN-SW-4165/../Tools/ba-elf-ba2-r34135/bin/ba-elf-objdump -h BR_WirelessFirmware_JN5168_1000000.elf | sed -n 's/^ *[0-9]* \(.rom[._[:alnum:]]*\).*/-R \1/p' )
/c/NXP/bstudio_nxp/sdk/JN-SW-4165/../Tools/ba-elf-ba2-r34135/bin/ba-elf-objcopy -S -O binary BR_WirelessFirmware_JN5168_1000000.elf BR_WirelessFirmware_JN5168_1000000.img
Generating updatable binary ...
/c/NXP/bstudio_nxp/sdk/JN-SW-4165/Tools/OND/OND_Checksum -6 -v 0x08010001 5168 0x1903 BR_WirelessFirmware_JN5168_1000000.img BR_WirelessFirmware_JN5168_1000000.bin
make: *** [BR_WirelessFirmware_JN5168_1000000.bin] Error 53
rm Exceptions.o Queue.o SerialLink.o UartBuffered.o BR_WirelessFirmware_JN5168_1000000.img ModuleConfig.o JIP-Gateway.o RADIUS.o md5.o
18:04:53 Build Finished (took 7s.594ms)
I have managed to compile the border router node without the OND capability (I modified the Makefile to obtain the .bin file). But, it seems that the BR node and BR host do not communicate with each other. The BR node does not receive the configuration from the host and it loops in the following while statement (in the AppColdStart fonction) :
while((!sFlags.bRunCoordinator) && (!sFlags.bRunRouter))
/* See if there is any data available on the serial link */
I used one million baud rate and UART1 as the HOST_UART. I used Raspberry Pi B with the OpenWRT from JN-AN-1110.
Furthermore,would you please find a solution for BR node OND capability issue ?
Thank you !
Hi Aicha, I flashed the bin file of jn-an-1110 to my JN5168 with a baud rate of 115200 and on the border router, I also changed my PAN-ID to 0xbc57 and the other one to 0x11111111 on the website router and it works.
You said that you see the program loops in a statement, you can debug it? With what debugger?
Thanks for the information. I think the OND_Checksum utility has a reliance upon cygwin which we used in the older versions of our toolchain but we have moved to msys in the current version which you are using - and so OND_Checksum is not able to run correctly.
We did catch this for the JN-AN-1162-JenNet-IP-Smart-Home Application Note and addressed by including cygwin.dll in the Build folder for the various devices (e.g. /DeviceBulb/Build/cygwin.dll). If you copy that dll into the Node/Build folder of the JN-AN-1110-JenNet-IP-Border-Router the OND_Checksum utility should be able to run correctly.
Sorry that this slipped through the net, please let me know if the above works for you.
Thank you.The the .bin file is generated correctly
Thank you, it works fine
I have been trying to communicate the BR node with the BR host but each time the BR node tries to get its configurations from the BR host it fails .After executing lines of the following code:
daemon_log(LOG_INFO, "Writing configuration to Module");
daemon_log(LOG_INFO, "Config 15.4 Region : %d", sConfig.u8Region);
daemon_log(LOG_INFO, "Config 15.4 Channel : %d", sConfig.u8Channel);
daemon_log(LOG_INFO, "Config 15.4 PAN ID : 0x%x", ntohs(sConfig.u16PanID));
daemon_log(LOG_INFO, "Config JenNet ID : 0x%x", (unsigned int)ntohl(sConfig.u32NetworkID));
daemon_log(LOG_INFO, "Config 6LoWPAN Prefix : 0x%08x%08x", (unsigned int)ntohl(sConfig.u64NetworkPrefixMSB), (unsigned int)ntohl(sConfig.u64NetworkPrefixLSB));
It shows me this message "Cannot determine module address".
PS: I used Raspberry Pi B with the OpenWRT as you mentioned in JN-AN-1110.
Retrieving data ...