[third_party/pigweed] Roll 18 commits

581056821fdab2f pw_alignment: Follow the new docs guidelines
54f1045f7e197ac pw_toolchain_bazel: Rename build file templates pa
46b27ea29968182 pw_transfer: Update integration test documentation
410973b058ad4b9 pw_toolchain_bazel: Rename build file templates pa
dd123c8a613483f pw_log: Add initial Rust API
0dadd2e68996d7a pw_tokenizer: Move entry header to a separate stru
2c0b7c88b3daa6d pw_tokenizer: Catch accidental use of test macro
a071b2bf63eddec pw_bluetooth_sapphire: Use pw_test_group for fuzze
a40f262a595caff bazel: Add simple module configuration mechanism
5e64e119af0a5d7 pw_toolchain: Add Bazel toolchain registration hel
6f8d8b1cedcd376 pw_bluetooth_sapphire: Use pw_fuzzer_group
e002e507dd1b9d4 pw_multibuf: Remove unused GN dep
4d128fea5db2a9e bazel: Tidy up WORKSPACE
c6a478ddc4d8374 pw_bluetooth_sapphire: Add sales pitch & roadmap d
583b47ec7ced635 pw_presubmit: Allow full issues.pigweed.dev urls i
4dc48c800711258 pw_multibuf: Remove dep on external gtest
b7dfabebf739ad3 pw_transfer: Set clients to transfer_v2
c943a7e9789d83f pw_bluetooth: Add LE Set Host Feature command

https://pigweed.googlesource.com/pigweed/pigweed
third_party/pigweed Rolled-Commits: b4e82abda1f7785..581056821fdab2f
Roller-URL: https://ci.chromium.org/b/8762922447406404193
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I70593fba80dc73bbd412db38ca24d6679c7751a2
Reviewed-on: https://pigweed-review.googlesource.com/c/gonk/+/183290
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
1 file changed
tree: 1083f74313110b5ee21418577c98208ffc3c8f2c
  1. applications/
  2. build_overrides/
  3. scripts/
  4. targets/
  5. third_party/
  6. tools/
  7. .gitignore
  8. .gitmodules
  9. .gn
  10. banner.txt
  11. bootstrap.sh
  12. BUILD.gn
  13. BUILDCONFIG.gn
  14. OWNERS
  15. pigweed.json
  16. README.md
README.md

Gonk

Getting Started

  1. Clone the repo

    git clone https://pigweed.googlesource.com/pigweed/gonk
    
  2. Source bootstrap.sh to download all compilers and tooling into the environment directory:

    . ./bootstrap.sh
    

    This should init all git submodules for you.

  3. From here on the Pigweed environment is activated. You can activate the environment in a new shell without re-running bootstrap by sourcing activate.sh

    . ./activate.sh
    

Compile:

Build for the host and device by running:

pw build

This is mostly a shortcut with nice output for running gn gen out/gn and ninja -C out/gn.

The build commands are defined in: //tools/gonk_tools/build_project.py.

Run:

Host

Run the host app and connect to it via pw-system-console:

./out/gn/host_device_simulator.speed_optimized/obj/applications/system_example/bin/system_example & \
  pw-system-console --socket-addr default \
    --proto-globs third_party/pigweed/pw_rpc/echo.proto ; \
  killall system_example

On device

Flashing

openocd -s $PW_PIGWEED_CIPD_INSTALL_DIR/share/openocd/scripts \
  -f $GONK_ROOT/targets/stm32f769i_disc0_stm32cube/openocd_stm32f7xx.cfg \
  -c "program out/gn/stm32f769i_disc0_stm32cube.size_optimized/obj/applications/system_example/bin/system_example.elf reset exit"

Updating STM32Cube

Checkout the desired commits in each of these submodules:

third_party/stm32cube_f7/cmsis_core
third_party/stm32cube_f7/cmsis_device
third_party/stm32cube_f7/hal_driver

Then run from Gonk root:

python -m pw_stm32cube_build gen_file_list third_party/stm32cube_f7