Commit Graph

7 Commits

Author SHA1 Message Date
Armando Montanez
c0ad978eac pw_target_runner: Update name change in docs
Updates pw_target_runner (and other) docs to reflect the name change
from pw_test_server to pw_target_runner.

Change-Id: Iffa81088b81a1b83c285949c73fbf93e23f478a3
2020-01-07 18:08:33 +00:00
Alexei Frolov
514de20e4a Fix stm32f429i test client
* Correctly specify the path to the client script from GN.
* Use subprocess instead of pw_cli.process to remove dependency on
  pw_cli and reduce output log clutter.
* Set test run target as Ninja default.

Change-Id: Iae01eae107a8eb52e26e772120d2f6ed8052ee37
2019-12-14 00:11:17 +00:00
Armando Montanez
8c235cec60
stm32f429i-disc1: Add unit test server
Adds a build argument to the stm32f429i-disc1 target that enables
running tests via the pw_test_server.

Change-Id: I76c98fa25d27c771251e41de8631f156572f7731
2019-12-13 11:33:17 -08:00
Armando Montanez
5104cd68bc pw_cpu_exception: Add CPU exception module
This change introduces pw_cpu_exception, a facade that provides a
high-level interface for handling CPU exceptions.

Change-Id: I1f98ac82dd54040448b2e2ac32a392c49cb6dfba
2019-12-13 11:26:08 -08:00
Armando Montanez
050eae89d2 stm32f429i-disc1: Enable hardware FPU
* Add Cortex-M4 toolchains with floating point hardware instructions.
 * Update stm32f429i-disc1 to use hardware fpu toolchain by default.
 * Add code to enable FPU in pw_dumb_io.

Verified tests that use floating point operations continue to pass.

Change-Id: I76bc7eeaf457eca1abacbc60992648d63dc85bf2
2019-12-13 00:33:46 +00:00
Wyatt Hepler
8a823ceebb Size report for pw::string::Format
Add size report comparing pw::string::Format to std::snprintf.

Report with arm-none-eabi-gcc at -Os:

            Using pw::string::Format instead of snprintf
            ────────────────────────────────────────────
┌────────────────────────────┬───────────┬────────┬───────┬────────┐
│            Label           │  Segment  │ Before │ Delta │  After │
├════════════════════════════┼═══════════┼════════┼═══════┼════════┤
│    One string, return size │ SEG FLASH │  2,840 │   +80 │  2,920 │
├────────────────────────────┼───────────┼────────┼───────┼────────┤
│ Ten strings, handle errors │     (all) │ (same) │     0 │ (same) │
├────────────────────────────┼───────────┼────────┼───────┼────────┤
│   Fifty calls, same buffer │ SEG FLASH │  3,816 │   -72 │  3,744 │
└────────────────────────────┴───────────┴────────┴───────┴────────┘

Change-Id: Id484530320b0334cddf676a49ad79444fbbbde9b
2019-11-19 12:58:31 -08:00
Armando Montanez
a69244e4c1 Add stm32f429i-disc1 target and pw_dumb_io
Adds both the stm32f429i-disc1 target and a pw_dumb_io uart-based
backend.

Change-Id: If24379118fc2877485653d61ca66ceeb59ef920a
2019-11-16 00:14:52 +00:00