[third_party/pigweed] Roll 42 commits

af57fad456ce3b6 Bazel: Remove most copts from pw_cc_library macro
7eb9df1b37c6a76 docs: Mention command for updating Py dep hashes
e6aa95bf08fba2b pw_env_setup: Pin pip and pip-tools
f3190dcd2b5a44c pw_arduino_build: STM32 Core fixes
aac7fab8fbb8d1f pw_bluetooth: Define LEExtendedCreateConnectionV1
a893425653d8c93 zephyr: Update checkout to v3.5
8febfab039bf0ee pw_build: Fix blob attribute ordering
5363b1f02a05690 pw_multibuf: Add Chunk::Merge
3964e532b2a7a11 SEED-0107: Update SEED references; fix typo
ddbc9fc7f5c601a third_party/nanopb: Detect protoc updates
a2dd3fbd45269c8 pw_allocator: Refactor SplitFreeListAllocator to u
556c19d670b9dc4 SEED-0116: Claim SEED number
65ab9e4fde35275 pw_multibuf: Fix TrackingAllocatorWithMemory UAF
96de268be9cd48f pw_bluetooth: Define LEEnhancedConnectionCompleteS
ae1e90eb632000a pw_rpc: Support DynamicClient with SynchronousCall
62da7d49d272099 pw_sys_io: Fix Bazel backends
332042a7748a0bd docs: Define facade in glossary
74cdfacb22b6246 pw_bluetooth: Remove padding from Emboss command d
bb1bfba2371738c pw_tokenizer: Let tokenizer prefix be configurable
90d97fa3b4292c3 docs: Remove symlinks to files that were removed
3f2ce7672ef5c6c docs: Mention upstream development guide in contri
22db84fc5868737 pw_unit_test: Pass verbose flag to TestRunner
88335d06bf8926d pw_package: Fix Zephyr URL
fb640c84662c744 pw_multibuf: Add module and Chunk implementation
24eef22e00e02fa pw_env_setup: Update protoc to 2@24.4
fbb318aff82edfe roll: host_tools
8c8719939903452 roll: gn
45fbd96e68ce3eb roll: 310, 311, 38, 39
13c85b786453f5d roll: bazel
35460f87885e0a5 pw_build: Only use -Wextra-semi on C++ files with
26ccfc66c181be7 pw_allocator: Refactor Block to use encoded offset
3bad357764f0ce5 pw_build: Silence Windows-specific warnings
2fa492e62d7b5a1 docs: Move all images out of the repo
f8ab5df218cd027 docs: Update changelog
355da0574a171fa SEED-0115: Fix link
66c945c7036e2ab pw_{doctor,presubmit}: Trivial linter fixes
521774e22486af2 pw_allocator: Add UniquePtr<T>
d1cf3b2963745a1 SEED-0112: Async Poll Model
a1f371c42bc7e59 docs: Move CoC to Contributors section of sitenav
16d9aa7b128ef89 pw_bluetooth: Define LEChannelSelectionAlgorithmSu
e539a0b0def3b6a pw_bluetooth: Define LEScanTimeoutSubevent
f5540e6a1c3bf0b docs: Create concepts section in sitenav

https://pigweed.googlesource.com/pigweed/pigweed
third_party/pigweed Rolled-Commits: a26bb9226460851..af57fad456ce3b6
Roller-URL: https://ci.chromium.org/b/8766222457000462033
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ifc92cd72385227554106ec83e7fe85fb25dd6dec
Reviewed-on: https://pigweed-review.googlesource.com/c/gonk/+/177841
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: 9b3955d0bf9d321570048d331a4b98560997448c
  1. applications/
  2. build_overrides/
  3. targets/
  4. third_party/
  5. tools/
  6. .gitignore
  7. .gitmodules
  8. .gn
  9. banner.txt
  10. bootstrap.sh
  11. BUILD.gn
  12. BUILDCONFIG.gn
  13. OWNERS
  14. pigweed.json
  15. 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