[third_party/pigweed] Roll 14 commits

f0c03bbd9de36f5 pw_emu: Better handling for startup errors
82c82d97bc6d0e9 pw_ide: Add command to build VSC extension
8ffa93fc685c320 pw_ide: Remove VSIX installation stuff
7c4f734ccdd67ed pw_containers: Fix missing include
00f0e4bc993699d pw_docgen: Update Pigweed Live schedule
05e3cde43ccd253 pw_emu: qemu: Improve the QMP handshake handling
2ebb7e812dbed38 pw_cli: Allow banner to be suppressed
b67f836deb188a8 pw_env_setup: Use ARM protoc version on ARM Macs
b622405a1fd0ff2 pw_ide: Don't warn on missing extensions.json
bf540cfa0a2b886 pw_ide: Alpha-sort the list of targets in VSC
5ae525ae027f91c pw_ide: Auto-run build system command
44b249bd4db94c6 pw_ide: Update VSC Python config
4fe32ffea03645a pw_format: Allow format strings to be composed at
2a615fa34dea3f8 pw_env_setup: Fix typo in error message

https://pigweed.googlesource.com/pigweed/pigweed
third_party/pigweed Rolled-Commits: f4abfe27a93e7c7..f0c03bbd9de36f5
Roller-URL: https://ci.chromium.org/b/8761744688943512513
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Id4d8992a98bd986a1d9eb30badc83122b3f0cbd1
Reviewed-on: https://pigweed-review.googlesource.com/c/gonk/+/185023
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: 19fae1c4940a66b9cfa21349ef31807d1ade6342
  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