Removed date from copyright. Small edits to newt mfg command
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/8efbd1d9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/8efbd1d9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/8efbd1d9 Branch: refs/heads/asf-site Commit: 8efbd1d95fcf0d548ba41d57042e280c2eaeb2e6 Parents: 170decb Author: aditihilbert <ad...@runtime.io> Authored: Wed Jan 25 16:56:50 2017 -0800 Committer: aditihilbert <ad...@runtime.io> Committed: Wed Jan 25 16:56:50 2017 -0800 ---------------------------------------------------------------------- about/index.html | 2 +- community/index.html | 2 +- develop/mkdocs/search_index.json | 8 +++--- develop/newt/command_list/newt_mfg/index.html | 17 ++++++------- .../os/get_started/project_create/index.html | 2 +- develop/sitemap.xml | 24 +++++++++--------- download/index.html | 2 +- events/index.html | 2 +- faq/answers/index.html | 2 +- faq/how_to_edit_docs/index.html | 2 +- index.html | 2 +- latest/mkdocs/search_index.json | 8 +++--- latest/newt/command_list/newt_mfg/index.html | 17 ++++++------- latest/os/get_started/project_create/index.html | 2 +- latest/sitemap.xml | 24 +++++++++--------- network/ble/ble_intro/index.html | 2 +- network/ble/ble_sec/index.html | 2 +- network/ble/bletiny/bletiny_GAP/index.html | 2 +- network/ble/bletiny/bletiny_GATT/index.html | 2 +- network/ble/bletiny/bletiny_advdata/index.html | 2 +- network/ble/bletiny_api/index.html | 2 +- network/ble/ini_stack/ble_add_cpu/index.html | 2 +- network/ble/ini_stack/ble_consolepkg/index.html | 2 +- .../ble/ini_stack/ble_controller_ini/index.html | 2 +- network/ble/ini_stack/ble_devadd/index.html | 2 +- network/ble/ini_stack/ble_host_ini/index.html | 2 +- network/ble/ini_stack/ble_ini_intro/index.html | 2 +- network/ble/ini_stack/ble_mempool/index.html | 2 +- network/ble/ini_stack/ble_parent_ini/index.html | 2 +- network/ble/ini_stack/ble_statpkg/index.html | 2 +- network/ble/nimble_setup/index.html | 2 +- newt/command_list/newt_build/index.html | 2 +- newt/command_list/newt_clean/index.html | 2 +- newt/command_list/newt_create_image/index.html | 2 +- newt/command_list/newt_debug/index.html | 2 +- newt/command_list/newt_help/index.html | 2 +- newt/command_list/newt_info/index.html | 2 +- newt/command_list/newt_install/index.html | 2 +- newt/command_list/newt_load/index.html | 2 +- newt/command_list/newt_new/index.html | 2 +- newt/command_list/newt_run/index.html | 2 +- newt/command_list/newt_size/index.html | 2 +- newt/command_list/newt_target/index.html | 2 +- newt/command_list/newt_test/index.html | 2 +- newt/command_list/newt_upgrade/index.html | 2 +- newt/command_list/newt_version/index.html | 2 +- newt/install/newt_linux/index.html | 2 +- newt/install/newt_mac/index.html | 2 +- newt/newt_intro/index.html | 2 +- newt/newt_operation/index.html | 2 +- newt/newt_ops/index.html | 2 +- newtmgr/installing/index.html | 2 +- newtmgr/overview/index.html | 2 +- os/core_os/callout/callout/index.html | 2 +- .../callout/os_callout_func_init/index.html | 2 +- os/core_os/callout/os_callout_init/index.html | 2 +- os/core_os/callout/os_callout_queued/index.html | 2 +- os/core_os/callout/os_callout_reset/index.html | 2 +- os/core_os/callout/os_callout_stop/index.html | 2 +- .../context_switch/context_switch/index.html | 2 +- .../context_switch/os_arch_ctx_sw/index.html | 2 +- os/core_os/context_switch/os_sched/index.html | 2 +- .../os_sched_ctx_sw_hook/index.html | 2 +- .../os_sched_get_current_task/index.html | 2 +- .../context_switch/os_sched_insert/index.html | 2 +- .../os_sched_next_task/index.html | 2 +- .../os_sched_os_timer_exp/index.html | 2 +- .../context_switch/os_sched_resort/index.html | 2 +- .../os_sched_set_current_task/index.html | 2 +- .../context_switch/os_sched_sleep/index.html | 2 +- .../context_switch/os_sched_wakeup/index.html | 2 +- os/core_os/event_queue/event_queue/index.html | 2 +- os/core_os/event_queue/os_eventq_get/index.html | 2 +- .../event_queue/os_eventq_init/index.html | 2 +- os/core_os/event_queue/os_eventq_put/index.html | 2 +- .../event_queue/os_eventq_remove/index.html | 2 +- os/core_os/heap/heap/index.html | 2 +- os/core_os/heap/os_free/index.html | 2 +- os/core_os/heap/os_malloc/index.html | 2 +- os/core_os/heap/os_realloc/index.html | 2 +- os/core_os/mbuf/OS_MBUF_DATA/index.html | 2 +- os/core_os/mbuf/OS_MBUF_LEADINGSPACE/index.html | 2 +- os/core_os/mbuf/OS_MBUF_PKTHDR/index.html | 2 +- .../mbuf/OS_MBUF_PKTHDR_TO_MBUF/index.html | 2 +- os/core_os/mbuf/OS_MBUF_PKTLEN/index.html | 2 +- .../mbuf/OS_MBUF_TRAILINGSPACE/index.html | 2 +- os/core_os/mbuf/OS_MBUF_USRHDR/index.html | 2 +- os/core_os/mbuf/OS_MBUF_USRHDR_LEN/index.html | 2 +- os/core_os/mbuf/mbuf/index.html | 2 +- os/core_os/mbuf/os_mbuf_adj/index.html | 2 +- os/core_os/mbuf/os_mbuf_append/index.html | 2 +- os/core_os/mbuf/os_mbuf_concat/index.html | 2 +- os/core_os/mbuf/os_mbuf_copydata/index.html | 2 +- os/core_os/mbuf/os_mbuf_copyinto/index.html | 2 +- os/core_os/mbuf/os_mbuf_dup/index.html | 2 +- os/core_os/mbuf/os_mbuf_extend/index.html | 2 +- os/core_os/mbuf/os_mbuf_free_chain/index.html | 2 +- os/core_os/mbuf/os_mbuf_get/index.html | 2 +- os/core_os/mbuf/os_mbuf_get_pkthdr/index.html | 2 +- os/core_os/mbuf/os_mbuf_memcmp/index.html | 2 +- os/core_os/mbuf/os_mbuf_off/index.html | 2 +- os/core_os/mbuf/os_mbuf_pool_init/index.html | 2 +- os/core_os/mbuf/os_mbuf_prepend/index.html | 2 +- os/core_os/mbuf/os_mbuf_pullup/index.html | 2 +- .../memory_pool/OS_MEMPOOL_BYTES/index.html | 2 +- .../memory_pool/OS_MEMPOOL_SIZE/index.html | 2 +- os/core_os/memory_pool/memory_pool/index.html | 2 +- .../memory_pool/os_memblock_get/index.html | 2 +- .../memory_pool/os_memblock_put/index.html | 2 +- .../memory_pool/os_mempool_init/index.html | 2 +- os/core_os/mqueue/mqueue/index.html | 2 +- os/core_os/mqueue/os_mqueue_get/index.html | 2 +- os/core_os/mqueue/os_mqueue_init/index.html | 2 +- os/core_os/mqueue/os_mqueue_put/index.html | 2 +- os/core_os/msys/msys/index.html | 2 +- os/core_os/msys/os_msys_get/index.html | 2 +- os/core_os/msys/os_msys_get_pkthdr/index.html | 2 +- os/core_os/msys/os_msys_register/index.html | 2 +- os/core_os/msys/os_msys_reset/index.html | 2 +- os/core_os/mutex/mutex/index.html | 2 +- os/core_os/mutex/os_mutex_init/index.html | 2 +- os/core_os/mutex/os_mutex_pend/index.html | 2 +- os/core_os/mutex/os_mutex_release/index.html | 2 +- os/core_os/mynewt_os/index.html | 2 +- os/core_os/os_init/index.html | 2 +- os/core_os/os_start/index.html | 2 +- os/core_os/os_started/index.html | 2 +- os/core_os/porting/port_bsp/index.html | 2 +- os/core_os/porting/port_cpu/index.html | 2 +- os/core_os/porting/port_mcu/index.html | 2 +- os/core_os/porting/port_os/index.html | 2 +- .../sanity/os_sanity_check_init/index.html | 2 +- .../sanity/os_sanity_check_register/index.html | 2 +- .../sanity/os_sanity_check_reset/index.html | 2 +- .../sanity/os_sanity_task_checkin/index.html | 2 +- .../sanity/os_sanity_task_init/index.html | 2 +- os/core_os/sanity/sanity/index.html | 2 +- os/core_os/semaphore/os_sem_init/index.html | 2 +- os/core_os/semaphore/os_sem_pend/index.html | 2 +- os/core_os/semaphore/os_sem_release/index.html | 2 +- os/core_os/semaphore/semaphore/index.html | 2 +- os/core_os/task/os_task_count/index.html | 2 +- .../task/os_task_info_get_next/index.html | 2 +- os/core_os/task/os_task_init/index.html | 2 +- os/core_os/task/task/index.html | 2 +- os/core_os/time/os_gettimeofday/index.html | 2 +- os/core_os/time/os_settimeofday/index.html | 2 +- os/core_os/time/os_time/index.html | 2 +- os/core_os/time/os_time_delay/index.html | 2 +- os/core_os/time/os_time_get/index.html | 2 +- os/core_os/time/os_time_tick/index.html | 2 +- os/get_started/cross_tools/index.html | 2 +- os/get_started/docker/index.html | 2 +- os/get_started/get_started/index.html | 2 +- os/get_started/native_tools/index.html | 2 +- os/get_started/project_create/index.html | 2 +- os/get_started/vocabulary/index.html | 2 +- os/introduction/index.html | 2 +- os/modules/baselibc/index.html | 2 +- .../bootloader/boot_build_status/index.html | 2 +- .../bootloader/boot_build_status_one/index.html | 2 +- .../bootloader/boot_clear_status/index.html | 2 +- os/modules/bootloader/boot_copy_area/index.html | 2 +- .../bootloader/boot_copy_image/index.html | 2 +- .../bootloader/boot_erase_area/index.html | 2 +- os/modules/bootloader/boot_fill_slot/index.html | 2 +- .../boot_find_image_area_idx/index.html | 2 +- .../bootloader/boot_find_image_part/index.html | 2 +- .../bootloader/boot_find_image_slot/index.html | 2 +- os/modules/bootloader/boot_go/index.html | 2 +- .../bootloader/boot_init_flash/index.html | 2 +- os/modules/bootloader/boot_move_area/index.html | 2 +- .../boot_read_image_header/index.html | 2 +- .../boot_read_image_headers/index.html | 2 +- .../bootloader/boot_read_status/index.html | 2 +- .../boot_select_image_slot/index.html | 2 +- os/modules/bootloader/boot_slot_addr/index.html | 2 +- .../bootloader/boot_slot_to_area_idx/index.html | 2 +- .../bootloader/boot_swap_areas/index.html | 2 +- .../bootloader/boot_vect_delete_main/index.html | 2 +- .../bootloader/boot_vect_delete_test/index.html | 2 +- .../bootloader/boot_vect_read_main/index.html | 2 +- .../bootloader/boot_vect_read_one/index.html | 2 +- .../bootloader/boot_vect_read_test/index.html | 2 +- .../bootloader/boot_write_status/index.html | 2 +- os/modules/bootloader/bootloader/index.html | 2 +- os/modules/console/console/index.html | 2 +- .../console/console_blocking_mode/index.html | 2 +- os/modules/console/console_echo/index.html | 2 +- os/modules/console/console_init/index.html | 2 +- os/modules/console/console_is_init/index.html | 2 +- os/modules/console/console_printf/index.html | 2 +- os/modules/console/console_read/index.html | 2 +- os/modules/console/console_write/index.html | 2 +- os/modules/devmgmt/newtmgr/index.html | 2 +- os/modules/devmgmt/oicmgr/index.html | 2 +- os/modules/elua/elua/index.html | 2 +- os/modules/elua/lua_init/index.html | 2 +- os/modules/elua/lua_main/index.html | 2 +- os/modules/fs/fs/fs/index.html | 2 +- os/modules/fs/fs/fs_close/index.html | 2 +- os/modules/fs/fs/fs_closedir/index.html | 2 +- os/modules/fs/fs/fs_dirent_is_dir/index.html | 2 +- os/modules/fs/fs/fs_dirent_name/index.html | 2 +- os/modules/fs/fs/fs_filelen/index.html | 2 +- os/modules/fs/fs/fs_getpos/index.html | 2 +- os/modules/fs/fs/fs_mkdir/index.html | 2 +- os/modules/fs/fs/fs_open/index.html | 2 +- os/modules/fs/fs/fs_opendir/index.html | 2 +- os/modules/fs/fs/fs_ops/index.html | 2 +- os/modules/fs/fs/fs_read/index.html | 2 +- os/modules/fs/fs/fs_readdir/index.html | 2 +- os/modules/fs/fs/fs_register/index.html | 2 +- os/modules/fs/fs/fs_rename/index.html | 2 +- os/modules/fs/fs/fs_return_codes/index.html | 2 +- os/modules/fs/fs/fs_seek/index.html | 2 +- os/modules/fs/fs/fs_unlink/index.html | 2 +- os/modules/fs/fs/fs_write/index.html | 2 +- os/modules/fs/fs/fsutil_read_file/index.html | 2 +- os/modules/fs/fs/fsutil_write_file/index.html | 2 +- os/modules/fs/nffs/nffs/index.html | 2 +- os/modules/fs/nffs/nffs_area_desc/index.html | 2 +- os/modules/fs/nffs/nffs_config/index.html | 2 +- os/modules/fs/nffs/nffs_detect/index.html | 2 +- os/modules/fs/nffs/nffs_format/index.html | 2 +- os/modules/fs/nffs/nffs_init/index.html | 2 +- os/modules/fs/nffs/nffs_internals/index.html | 2 +- os/modules/fs/otherfs/index.html | 2 +- os/modules/hal/hal/index.html | 2 +- os/modules/hal/hal_adc/hal_adc/index.html | 2 +- os/modules/hal/hal_api/index.html | 2 +- os/modules/hal/hal_architecture/index.html | 2 +- .../hal/hal_cputime/hal_cpu_timer/index.html | 2 +- os/modules/hal/hal_creation/index.html | 2 +- os/modules/hal/hal_dac/hal_dac/index.html | 2 +- os/modules/hal/hal_flash/hal_flash/index.html | 2 +- .../hal/hal_flash/hal_flash_int/index.html | 2 +- .../hal/hal_flash/hal_flash_map/index.html | 2 +- os/modules/hal/hal_gpio/hal_gpio/index.html | 2 +- os/modules/hal/hal_i2c/hal_i2c/index.html | 2 +- os/modules/hal/hal_in_libraries/index.html | 2 +- os/modules/hal/hal_pwm/hal_pwm/index.html | 2 +- os/modules/hal/hal_spi/hal_spi/index.html | 2 +- os/modules/hal/hal_system/hal_sys/index.html | 2 +- os/modules/hal/hal_uart/hal_uart/index.html | 2 +- os/modules/imgmgr/imgmgr/index.html | 2 +- os/modules/imgmgr/imgmgr_module_init/index.html | 2 +- os/modules/imgmgr/imgr_ver_parse/index.html | 2 +- os/modules/imgmgr/imgr_ver_str/index.html | 2 +- os/modules/json/json/index.html | 2 +- .../json/json_encode_object_entry/index.html | 2 +- .../json/json_encode_object_finish/index.html | 2 +- .../json/json_encode_object_key/index.html | 2 +- .../json/json_encode_object_start/index.html | 2 +- os/modules/json/json_read_object/index.html | 2 +- os/modules/logs/logs/index.html | 2 +- os/modules/shell/shell/index.html | 2 +- os/modules/shell/shell_cmd_register/index.html | 2 +- .../shell/shell_nlip_input_register/index.html | 2 +- os/modules/shell/shell_nlip_output/index.html | 2 +- os/modules/shell/shell_task_init/index.html | 2 +- os/modules/stats/stats/index.html | 2 +- .../sysinitconfig/sysinitconfig/index.html | 2 +- os/modules/testutil/test_assert/index.html | 2 +- os/modules/testutil/test_case/index.html | 2 +- os/modules/testutil/test_decl/index.html | 2 +- os/modules/testutil/test_pass/index.html | 2 +- os/modules/testutil/test_suite/index.html | 2 +- os/modules/testutil/testutil/index.html | 2 +- os/modules/testutil/tu_init/index.html | 2 +- os/modules/testutil/tu_restart/index.html | 2 +- os/os_user_guide/index.html | 2 +- os/tutorials/STM32F303/index.html | 2 +- os/tutorials/air_quality_sensor/index.html | 2 +- os/tutorials/arduino_zero/index.html | 2 +- os/tutorials/blehci_project/index.html | 2 +- os/tutorials/bleprph/bleprph-adv/index.html | 2 +- .../bleprph/bleprph-chr-access/index.html | 2 +- os/tutorials/bleprph/bleprph-conn/index.html | 2 +- os/tutorials/bleprph/bleprph-intro/index.html | 2 +- os/tutorials/bleprph/bleprph-svc-reg/index.html | 2 +- os/tutorials/bletiny_project/index.html | 2 +- os/tutorials/blinky_primo/index.html | 2 +- os/tutorials/blinky_sram_olimex/index.html | 2 +- os/tutorials/event_queue/index.html | 2 +- os/tutorials/ibeacon/index.html | 2 +- os/tutorials/nRF52/index.html | 2 +- os/tutorials/olimex/index.html | 2 +- os/tutorials/pin-wheel-mods/index.html | 2 +- os/tutorials/project-slinky/index.html | 2 +- os/tutorials/project-target-slinky/index.html | 2 +- os/tutorials/repo/add_repos/index.html | 2 +- os/tutorials/repo/create_repo/index.html | 2 +- os/tutorials/repo/upgrade_repo/index.html | 2 +- os/tutorials/tutorials/index.html | 2 +- os/tutorials/unit_test/index.html | 2 +- pages/ble/index.html | 2 +- pages/securitybullets/index.html | 2 +- quick-start/index.html | 2 +- search.html | 2 +- sitemap.xml | 26 ++++++++++---------- talks/index.html | 2 +- v0_9_0/sitemap.xml | 26 ++++++++++---------- 303 files changed, 369 insertions(+), 371 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/about/index.html ---------------------------------------------------------------------- diff --git a/about/index.html b/about/index.html index 627c3e0..9d54e0e 100644 --- a/about/index.html +++ b/about/index.html @@ -228,7 +228,7 @@ <footer class="row"> <div class="col-xs-12"> - <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p> + <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p> </div> <div class="col-xs-12"> http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/community/index.html ---------------------------------------------------------------------- diff --git a/community/index.html b/community/index.html index 29413e1..3b722ba 100644 --- a/community/index.html +++ b/community/index.html @@ -218,7 +218,7 @@ <footer class="row"> <div class="col-xs-12"> - <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p> + <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p> </div> <div class="col-xs-12"> http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/develop/mkdocs/search_index.json ---------------------------------------------------------------------- diff --git a/develop/mkdocs/search_index.json b/develop/mkdocs/search_index.json index 8beca40..9973a91 100644 --- a/develop/mkdocs/search_index.json +++ b/develop/mkdocs/search_index.json @@ -357,7 +357,7 @@ }, { "location": "/os/get_started/project_create/", - "text": "Create Your First Mynewt Project\n\n\nThis page shows how to create a Mynewt Project using the \nnewt\n command-line tool.\n\n\n\n\nPre-Requisites\n\n\n\n\nNewt:\n\n\nIf you have taken the Docker route, you have already installed Newt.\n\n\nIf you have taken the native install route, you have to ensure that you have installed the Newt tool following the instructions for \nMac\n or \nLinux\n as appropriate, and that the \nnewt\n command is in your system path. \n\n\n\n\n\n\nYou must have Internet connectivity to fetch remote Mynewt components.\n\n\nYou must \ninstall the compiler tools\n to \nsupport native compiling to build the project this tutorial creates. \n\n\n\n\n\n\nNewt New\n\n\nChoose a project name. For this tutorial we will call this project \nmyproj\n.\nEnter the \nnewt new myproj\n command. \n\n\n$ newt new myproj\nDownloading project skeleton from apache/incubator-mynewt-blinky...\nInstalling skeleton in myproj...\nProject myproj successfully crea ted.\n\n\n\n\n\n\n\nNewt populates this new project with a base skeleton of a new Apache Mynewt \nproject. It has the following structure. \n\n\nNote\n: If you do not have \ntree\n, install it by running \nbrew install tree\n.\n\n\n$ cd myproj\n$ tree \n.\n\u251c\u2500\u2500 DISCLAIMER\n\u251c\u2500\u2500 LICENSE\n\u251c\u2500\u2500 NOTICE\n\u251c\u2500\u2500 README.md\n\u251c\u2500\u2500 apps\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 blinky\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 pkg.yml\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 src\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 main.c\n\u251c\u2500\u2500 project.yml\n\u2514\u2500\u2500 targets\n \u251c\u2500\u2500 my_blinky_sim\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 pkg.yml\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 target.yml\n \u2514\u2500\u2500 unittest\n \u251c\u2500\u2500 pkg.yml\n \u2514\u2500\u2500 target.yml\n\n6 directories, 11 files\n\n\n\n\n\n\n\nThe Newt tool has installed the base files for a project comprising the following:\n\n\n\n\nThe file \nproject.yml\n contains the repository list that the project uses to fetch\nits packages. Your project is a collection of repositories. In this case, the project just\ncomprises the core mynewt repository. Later you will add more repositories\nto include other mynewt components.\n\n\nThe file \napps/blinky/pkg.yml\n contains the description of your application\nand its package dependencies.\n\n\nA \ntarget\n directory containing \nmy_blinky_sim\n, a target descriptor used to\nbuild a version of myproj. Use \nnewt target show\n to see available build \ntargets.\n\n\nA non-buildable target called \nunittest\n. This is used internally by \nnewt\n and is not a formal build target.\n\n\n\n\nNOTE:\n The actual code and package files are not installed \n(except the template for \nmain.c\n). See the next step for installing the packages.\n\n\nNOTE:\n By default newt uses the code in the master branch. This is the latest stable\ncode for newt. If you need to use a different branch, you can set this in the project.yml\nfile. \n\n\nrepository.apache-mynewt-core:\n type: github\n vers: 0-latest\n user: apache\n repo: incubator-mynewt-core\n\n\n\n\n\nChanging to 0-dev will put you on the develop branch. \nThe Develop Branch may not be stable and \nyou may encounter bugs or other problems.\n\n\n\n\nNewt Install\n\n\nOnce you've switched into your new project's directory, the next step is to fetch\nany dependencies this project has. By default, all Newt projects rely on a\nsingle remote repository, apache-mynewt-core. The \nnewt install\n command will\nfetch this repository.\n\n\n$ newt install\napache-mynewt-core\n\n\n\n\n\nNOTE:\n \napache-mynewt-core\n may take a while to download. To see progress,\nuse the \n-v\n (verbose) option to install. \n\n\n\n\nOnce \nnewt install\n has successfully finished, the contents of \napache-mynewt-core\n will have been downloaded into your local directory. You can view them by issuing the following commands in the base directory of the new project. The actual output will depend on what is in the latest 'master' branch you have pulled from.\n\n\n$ tree -L 2 repos/apache-mynewt-core/\nrepos/apache-mynewt-core/\nrepos/apache-mynewt-core/\n\u251c\u2500\u2500 CODING_STANDARDS.md\n\u251c\u2500\u2500 DISCLAIMER\n\u251c\u2500\u2500 LICENSE\n\u251c\u2500\u2500 NOTICE\n\u251c\u2500\u2500 README.md\n\u251c\u2500\u2500 RELEASE_NOTES.md\n\u251c\u2500\u2500 apps\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 blecent\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 blehci\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bleprph\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bleprph_oic\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bletest\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bletiny\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bleuart\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 boot\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ffs2native\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ocf_sample\n\u2502\u00a0\u00a0 \u251c \u2500\u2500 slinky\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 slinky_oic\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 spitest\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 splitty\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 test\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 timtest\n\u251c\u2500\u2500 boot\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 boot_serial\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bootutil\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 split\n\u251c\u2500\u2500 compiler\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 arm-none-eabi-m0\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 arm-none-eabi-m4\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 gdbmacros\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 sim\n\u251c\u2500\u2500 crypto\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 mbedtls\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 tinycrypt\n\u251c\u2500\u2500 docs\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 doxygen.xml\n\u251c\u2500\u2500 encoding\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 base64\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 cborattr\n\u2502\u00a0\u00a 0 \u251c\u2500\u2500 json\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 tinycbor\n\u251c\u2500\u2500 fs\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 fcb\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 fs\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 nffs\n\u251c\u2500\u2500 hw\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bsp\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 cmsis-core\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 drivers\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 hal\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 mcu\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 scripts\n\u251c\u2500\u2500 kernel\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 os\n\u251c\u2500\u2500 libc\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 baselibc\n\u251c\u2500\u2500 mgmt\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 imgmgr\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 mgmt\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 newtmgr\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 oicmgr\n\u251c\u2500\u2500 net\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ip\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 nimble\n\u2502\u00a0 \u00a0 \u251c\u2500\u2500 oic\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 wifi\n\u251c\u2500\u2500 project.yml\n\u251c\u2500\u2500 repository.yml\n\u251c\u2500\u2500 sys\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 config\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 console\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 coredump\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 defs\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 flash_map\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 id\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 log\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 mfg\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 reboot\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 shell\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 stats\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 sysinit\n\u251c\u2500\u2500 targets\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 unittest\n\u251c\u2500\u2500 test\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 crash_test\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 flash_test\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 runtest\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 testreport\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 testutil\n\u251c\u2500\u2500 time\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 datetime\n\u2514\u2500\u2500 util\n \u251c\u2500\u2500 cbmem\n \u251c\u2500\u2500 crc\n \u2514\u2500\u2500 mem\n\n87 directories, 9 files\n\n\n\n\n\nAs you can see, the core of the Apache Mynewt operating system has been brought \ninto your local directory. \n\n\n\n\nTest the project's packages\n\n\nYou have already built your first basic project. You can ask Newt to execute the unit tests in a package. For example, to test the \nlibs/os\n package in the \napache-mynewt-core\n repo, call newt as shown below.\n\n\n$ newt test @apache-mynewt-core/sys/config\nTesting package @apache-mynewt-core/sys/config/test-fcb\nCompiling bootutil_misc.c\nCompiling image_ec.c\nCompiling image_rsa.c\nCompiling image_validate.c\n\nsnip\n\n\n\n\n\n\nNOTE:\n If you've installed the latest gcc using homebrew on your Mac, you will likely be running gcc-6. Make sure you have a djusted the compiler.yml configuration to reflect that as noted in \nNative Install Option\n. You can choose to downgrade to gcc-5 in order to use the default gcc compiler configuration for MyNewt.\n\n\nNOTE\n If you are running the standard gcc for 64-bit machines, it does not support 32-bit. In that case you will see compilation errors. You need to install multiboot gcc (e.g. gcc-multilib if you running on a 64-bit Ubuntu).\n\n\n$ brew uninstall gcc-6\n$ brew link gcc-5\n\n\n\n\n\n\n\nTo test all the packages in a project, specify \nall\n instead of the package name.\n\n\n$ newt test all\n...lots of compiling and testing...\n...about 2 minutes later ...\nCompiling mn_sock_test.c\nArchiving mn_socket.a\nLinking test_mn_socket\nExecuting test: /Users/dsimmons/myproj/bin/unittest/sys/mn_socket/test_mn_socket\nPassed tests: [libs/json libs/util libs/mbedtls net/nimble/host hw/hal libs/bootutil sys/log sys/config sys/fcb fs/nffs libs/os libs/boot_serial sys/mn_socket]\nAll tests passed \n\n\n\n\n\n\n\nBuild the Project\n\n\nTo build and run your new application, simply issue the following command:\n\n\n$ newt build my_blinky_sim \nBuilding target targets/my_blinky_sim\nCompiling main.c\nArchiving blinky.a\nCompiling hal_bsp.c\nCompiling os_bsp.c\nCompiling sbrk.c\nArchiving native.a\nCompiling flash_map.c\n\nsnip\n\nLinking blinky.elf\nApp successfully built: /Users/dsimmons/myproj/bin/my_blinky_sim/apps/blinky/blinky.elf\n\n\n\n\n\n\n\nRun the Project\n\n\nYou can run the simulated version of your project and see the simulated LED\nblink.\n\n\n$ ./bin/my_blinky_sim/apps/blinky/blinky.elf\nhal_gpio set pin 1 to 0\n\n\n\n\n\n\n\nComplete\n\n\nCongratulations, you have created your first project! The blinky application\nis not terribly exciting when it is run in the simulator, as there is no LED to\nblink. Apache Mynewt has a lot more functionality than just running simulated\napplications. It provides all the features you'll need to cross-compile your\napplicat ion, run it on real hardware and develop a full featured application.\n\n\nIf you're interested in learning more, a good next step is to dig in to one of\nthe \ntutorials\n and get a Mynewt project running on real hardware.\n\n\nHappy Hacking!", + "text": "Create Your First Mynewt Project\n\n\nThis page shows how to create a Mynewt Project using the \nnewt\n command-line tool.\n\n\n\n\nPre-Requisites\n\n\n\n\nNewt:\n\n\nIf you have taken the Docker route, you have already installed Newt.\n\n\nIf you have taken the native install route, you have to ensure that you have installed the Newt tool following the instructions for \nMac\n or \nLinux\n as appropriate, and that the \nnewt\n command is in your system path. \n\n\n\n\n\n\nYou must have Internet connectivity to fetch remote Mynewt components.\n\n\nYou must \ninstall the compiler tools\n to \nsupport native compiling to build the project this tutorial creates. \n\n\n\n\n\n\nNewt New\n\n\nChoose a project name. For this tutorial we will call this project \nmyproj\n.\nEnter the \nnewt new myproj\n command. \n\n\n$ newt new myproj\nDownloading project skeleton from apache/incubator-mynewt-blinky...\nInstalling skeleton in myproj...\nProject myproj successfully crea ted.\n\n\n\n\n\n\n\nNewt populates this new project with a base skeleton of a new Apache Mynewt \nproject. It has the following structure. \n\n\nNote\n: If you do not have \ntree\n, install it by running \nbrew install tree\n.\n\n\n$ cd myproj\n$ tree \n.\n\u251c\u2500\u2500 DISCLAIMER\n\u251c\u2500\u2500 LICENSE\n\u251c\u2500\u2500 NOTICE\n\u251c\u2500\u2500 README.md\n\u251c\u2500\u2500 apps\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 blinky\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 pkg.yml\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 src\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 main.c\n\u251c\u2500\u2500 project.yml\n\u2514\u2500\u2500 targets\n \u251c\u2500\u2500 my_blinky_sim\n \u2502\u00a0\u00a0 \u251c\u2500\u2500 pkg.yml\n \u2502\u00a0\u00a0 \u2514\u2500\u2500 target.yml\n \u2514\u2500\u2500 unittest\n \u251c\u2500\u2500 pkg.yml\n \u2514\u2500\u2500 target.yml\n\n6 directories, 11 files\n\n\n\n\n\n\n\nThe Newt tool has installed the base files for a project comprising the following:\n\n\n\n\nThe file \nproject.yml\n contains the repository list that the project uses to fetch\nits packages. Your project is a collection of repositories. In this case, the project just\ncomprises the core mynewt repository. Later you will add more repositories\nto include other mynewt components.\n\n\nThe file \napps/blinky/pkg.yml\n contains the description of your application\nand its package dependencies.\n\n\nA \ntarget\n directory containing \nmy_blinky_sim\n, a target descriptor used to\nbuild a version of myproj. Use \nnewt target show\n to see available build \ntargets.\n\n\nA non-buildable target called \nunittest\n. This is used internally by \nnewt\n and is not a formal build target.\n\n\n\n\nNOTE:\n The actual code and package files are not installed \n(except the template for \nmain.c\n). See the next step for installing the packages.\n\n\nNOTE:\n By default newt uses the code in the master branch. This is the latest stable\ncode for newt. If you need to use a different branch, you can set this in the project.yml\nfile. \n\n\nrepository.apache-mynewt-core:\n type: github\n vers: 0-latest\n user: apache\n repo: incubator-mynewt-core\n\n\n\n\n\nChanging to 0-dev will put you on the develop branch. \nThe Develop Branch may not be stable and \nyou may encounter bugs or other problems.\n\n\n\n\nNewt Install\n\n\nOnce you've switched into your new project's directory, the next step is to fetch\nany dependencies this project has. By default, all Newt projects rely on a\nsingle remote repository, apache-mynewt-core. The \nnewt install\n command will\nfetch this repository.\n\n\n$ newt install\napache-mynewt-core\n\n\n\n\n\nNOTE:\n \napache-mynewt-core\n may take a while to download. To see progress,\nuse the \n-v\n (verbose) option to install. \n\n\n\n\nOnce \nnewt install\n has successfully finished, the contents of \napache-mynewt-core\n will have been downloaded into your local directory. You can view them by issuing the following commands in the base directory of the new project. The actual output will depend on what is in the latest 'master' branch you have pulled from.\n\n\n$ tree -L 2 repos/apache-mynewt-core/\nrepos/apache-mynewt-core/\nrepos/apache-mynewt-core/\n\u251c\u2500\u2500 CODING_STANDARDS.md\n\u251c\u2500\u2500 DISCLAIMER\n\u251c\u2500\u2500 LICENSE\n\u251c\u2500\u2500 NOTICE\n\u251c\u2500\u2500 README.md\n\u251c\u2500\u2500 RELEASE_NOTES.md\n\u251c\u2500\u2500 apps\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 blecent\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 blehci\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bleprph\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bleprph_oic\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bletest\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bletiny\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bleuart\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 boot\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ffs2native\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ocf_sample\n\u2502\u00a0\u00a0 \u251c \u2500\u2500 slinky\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 slinky_oic\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 spitest\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 splitty\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 test\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 timtest\n\u251c\u2500\u2500 boot\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 boot_serial\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bootutil\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 split\n\u251c\u2500\u2500 compiler\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 arm-none-eabi-m0\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 arm-none-eabi-m4\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 gdbmacros\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 sim\n\u251c\u2500\u2500 crypto\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 mbedtls\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 tinycrypt\n\u251c\u2500\u2500 docs\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 doxygen.xml\n\u251c\u2500\u2500 encoding\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 base64\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 cborattr\n\u2502\u00a0\u00a 0 \u251c\u2500\u2500 json\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 tinycbor\n\u251c\u2500\u2500 fs\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 fcb\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 fs\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 nffs\n\u251c\u2500\u2500 hw\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bsp\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 cmsis-core\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 drivers\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 hal\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 mcu\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 scripts\n\u251c\u2500\u2500 kernel\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 os\n\u251c\u2500\u2500 libc\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 baselibc\n\u251c\u2500\u2500 mgmt\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 imgmgr\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 mgmt\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 newtmgr\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 oicmgr\n\u251c\u2500\u2500 net\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ip\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 nimble\n\u2502\u00a0 \u00a0 \u251c\u2500\u2500 oic\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 wifi\n\u251c\u2500\u2500 project.yml\n\u251c\u2500\u2500 repository.yml\n\u251c\u2500\u2500 sys\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 config\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 console\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 coredump\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 defs\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 flash_map\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 id\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 log\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 mfg\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 reboot\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 shell\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 stats\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 sysinit\n\u251c\u2500\u2500 targets\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 unittest\n\u251c\u2500\u2500 test\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 crash_test\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 flash_test\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 runtest\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 testreport\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 testutil\n\u251c\u2500\u2500 time\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 datetime\n\u2514\u2500\u2500 util\n \u251c\u2500\u2500 cbmem\n \u251c\u2500\u2500 crc\n \u2514\u2500\u2500 mem\n\n87 directories, 9 files\n\n\n\n\n\nAs you can see, the core of the Apache Mynewt operating system has been brought \ninto your local directory. \n\n\n\n\nTest the project's packages\n\n\nYou have already built your first basic project. You can ask Newt to execute the unit tests in a package. For example, to test the \nlibs/os\n package in the \napache-mynewt-core\n repo, call newt as shown below.\n\n\n$ newt test @apache-mynewt-core/sys/config\nTesting package @apache-mynewt-core/sys/config/test-fcb\nCompiling bootutil_misc.c\nCompiling image_ec.c\nCompiling image_rsa.c\nCompiling image_validate.c\n\nsnip\n\n\n\n\n\n\nNOTE:\n If you've installed the latest gcc using homebrew on your Mac, you will likely be running gcc-6. Make sure you have a djusted the compiler.yml configuration to reflect that as noted in \nNative Install Option\n. You can choose to downgrade to gcc-5 in order to use the default gcc compiler configuration for MyNewt.\n\n\nNOTE:\n If you are running the standard gcc for 64-bit machines, it does not support 32-bit. In that case you will see compilation errors. You need to install multiboot gcc (e.g. gcc-multilib if you running on a 64-bit Ubuntu).\n\n\n$ brew uninstall gcc-6\n$ brew link gcc-5\n\n\n\n\n\n\n\nTo test all the packages in a project, specify \nall\n instead of the package name.\n\n\n$ newt test all\n...lots of compiling and testing...\n...about 2 minutes later ...\nCompiling mn_sock_test.c\nArchiving mn_socket.a\nLinking test_mn_socket\nExecuting test: /Users/dsimmons/myproj/bin/unittest/sys/mn_socket/test_mn_socket\nPassed tests: [libs/json libs/util libs/mbedtls net/nimble/host hw/hal libs/bootutil sys/log sys/config sys/fcb fs/nffs libs/os libs/boot_serial sys/mn_socket]\nAll tests passe d\n\n\n\n\n\n\n\nBuild the Project\n\n\nTo build and run your new application, simply issue the following command:\n\n\n$ newt build my_blinky_sim \nBuilding target targets/my_blinky_sim\nCompiling main.c\nArchiving blinky.a\nCompiling hal_bsp.c\nCompiling os_bsp.c\nCompiling sbrk.c\nArchiving native.a\nCompiling flash_map.c\n\nsnip\n\nLinking blinky.elf\nApp successfully built: /Users/dsimmons/myproj/bin/my_blinky_sim/apps/blinky/blinky.elf\n\n\n\n\n\n\n\nRun the Project\n\n\nYou can run the simulated version of your project and see the simulated LED\nblink.\n\n\n$ ./bin/my_blinky_sim/apps/blinky/blinky.elf\nhal_gpio set pin 1 to 0\n\n\n\n\n\n\n\nComplete\n\n\nCongratulations, you have created your first project! The blinky application\nis not terribly exciting when it is run in the simulator, as there is no LED to\nblink. Apache Mynewt has a lot more functionality than just running simulated\napplications. It provides all the features you'll need to cross-compile your\napplica tion, run it on real hardware and develop a full featured application.\n\n\nIf you're interested in learning more, a good next step is to dig in to one of\nthe \ntutorials\n and get a Mynewt project running on real hardware.\n\n\nHappy Hacking!", "title": "Create Your First Project" }, { @@ -382,7 +382,7 @@ }, { "location": "/os/get_started/project_create/#test-the-projects-packages", - "text": "You have already built your first basic project. You can ask Newt to execute the unit tests in a package. For example, to test the libs/os package in the apache-mynewt-core repo, call newt as shown below. $ newt test @apache-mynewt-core/sys/config\nTesting package @apache-mynewt-core/sys/config/test-fcb\nCompiling bootutil_misc.c\nCompiling image_ec.c\nCompiling image_rsa.c\nCompiling image_validate.c snip NOTE: If you've installed the latest gcc using homebrew on your Mac, you will likely be running gcc-6. Make sure you have adjusted the compiler.yml configuration to reflect that as noted in Native Install Option . You can choose to downgrade to gcc-5 in order to use the default gcc compiler configuration for MyNewt. NOTE If you are running the standard gcc for 64-bit machines, it does not support 32-bit. In that case you will see compilation errors. You need to install multiboot gcc (e.g. gcc-multilib if you running on a 64-bit Ubuntu). $ brew unin stall gcc-6\n$ brew link gcc-5 To test all the packages in a project, specify all instead of the package name. $ newt test all\n...lots of compiling and testing...\n...about 2 minutes later ...\nCompiling mn_sock_test.c\nArchiving mn_socket.a\nLinking test_mn_socket\nExecuting test: /Users/dsimmons/myproj/bin/unittest/sys/mn_socket/test_mn_socket\nPassed tests: [libs/json libs/util libs/mbedtls net/nimble/host hw/hal libs/bootutil sys/log sys/config sys/fcb fs/nffs libs/os libs/boot_serial sys/mn_socket]\nAll tests passed", + "text": "You have already built your first basic project. You can ask Newt to execute the unit tests in a package. For example, to test the libs/os package in the apache-mynewt-core repo, call newt as shown below. $ newt test @apache-mynewt-core/sys/config\nTesting package @apache-mynewt-core/sys/config/test-fcb\nCompiling bootutil_misc.c\nCompiling image_ec.c\nCompiling image_rsa.c\nCompiling image_validate.c snip NOTE: If you've installed the latest gcc using homebrew on your Mac, you will likely be running gcc-6. Make sure you have adjusted the compiler.yml configuration to reflect that as noted in Native Install Option . You can choose to downgrade to gcc-5 in order to use the default gcc compiler configuration for MyNewt. NOTE: If you are running the standard gcc for 64-bit machines, it does not support 32-bit. In that case you will see compilation errors. You need to install multiboot gcc (e.g. gcc-multilib if you running on a 64-bit Ubuntu). $ brew uni nstall gcc-6\n$ brew link gcc-5 To test all the packages in a project, specify all instead of the package name. $ newt test all\n...lots of compiling and testing...\n...about 2 minutes later ...\nCompiling mn_sock_test.c\nArchiving mn_socket.a\nLinking test_mn_socket\nExecuting test: /Users/dsimmons/myproj/bin/unittest/sys/mn_socket/test_mn_socket\nPassed tests: [libs/json libs/util libs/mbedtls net/nimble/host hw/hal libs/bootutil sys/log sys/config sys/fcb fs/nffs libs/os libs/boot_serial sys/mn_socket]\nAll tests passed", "title": "Test the project's packages" }, { @@ -10407,7 +10407,7 @@ }, { "location": "/newt/command_list/newt_mfg/", - "text": "newt mfg \n\n\nProvides commands to create, build, and upload manufacturing image. \n\n\nUsage:\n\n\n newt mfg [flags]\n newt mfg [command]\n\n\n\n\n\nAvailable Commands:\n\n\n create Create a manufacturing flash image\n deploy Builds and uploads a manufacturing image (build + load)\n load Load a manufacturing flash image onto a device\n\n\n\n\n\nFlags:\n\n\n -h, --help=false: help for mfg\n\n\n\n\n\nGlobal Flags:\n\n\n -l, --loglevel=\nWARN\n: Log level, defaults to WARN.\n -o, --outfile string Filename to tee log output to\n -q, --quiet=false: Be quiet; only display error output.\n -s, --silent=false: Be silent; don\nt output anything.\n -v, --verbose=false: Enable verbose output when executing commands.\n\n\n\n\n\nDescription\n\n\n\n\n\n\n\n\nSub-command\n\n\nExplanation\n\n\n\n\n\n\n\n\n\n\ncreate\n\n\nA manufacturing image specifies 1) a boot loader target, and 2) one or more image targets. Assuming the m anufacturing entity has been created and defined in the \nmfgs/\nmfg image name\n/\n package(see Examples below), this command collects the manufacturing related files in the newly created \nbin/mfgs/\nmfg image name\n directory. The collection includes manifests with the image build time, version, manufacturing package build time, image ID (or hash) etc. It is essentially a snapshot of the image data and metadata uploaded to the device flash at manufacturing time. Note that the command expects the targets and images to have already been built using \nnewt build\n and \nnewt create-image\n commands.\n\n\n\n\n\n\ndeploy\n\n\nA combination of build and load commands to put together and upload manufacturing image on to the device.\n\n\n\n\n\n\nload\n\n\nLoads the manufacturing package onto to the flash of the connected device.\n\n\n\n\n\n\n\n\nExamples\n\n\nSuppose you have created two targets (one for the bootloader and one for the \nblinky\n app). \n\n\n$ newt target show\ntargets/my _blinky_sim\n app=apps/blinky\n bsp=@apache-mynewt-core/hw/bsp/native\n build_profile=debug\ntargets/rb_blinky\n app=apps/blinky\n bsp=@apache-mynewt-core/hw/bsp/rb-nano2\n build_profile=debug\ntargets/rb_boot\n app=@apache-mynewt-core/apps/boot\n bsp=@apache-mynewt-core/hw/bsp/rb-nano2\n build_profile=optimized\n\n\n\n\n\nBuild the bootloader and app images.\n\n\n$ newt build rb_boot\n$ newt build rb_boot\n$ newt create-image rb_blinky 0.0.1\n\n\n\n\n\nCreate the directory and package to hold the manufacturing images.\n\n\n$ mkdir -p mfgs/rb_blinky_rsa\n\n\n\n\n\nThe \nrb_blinky_rsa\n package needs a pkg.yml file. In addition it is needs a mfg.yml file where the two constituent targets are defined. An example of each file is shown below.\n\n\n$ more mfgs/rb_blinky_rsa/pkg.yml \npkg.name: \nmfgs/rb_blinky_rsa\n\npkg.type: \nmfg\n\npkg.description: \npkg.author: \npkg.homepage: \n\n\n\n\n\n$ more mfgs/rb_blinky_rsa/mfg.yml \nmfg.bootloader: \ntargets/rb_b oot\n\nmfg.images:\n - \ntargets/rb_blinky\n\n\n\n\n\n\nRun the \nnewt mfg create\n command to collect all the manufacturing snapshot files.\n\n\n$ newt mfg create rb_blinky_rsa\nCreating a manufacturing image from the following files:\n\nsnip\n\nGenerated the following files:\n\nsnip\n\n$", + "text": "newt mfg \n\n\nProvides commands to create, build, and upload manufacturing image. \n\n\nUsage:\n\n\n newt mfg [flags]\n newt mfg [command]\n\n\n\n\n\nAvailable Commands:\n\n\n create Create a manufacturing flash image\n deploy Builds and uploads a manufacturing image (build + load)\n load Load a manufacturing flash image onto a device\n\n\n\n\n\nFlags:\n\n\n -h, --help=false: help for mfg\n\n\n\n\n\nGlobal Flags:\n\n\n -l, --loglevel=\nWARN\n: Log level, defaults to WARN.\n -o, --outfile string Filename to tee log output to\n -q, --quiet=false: Be quiet; only display error output.\n -s, --silent=false: Be silent; don\nt output anything.\n -v, --verbose=false: Enable verbose output when executing commands.\n\n\n\n\n\nDescription\n\n\n\n\n\n\n\n\nSub-command\n\n\nExplanation\n\n\n\n\n\n\n\n\n\n\ncreate\n\n\nA manufacturing image specifies 1) a boot loader target, and 2) one or more image targets. Assuming the m anufacturing entity has been created and defined in the \nmfgs/\nmfg image name\n/\n package(see Examples below), this command collects the manufacturing related files in the newly created \nbin/mfgs/\nmfg image name\n directory. The collection includes manifests with the image build time, version, manufacturing package build time, image ID (or hash) etc. It is essentially a snapshot of the image data and metadata uploaded to the device flash at manufacturing time. Note that the command expects the targets and images to have already been built using \nnewt build\n and \nnewt create-image\n commands.\n\n\n\n\n\n\ndeploy\n\n\nA combination of build and load commands to put together and upload manufacturing image on to the device.\n\n\n\n\n\n\nload\n\n\nLoads the manufacturing package onto to the flash of the connected device.\n\n\n\n\n\n\n\n\nExamples\n\n\nSuppose you have created two targets (one for the bootloader and one for the \nblinky\n app). \n\n\n$ newt target show\ntargets/my _blinky_sim\n app=apps/blinky\n bsp=@apache-mynewt-core/hw/bsp/native\n build_profile=debug\ntargets/rb_blinky\n app=apps/blinky\n bsp=@apache-mynewt-core/hw/bsp/rb-nano2\n build_profile=debug\ntargets/rb_boot\n app=@apache-mynewt-core/apps/boot\n bsp=@apache-mynewt-core/hw/bsp/rb-nano2\n build_profile=optimized\n\n\n\n\n\nCreate the directory to hold the mfg packages.\n\n\n$ mkdir -p mfgs/rb_blinky_rsa\n\n\n\n\n\nThe \nrb_blinky_rsa\n package needs a pkg.yml file. In addition it is needs a mfg.yml file to specify the two constituent targets. An example of each file is shown below.\n\n\n$ more mfgs/rb_blinky_rsa/pkg.yml \npkg.name: \nmfgs/rb_blinky_rsa\n\npkg.type: \nmfg\n\npkg.description: \npkg.author: \npkg.homepage: \n\n\n\n\n\n$ more mfgs/rb_blinky_rsa/mfg.yml \nmfg.bootloader: \ntargets/rb_boot\n\nmfg.images:\n - \ntargets/rb_blinky\n\n\n\n\n\n\nBuild the bootloader and app images.\n\n\n$ newt build rb_boot\n$ newt create-image rb_blinky 0.0.1\n \n\n\n\n\nRun the \nnewt mfg create\n command to collect all the manufacturing snapshot files.\n\n\n$ newt mfg create rb_blinky_rsa\nCreating a manufacturing image from the following files:\n\nsnip\n\nGenerated the following files:\n\nsnip\n\n$", "title": "newt mfg" }, { @@ -10442,7 +10442,7 @@ }, { "location": "/newt/command_list/newt_mfg/#examples", - "text": "Suppose you have created two targets (one for the bootloader and one for the blinky app). $ newt target show\ntargets/my_blinky_sim\n app=apps/blinky\n bsp=@apache-mynewt-core/hw/bsp/native\n build_profile=debug\ntargets/rb_blinky\n app=apps/blinky\n bsp=@apache-mynewt-core/hw/bsp/rb-nano2\n build_profile=debug\ntargets/rb_boot\n app=@apache-mynewt-core/apps/boot\n bsp=@apache-mynewt-core/hw/bsp/rb-nano2\n build_profile=optimized Build the bootloader and app images. $ newt build rb_boot\n$ newt build rb_boot\n$ newt create-image rb_blinky 0.0.1 Create the directory and package to hold the manufacturing images. $ mkdir -p mfgs/rb_blinky_rsa The rb_blinky_rsa package needs a pkg.yml file. In addition it is needs a mfg.yml file where the two constituent targets are defined. An example of each file is shown below. $ more mfgs/rb_blinky_rsa/pkg.yml \npkg.name: mfgs/rb_blinky_rsa \npkg.type: mfg \npkg.description: \npkg.author : \npkg.homepage: $ more mfgs/rb_blinky_rsa/mfg.yml \nmfg.bootloader: targets/rb_boot \nmfg.images:\n - targets/rb_blinky Run the newt mfg create command to collect all the manufacturing snapshot files. $ newt mfg create rb_blinky_rsa\nCreating a manufacturing image from the following files: snip \nGenerated the following files: snip \n$", + "text": "Suppose you have created two targets (one for the bootloader and one for the blinky app). $ newt target show\ntargets/my_blinky_sim\n app=apps/blinky\n bsp=@apache-mynewt-core/hw/bsp/native\n build_profile=debug\ntargets/rb_blinky\n app=apps/blinky\n bsp=@apache-mynewt-core/hw/bsp/rb-nano2\n build_profile=debug\ntargets/rb_boot\n app=@apache-mynewt-core/apps/boot\n bsp=@apache-mynewt-core/hw/bsp/rb-nano2\n build_profile=optimized Create the directory to hold the mfg packages. $ mkdir -p mfgs/rb_blinky_rsa The rb_blinky_rsa package needs a pkg.yml file. In addition it is needs a mfg.yml file to specify the two constituent targets. An example of each file is shown below. $ more mfgs/rb_blinky_rsa/pkg.yml \npkg.name: mfgs/rb_blinky_rsa \npkg.type: mfg \npkg.description: \npkg.author: \npkg.homepage: $ more mfgs/rb_blinky_rsa/mfg.yml \nmfg.bootloader: targets/rb_boot \nmfg.images:\n - targets/rb_blinky Build the boot loader and app images. $ newt build rb_boot\n$ newt create-image rb_blinky 0.0.1 Run the newt mfg create command to collect all the manufacturing snapshot files. $ newt mfg create rb_blinky_rsa\nCreating a manufacturing image from the following files: snip \nGenerated the following files: snip \n$", "title": "Examples" }, { http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/develop/newt/command_list/newt_mfg/index.html ---------------------------------------------------------------------- diff --git a/develop/newt/command_list/newt_mfg/index.html b/develop/newt/command_list/newt_mfg/index.html index 4f3ada0..56f6f9e 100644 --- a/develop/newt/command_list/newt_mfg/index.html +++ b/develop/newt/command_list/newt_mfg/index.html @@ -565,19 +565,12 @@ targets/rb_boot </pre></div> -<p>Build the bootloader and app images.</p> -<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt build rb_boot -$ newt build rb_boot -$ newt create-image rb_blinky 0.0.1 -</pre></div> - - -<p>Create the directory and package to hold the manufacturing images.</p> +<p>Create the directory to hold the mfg packages.</p> <div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ mkdir -p mfgs/rb_blinky_rsa </pre></div> -<p>The <code>rb_blinky_rsa</code> package needs a pkg.yml file. In addition it is needs a mfg.yml file where the two constituent targets are defined. An example of each file is shown below.</p> +<p>The <code>rb_blinky_rsa</code> package needs a pkg.yml file. In addition it is needs a mfg.yml file to specify the two constituent targets. An example of each file is shown below.</p> <div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ more mfgs/rb_blinky_rsa/pkg.yml pkg.name: "mfgs/rb_blinky_rsa" pkg.type: "mfg" @@ -594,6 +587,12 @@ mfg.images: </pre></div> +<p>Build the bootloader and app images.</p> +<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt build rb_boot +$ newt create-image rb_blinky 0.0.1 +</pre></div> + + <p>Run the <code>newt mfg create</code> command to collect all the manufacturing snapshot files.</p> <div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt mfg create rb_blinky_rsa Creating a manufacturing image from the following files: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/develop/os/get_started/project_create/index.html ---------------------------------------------------------------------- diff --git a/develop/os/get_started/project_create/index.html b/develop/os/get_started/project_create/index.html index 86718ae..c03aa79 100644 --- a/develop/os/get_started/project_create/index.html +++ b/develop/os/get_started/project_create/index.html @@ -579,7 +579,7 @@ Compiling image_validate.c <p><strong>NOTE:</strong> If you've installed the latest gcc using homebrew on your Mac, you will likely be running gcc-6. Make sure you have adjusted the compiler.yml configuration to reflect that as noted in <a href="../native_tools/">Native Install Option</a>. You can choose to downgrade to gcc-5 in order to use the default gcc compiler configuration for MyNewt.</p> -<p><strong>NOTE</strong> If you are running the standard gcc for 64-bit machines, it does not support 32-bit. In that case you will see compilation errors. You need to install multiboot gcc (e.g. gcc-multilib if you running on a 64-bit Ubuntu).</p> +<p><strong>NOTE:</strong> If you are running the standard gcc for 64-bit machines, it does not support 32-bit. In that case you will see compilation errors. You need to install multiboot gcc (e.g. gcc-multilib if you running on a 64-bit Ubuntu).</p> <div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ brew uninstall gcc-6 $ brew link gcc-5 </pre></div> http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/develop/sitemap.xml ---------------------------------------------------------------------- diff --git a/develop/sitemap.xml b/develop/sitemap.xml index ca5ad51..8d307ee 100644 --- a/develop/sitemap.xml +++ b/develop/sitemap.xml @@ -4,7 +4,7 @@ <url> <loc>http://mynewt.apache.org/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -13,7 +13,7 @@ <url> <loc>http://mynewt.apache.org/pages/ble/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -22,7 +22,7 @@ <url> <loc>http://mynewt.apache.org/quick-start/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -30,7 +30,7 @@ <url> <loc>http://mynewt.apache.org/about/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -38,7 +38,7 @@ <url> <loc>http://mynewt.apache.org/talks/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -46,7 +46,7 @@ <url> <loc>http://mynewt.apache.org/download/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -54,7 +54,7 @@ <url> <loc>http://mynewt.apache.org/community/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -62,7 +62,7 @@ <url> <loc>http://mynewt.apache.org/events/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -71,7 +71,7 @@ <url> <loc>http://mynewt.apache.org/os/introduction/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -83,7 +83,7 @@ <url> <loc>http://mynewt.apache.org/os/get_started/vocabulary/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> @@ -123,13 +123,13 @@ <url> <loc>http://mynewt.apache.org/faq/how_to_edit_docs/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> <url> <loc>http://mynewt.apache.org/faq/answers/</loc> - <lastmod>2017-01-19</lastmod> + <lastmod>2017-01-25</lastmod> <changefreq>daily</changefreq> </url> http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/download/index.html ---------------------------------------------------------------------- diff --git a/download/index.html b/download/index.html index 22db1c8..0c82cce 100644 --- a/download/index.html +++ b/download/index.html @@ -200,7 +200,7 @@ $ git clone git://github.com/apache/incubator-mynewt-newt.git <footer class="row"> <div class="col-xs-12"> - <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p> + <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p> </div> <div class="col-xs-12"> http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/events/index.html ---------------------------------------------------------------------- diff --git a/events/index.html b/events/index.html index 51da136..48edbf6 100644 --- a/events/index.html +++ b/events/index.html @@ -173,7 +173,7 @@ <footer class="row"> <div class="col-xs-12"> - <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p> + <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p> </div> <div class="col-xs-12"> http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/faq/answers/index.html ---------------------------------------------------------------------- diff --git a/faq/answers/index.html b/faq/answers/index.html index 0b6ac29..9c7d9f2 100644 --- a/faq/answers/index.html +++ b/faq/answers/index.html @@ -352,7 +352,7 @@ <footer class="row"> <div class="col-xs-12"> - <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p> + <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p> </div> <div class="col-xs-12"> http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/faq/how_to_edit_docs/index.html ---------------------------------------------------------------------- diff --git a/faq/how_to_edit_docs/index.html b/faq/how_to_edit_docs/index.html index 7e45883..40db63a 100644 --- a/faq/how_to_edit_docs/index.html +++ b/faq/how_to_edit_docs/index.html @@ -329,7 +329,7 @@ <footer class="row"> <div class="col-xs-12"> - <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p> + <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p> </div> <div class="col-xs-12"> http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8efbd1d9/index.html ---------------------------------------------------------------------- diff --git a/index.html b/index.html index 59ee189..d4acfc5 100644 --- a/index.html +++ b/index.html @@ -302,7 +302,7 @@ <footer class="row"> <div class="col-xs-12"> - <p class="copyright">Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p> + <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p> </div> <div class="col-xs-12">