Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/master 0e633da1e -> ea9e96af2


Add "build_profile=optimized" step for bootloader.


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/029d53cc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/029d53cc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/029d53cc

Branch: refs/heads/master
Commit: 029d53ccab4a73cd839868ad11c8e2004b4083c2
Parents: 4217439
Author: Christopher Collins <ccoll...@apache.org>
Authored: Thu Mar 24 11:55:23 2016 -0700
Committer: Christopher Collins <ccoll...@apache.org>
Committed: Thu Mar 24 11:55:23 2016 -0700

----------------------------------------------------------------------
 docs/os/tutorials/arduino_zero.md | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/029d53cc/docs/os/tutorials/arduino_zero.md
----------------------------------------------------------------------
diff --git a/docs/os/tutorials/arduino_zero.md 
b/docs/os/tutorials/arduino_zero.md
index aebfd21..7a7af40 100644
--- a/docs/os/tutorials/arduino_zero.md
+++ b/docs/os/tutorials/arduino_zero.md
@@ -96,6 +96,8 @@ $ newt target set arduino_boot 
bsp=@mynewt_arduino_zero/hw/bsp/arduino_zero
 Target targets/arduino_boot successfully set target.bsp to 
@mynewt_arduino_zero/hw/bsp/arduino_zero
 $ newt target set arduino_boot app=@apache-mynewt-core/apps/boot 
 Target targets/arduino_boot successfully set target.app to 
@apache-mynewt-core/apps/boot
+$ newt target set arduino_boot build_profile=optimized
+Target targets/arduino_boot successfully set target.build_profile to optimized
 $ newt target set arduino_boot features=arduino_zero_pro 
 Target targets/arduino_boot successfully set pkg.features to arduino_zero_pro
 ```
@@ -108,6 +110,9 @@ These commands do a few things:
   * Set the board support package for the target to 
     ```@mynewt_arduino_zero/hw/bsp/arduino_zero```.  This is a reference to 
the downloaded 
     Arduino Zero support from Github.
+  * Use the "optimized" build profile for the ```arduino_boot``` target.  This
+    instructs Newt to generate smaller and more efficient code for this target.
+    This setting is necessary due to the bootloader's strict size constraints.
   * Tells the Board Support Package to enable support for the Arduino Zero 
Pro, and not 
     the Arduino Zero.  This is done through setting a build feature.  If you 
are building 
     for an Arduino Zero, and not a Zero Pro, this feature should be set to 
```arduino_zero```.

Reply via email to