<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic elftosb | IMXRT1176 Coral | OSError: [Errno 8] Exec format error | Debian (bullseye) in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-IMXRT1176-Coral-OSError-Errno-8-Exec-format-error-Debian/m-p/1634959#M24650</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;: Coral Dev Board Micro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Host Platform&lt;/STRONG&gt;: Raspberry Pi v4 B 8GB&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Host OS&lt;/STRONG&gt;: Raspberry Pi bullseye&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Host Architecture&lt;/STRONG&gt;: aarch64&lt;/P&gt;&lt;P&gt;I'm setting up a development environment for the Coral Dev Board Micro on a Raspberry Pi as described&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://coral.ai/docs/dev-board-micro/get-started/#4-set-up-for-freertos-development" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://coral.ai/docs/dev-board-micro/freertos/#create-an-in-tree-project" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;. Everything builds, but when I try to flash the device, flashtool.py returns the error below. I don't run into this problem when I use Mac OS.&lt;/P&gt;&lt;P&gt;I'm grateful for any debugging/troubleshooting suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;deiter@raspberrypi:~/dev/coral/coralmicro $ python3 scripts/flashtool.py --app helloWorld
Traceback (most recent call last):
  File "/home/deiter/dev/coral/coralmicro/scripts/flashtool.py", line 1193, in &amp;lt;module&amp;gt;
    main()
  File "/home/deiter/dev/coral/coralmicro/scripts/flashtool.py", line 1027, in main
    elftosb_path) if args.flashloader_path else MakeFlashloader(build_dir, cached_files, elftosb_path)
  File "/home/deiter/dev/coral/coralmicro/scripts/flashtool.py", line 243, in MakeFlashloader
    return MakeFlashloaderFromSrec(srec_path, elftosb_path)
  File "/home/deiter/dev/coral/coralmicro/scripts/flashtool.py", line 265, in MakeFlashloaderFromSrec
    subprocess.check_call([elftosb_path, '-f', 'imx', '-V', '-c', bdfile_path, '-o',
  File "/usr/lib/python3.9/subprocess.py", line 368, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/deiter/dev/coral/coralmicro/third_party/nxp/elftosb/linux/amd64/elftosb'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 18 Apr 2023 01:35:56 GMT</pubDate>
    <dc:creator>deiter</dc:creator>
    <dc:date>2023-04-18T01:35:56Z</dc:date>
    <item>
      <title>elftosb | IMXRT1176 Coral | OSError: [Errno 8] Exec format error | Debian (bullseye)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-IMXRT1176-Coral-OSError-Errno-8-Exec-format-error-Debian/m-p/1634959#M24650</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;: Coral Dev Board Micro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Host Platform&lt;/STRONG&gt;: Raspberry Pi v4 B 8GB&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Host OS&lt;/STRONG&gt;: Raspberry Pi bullseye&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Host Architecture&lt;/STRONG&gt;: aarch64&lt;/P&gt;&lt;P&gt;I'm setting up a development environment for the Coral Dev Board Micro on a Raspberry Pi as described&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://coral.ai/docs/dev-board-micro/get-started/#4-set-up-for-freertos-development" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://coral.ai/docs/dev-board-micro/freertos/#create-an-in-tree-project" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;. Everything builds, but when I try to flash the device, flashtool.py returns the error below. I don't run into this problem when I use Mac OS.&lt;/P&gt;&lt;P&gt;I'm grateful for any debugging/troubleshooting suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;PRE&gt;deiter@raspberrypi:~/dev/coral/coralmicro $ python3 scripts/flashtool.py --app helloWorld
Traceback (most recent call last):
  File "/home/deiter/dev/coral/coralmicro/scripts/flashtool.py", line 1193, in &amp;lt;module&amp;gt;
    main()
  File "/home/deiter/dev/coral/coralmicro/scripts/flashtool.py", line 1027, in main
    elftosb_path) if args.flashloader_path else MakeFlashloader(build_dir, cached_files, elftosb_path)
  File "/home/deiter/dev/coral/coralmicro/scripts/flashtool.py", line 243, in MakeFlashloader
    return MakeFlashloaderFromSrec(srec_path, elftosb_path)
  File "/home/deiter/dev/coral/coralmicro/scripts/flashtool.py", line 265, in MakeFlashloaderFromSrec
    subprocess.check_call([elftosb_path, '-f', 'imx', '-V', '-c', bdfile_path, '-o',
  File "/usr/lib/python3.9/subprocess.py", line 368, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/deiter/dev/coral/coralmicro/third_party/nxp/elftosb/linux/amd64/elftosb'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 18 Apr 2023 01:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/elftosb-IMXRT1176-Coral-OSError-Errno-8-Exec-format-error-Debian/m-p/1634959#M24650</guid>
      <dc:creator>deiter</dc:creator>
      <dc:date>2023-04-18T01:35:56Z</dc:date>
    </item>
  </channel>
</rss>

