stm32f769: Fix RAM and pw::sys_io::WriteLine
Also add F7 build to presubmit checks.
Change-Id: Ide7cca5739448c78e981bc3a8da8eafb25111585
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/experimental/+/207390
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
diff --git a/pw_sys_io_baremetal_stm32f769/sys_io_baremetal.cc b/pw_sys_io_baremetal_stm32f769/sys_io_baremetal.cc
index dc6c1e2..637f1d3 100644
--- a/pw_sys_io_baremetal_stm32f769/sys_io_baremetal.cc
+++ b/pw_sys_io_baremetal_stm32f769/sys_io_baremetal.cc
@@ -199,7 +199,7 @@
}
// Writes a string using pw::sys_io, and add newline characters at the EOL.
-StatusWithSize WriteLine(const std::string_view& s) {
+StatusWithSize WriteLine(std::string_view s) {
size_t chars_written = 0;
StatusWithSize result = WriteBytes(as_bytes(span(s)));
if (!result.ok()) {
diff --git a/targets/stm32f769i_disc0/pw_target_toolchains.gni b/targets/stm32f769i_disc0/pw_target_toolchains.gni
index d7d79b3..581810a 100644
--- a/targets/stm32f769i_disc0/pw_target_toolchains.gni
+++ b/targets/stm32f769i_disc0/pw_target_toolchains.gni
@@ -75,8 +75,8 @@
# much larger heap for dynamic allocation. The current number is an
# estimated requirement. The acutal required size will be further investigated
# when all TLS tests are in place.
- "PW_BOOT_HEAP_SIZE=366K",
- "PW_BOOT_MIN_STACK_SIZE=1K",
+ "PW_BOOT_HEAP_SIZE=7K",
+ "PW_BOOT_MIN_STACK_SIZE=8K",
"PW_BOOT_RAM_BEGIN=0x20020000",
"PW_BOOT_RAM_SIZE=384K",
"PW_BOOT_VECTOR_TABLE_BEGIN=0x08000000",
diff --git a/tools/pigweed_experimental_tools/presubmit_checks.py b/tools/pigweed_experimental_tools/presubmit_checks.py
index 7196bd7..846de46 100755
--- a/tools/pigweed_experimental_tools/presubmit_checks.py
+++ b/tools/pigweed_experimental_tools/presubmit_checks.py
@@ -213,6 +213,7 @@
# updated
# pico_build,
stm32cube_f4_build,
+ stm32cube_f7_build,
)
CI_CQ = (
@@ -221,6 +222,7 @@
# updated
# pico_build,
stm32cube_f4_build,
+ stm32cube_f7_build,
bazel_test,
)