to compile built in openthread library files for nrf52833 in windows

how to compile openthread library files for nrf52833, 

i followed the procedure as below

  1. start with a fresh copy of the SDK, and make sure you place it as close to the ROOT of the hard drive as possible.
  2. Open a command line and go to [nRF5 SDK for Thread and Zigbee v4.1.0 ROOT]\external\openthread\project.
  3. Enter the following commands:
  4. git clone github.com/.../openthread.git

b.cdopenthread

c.git checkout c6a258e3a5bd90aa26d8245c435c0ae5797027f4

  1. Modify the UART pin config in [nRF5 SDK for Thread and Zigbee v4.1.0 ROOT]\external\openthread\project\openthread\examples\platforms\nrf528xx\nrf52833\transport-config.h per your requirements.
  2. Go back to [nRF5 SDK for Thread and Zigbee v4.1.0 ROOT]\external\openthread\project and run "py -3 build_gcc_libs.py" from the command line.
  3. When that is done, run "py -3 import_libs.py gcc" from the command line.

for nrf52833 , but found only nrf52840 get compiled

Parents
  • the data log for step 6 for me as like below

    import_libs.py:88: SyntaxWarning: "is not" with a literal. Did you mean "!="?
      if len(bad_libs) is not 0:
    INFO - root - Copying nrf52840\cli\ftd\armgcc\libopenthread-cli-ftd-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-cli-ftd.a
    INFO - root - Copying nrf52840\cli\mtd\armgcc\libopenthread-cli-mtd-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-cli-mtd.a
    INFO - root - Copying nrf52840\core\ftd\armgcc\libopenthread-ftd-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-ftd.a
    INFO - root - Copying nrf52840\core\mtd\armgcc\libopenthread-mtd-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-mtd.a
    INFO - root - Copying nrf52840\core\radio\armgcc\libopenthread-radio-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-radio.a
    Traceback (most recent call last):
      File "import_libs.py", line 180, in <module>
        shutil.copy(from_path, to_path)
      File "C:\Users\india\AppData\Local\Programs\Python\Python38-32\lib\shutil.py", line 415, in copy
        copyfile(src, dst, follow_symlinks=follow_symlinks)
      File "C:\Users\india\AppData\Local\Programs\Python\Python38-32\lib\shutil.py", line 261, in copyfile
        with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
    FileNotFoundError: [Errno 2] No such file or directory: 'nrf52840\\core\\radio\\armgcc\\libopenthread-radio-nrf52840.a'

Reply
  • the data log for step 6 for me as like below

    import_libs.py:88: SyntaxWarning: "is not" with a literal. Did you mean "!="?
      if len(bad_libs) is not 0:
    INFO - root - Copying nrf52840\cli\ftd\armgcc\libopenthread-cli-ftd-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-cli-ftd.a
    INFO - root - Copying nrf52840\cli\mtd\armgcc\libopenthread-cli-mtd-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-cli-mtd.a
    INFO - root - Copying nrf52840\core\ftd\armgcc\libopenthread-ftd-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-ftd.a
    INFO - root - Copying nrf52840\core\mtd\armgcc\libopenthread-mtd-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-mtd.a
    INFO - root - Copying nrf52840\core\radio\armgcc\libopenthread-radio-nrf52840.a to ..\lib\nrf52840\gcc\libopenthread-radio.a
    Traceback (most recent call last):
      File "import_libs.py", line 180, in <module>
        shutil.copy(from_path, to_path)
      File "C:\Users\india\AppData\Local\Programs\Python\Python38-32\lib\shutil.py", line 415, in copy
        copyfile(src, dst, follow_symlinks=follow_symlinks)
      File "C:\Users\india\AppData\Local\Programs\Python\Python38-32\lib\shutil.py", line 261, in copyfile
        with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
    FileNotFoundError: [Errno 2] No such file or directory: 'nrf52840\\core\\radio\\armgcc\\libopenthread-radio-nrf52840.a'

Children
No Data
Related