Hi James!

Can you try newt run? The ELF executable that got built is likely built for Linux (what's in the docker container), and not natively on OSX.

If you want to run it -- try newt run my_blinky_sim, that should start GDB within the container. Otherwise, you can install the native tools, and they will produce an executable for Mac OS X.

Cheers,
Sterling

On 5/10/16 8:21 PM, James Howarth wrote:
Hi,

I am having trouble running the .elf file created as part of my first
project.  I have been following
http://mynewt.incubator.apache.org/os/get_started/project_create/ .

Here's what I get when I try and run the .elf file as suggested in the
above link.

./bin/my_blinky_sim/apps/blinky/blinky.elf

bash: ./bin/my_blinky_sim/apps/blinky/blinky.elf: cannot execute binary file

1)  I am running OSX 10.11.4.

2)  I am using the docker method for running newt.

3)  Dumping target

newt target show

targets/my_blinky_sim

     app=apps/blinky

     bsp=@apache-mynewt-core/hw/bsp/native

     build_profile=debug


Cheers
James

Reply via email to