Great. I see it! Thank you.
James On Tue, May 10, 2016 at 8:39 PM, Sterling Hughes <[email protected]> wrote: > perfect: type "r" / "run" and you should see hal_gpio_toggle change from 0 > to 1 and back again. If you create a new target and download it on a real > board, you should see something blinky! > > sterling > > > On 5/10/16 8:33 PM, James Howarth wrote: > >> Hi Sterling, >> >> Thanks for getting back to me so quickly. >> >> >> 1) Running "newt run my_blinky_sim" seems to start GDB within the >> container. I get the following: >> >> newt run my_blinky_sim >> >> No download script for BSP hw/bsp/native >> >> Debugging /workspace/bin/my_blinky_sim/apps/blinky/blinky.elf >> >> GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10 >> >> Copyright (C) 2015 Free Software Foundation, Inc. >> >> License GPLv3+: GNU GPL version 3 or later >> <http://gnu.org/licenses/gpl.html> >> >> This is free software: you are free to change and redistribute it. >> >> There is NO WARRANTY, to the extent permitted by law. Type "show copying" >> >> and "show warranty" for details. >> >> This GDB was configured as "x86_64-linux-gnu". >> >> Type "show configuration" for configuration details. >> >> For bug reporting instructions, please see: >> >> <http://www.gnu.org/software/gdb/bugs/>. >> >> Find the GDB manual and other documentation resources online at: >> >> <http://www.gnu.org/software/gdb/documentation/>. >> >> For help, type "help". >> >> Type "apropos word" to search for commands related to "word"... >> >> Reading symbols from >> /workspace/bin/my_blinky_sim/apps/blinky/blinky.elf...done. >> >> (gdb) >> >> >> 2) Should I see anything else? Is there something the emulates a >> blinking light? >> >> >> Cheers >> James >> >> >> >> On Tue, May 10, 2016 at 8:27 PM, Sterling Hughes <[email protected] >> <mailto:[email protected]>> wrote: >> >> 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 >> >> >>
