DeviceCreateOtaEncClient.sh Permission denied

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DeviceCreateOtaEncClient.sh Permission denied

2,447 Views
Nina
Contributor I

MCUXpressoIDE_11.8.0_1165

macbookPro M1

SDK example : jn5189dk6_zigbee_router_bm

 

jn5189dk6_zigbee_router_bm.bin build ok,

but DeviceCreateOtaEncClient.sh: Permission denied

 

 

 

/Applications/MCUXpressoIDE_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /Applications/MCUXpressoIDE_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp/libc.a(libc_a-closer.o): in function `_close_r':

closer.c:(.text._close_r+0xc): warning: _close is not implemented and will always fail

/Applications/MCUXpressoIDE_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /Applications/MCUXpressoIDE_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp/libc.a(libc_a-lseekr.o): in function `_lseek_r':

lseekr.c:(.text._lseek_r+0x14): warning: _lseek is not implemented and will always fail

/Applications/MCUXpressoIDE_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /Applications/MCUXpressoIDE_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp/libc.a(libc_a-readr.o): in function `_read_r':

readr.c:(.text._read_r+0x14): warning: _read is not implemented and will always fail

/Applications/MCUXpressoIDE_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /Applications/MCUXpressoIDE_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m/nofp/libc.a(libc_a-writer.o): in function `_write_r':

writer.c:(.text._write_r+0x14): warning: _write is not implemented and will always fail

/Applications/MCUXpressoIDE_11.8.0_1165/ide/plugins/com.nxp.mcuxpresso.tools.macosx_11.8.0.202306131047/tools/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: warning: jn5189dk6_zigbee_router_bm.axf has a LOAD segment with RWX permissions

Memory region Used Size Region Size %age Used

Flash640: 199948 B 640 KB 30.51%

RAM0: 25288 B 87 KB 28.39%

RAM1: 0 GB 64 KB 0.00%

Finished building target: jn5189dk6_zigbee_router_bm.axf

 

Performing post-build steps

arm-none-eabi-size "jn5189dk6_zigbee_router_bm.axf"; echo "macosx" | grep -q win* && py -3 "../scripts/dk6_image_tool.py" -s 294912 jn5189dk6_zigbee_router_bm.axf || python3 "../scripts/dk6_image_tool.py" -s 294912 jn5189dk6_zigbee_router_bm.axf; arm-none-eabi-objcopy -v -O binary "jn5189dk6_zigbee_router_bm.axf" "jn5189dk6_zigbee_router_bm.bin";arm-none-eabi-objdump -d "jn5189dk6_zigbee_router_bm.axf" > "jn5189dk6_zigbee_router_bm.dis";mv "jn5189dk6_zigbee_router_bm.bin" ../zigbee_ota_build/jn5189dk6_zigbee_router_bm.bin;../zigbee_ota_build/DeviceCreateOtaEncClient.sh ../zigbee_ota_build win "0x1037" "OM15081-RT--JN5189--ENCRYPTED000" "6" "JN518x" "0x0002" jn5189dk6_zigbee_router_bm "1234567890ABCDEFA1B2C3D4E5F6F1B4"

text data bss dec hex filename

198236 1712 23688 223636 36994 jn5189dk6_zigbee_router_bm.axf

No .ext_flash_text section found in ELF file

No compatibility list

Boot Block Offset: 00030d10

Writing checksum fbf55756 to file /Users/nina/mcuxpresso/MCUXpressoIDE_11.8.0_1165/workspace/jn5189dk6_zigbee_router_bm/Debug/jn5189dk6_zigbee_router_bm.axf

Writing CRC32 of header 99bc9499 to file /Users/nina/mcuxpresso/MCUXpressoIDE_11.8.0_1165/workspace/jn5189dk6_zigbee_router_bm/Debug/jn5189dk6_zigbee_router_bm.axf

Binary size is 00030d30 (199984)

copy from `jn5189dk6_zigbee_router_bm.axf' [elf32-littlearm] to `jn5189dk6_zigbee_router_bm.bin' [binary]

/bin/sh: ../zigbee_ota_build/DeviceCreateOtaEncClient.sh: Permission denied

make[1]: [makefile:97: post-build] Error 126 (ignored)

 

 

13:42:25 Build Finished. 0 errors, 5 warnings. (took 1s.193ms)

0 Kudos
Reply
4 Replies

2,422 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello,

Hope you are doing well.

Could you please provide more details on your SDK version? By any chance, have you modified the base source code of zigbee_router_bm?

I will strongly recommend using the Zigbee 3.0 Base Device Application Note as base for your development, as this App Note provides example implementations of Coordinator, Router and End Device device types. Also, IoT Control Bridge Application Note should implement Coordinator and Router capabilities, allowing the user to manage the network and the devices by using a graphical UI to interact with the Control Bridge.

Regards,
Eduardo.

0 Kudos
Reply

2,414 Views
Nina
Contributor I

Thank you at first. 

IDE version:

1698284504451.jpg

sdk version:

1698284480890.jpg

import SDK example

1698284618659.jpg

the jn5189dk6_zigbee_router_bm

1698284637268.jpg

build(after  chmod 777 DeviceCreateOtaEncClient.sh in terminal)

1698285257118.jpg

 

 

0 Kudos
Reply

2,409 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

According to the JN5189DK6 SDK 2.6.12 Release Notes, this SDK version was compiled and tested with MCUXpresso IDE version 11.7.1.

Could you please try downloading again the JN5189 SDK from the MCUXpresso SDK Builder? Please, be sure to select macOS as Host OS before building the SDK:

EduardoZamora_0-1698334641412.png

I truly apologize for insisting, but please consider using the Zigbee 3.0 Base Device Application Note or the IoT Control Bridge Application Note as base for your development.

Regards,
Eduardo.

 

0 Kudos
Reply

2,438 Views
Nina
Contributor I

I did terminal : chmod 777 DeviceCreateOtaEncClient.sh

 

then error is ?.exe

 

 

Binary size is 00030d30 (199984) copy from `jn5189dk6_zigbee_router_bm.axf' [elf32-littlearm] to `jn5189dk6_zigbee_router_bm.bin' [binary] ../zigbee_ota_build/DeviceCreateOtaEncClient.sh: line 23: win/JET.exe: Permission denied ../zigbee_ota_build/DeviceCreateOtaEncClient.sh: line 26: win/JET.exe: Permission denied ../zigbee_ota_build/DeviceCreateOtaEncClient.sh: line 30: win/JET.exe: Permission denied ../zigbee_ota_build/DeviceCreateOtaEncClient.sh: line 33: win/JET.exe: Permission denied ../zigbee_ota_build/DeviceCreateOtaEncClient.sh: line 36: win/JET.exe: Permission denied ../zigbee_ota_build/DeviceCreateOtaEncClient.sh: line 39: win/JET.exe: Permission denied ../zigbee_ota_build/DeviceCreateOtaEncClient.sh: line 42: win/JET.exe: Permission denied ../zigbee_ota_build/DeviceCreateOtaEncClient.sh: line 45: win/JET.exe: Permission denied rm: output*.bin: No such file or directory rm: jn5189dk6_zigbee_router_bmUpGradeImagewithOTAHeader*.bin: No such file or directory chmod: jn5189dk6_zigbee_router_bmClient.bin: No such file or directory make[1]: [makefile:97: post-build] Error 1 (ignored)

0 Kudos
Reply