Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hugo/feature/Mock LedKit #1206

Merged
merged 7 commits into from
Dec 15, 2022
Merged

hugo/feature/Mock LedKit #1206

merged 7 commits into from
Dec 15, 2022

Conversation

HPezz
Copy link
Contributor

@HPezz HPezz commented Dec 13, 2022

Mock LedKit to simplify tests using it like BehaviorKit, Reinforcer or more consequently RobotController

  • Validated on robot

@HPezz HPezz self-assigned this Dec 13, 2022
@HPezz HPezz added the 01 - type: task Something to do label Dec 13, 2022
@HPezz HPezz added this to the v1.3.0 milestone Dec 13, 2022
@HPezz HPezz marked this pull request as draft December 13, 2022 15:28
@github-actions
Copy link

github-actions bot commented Dec 13, 2022

File comparision analysis report

🔖 Info

  • base: develop / 5862c33 + mbed-os-6.15.1+fixes+gcc-11-support + -std=c++20
  • head: hugo/feature/Mock-LedKit / 10430ec + mbed-os-6.15.1+fixes+gcc-11-support + -std=c++20
  • toolchain: GNU Arm Embedded Toolchain 10.3-2021.10 - 10.3.1 20210824
  • enable_log_debug: ON
Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 182804 (69%) 79340 (30%) 41648 (7%)
os 478172 (30%) 1086500 (69%) 93432 (17%)
Click to show memory sections
| -          |      Hex |     Bytes |  KiB |
|------------|---------:|----------:|-----:|
| Flash      | 0x200000 | 2 097 152 | 2048 |
| SRAM       |  0x80000 |   524 288 |  512 |
| Bootloader |  0x40000 |   262 144 |  256 |
| Header     |   0x1000 |     4 096 |    4 |
| OS         | 0x17E000 | 1 564 672 | 1528 |
| Tail       |   0x1000 |     4 096 |    4 |
| Scratch    |  0x40000 |   262 144 |  256 |

📝 Summary

Click to show summary
  • ✔️ - existing target
  • ✨ - new target
  • ⚰️ - deleted target
  • ✅ - files are the same
  • ❌ - files are different
Target Status .bin .map Total Flash (base/head) Total Flash Δ Static RAM (base/head) Static RAM Δ
LekaOS ✔️ 489388 (23%)
478172 (22%)
📉
-11216 (-2%)
93128 (17%)
93432 (17%)
📈
304 (0%)
bootloader ✔️ 182804 (8%) ø 41648 (7%) ø
functional_ut_boost_ut ✔️ 409212 (19%) ø 30608 (5%) ø
functional_ut_core_imu ✔️ 389196 (18%) ø 30584 (5%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 368140 (17%) ø 30560 (5%) ø
functional_ut_deep_sleep_core_motor ✔️ 376076 (17%) ø 30632 (5%) ø
functional_ut_deep_sleep_core_pwm ✔️ 378292 (18%) ø 30632 (5%) ø
functional_ut_deep_sleep_log_kit ✔️ 365204 (17%) ø 30976 (5%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 366648 (17%) ø 30560 (5%) ø
functional_ut_file_manager ✔️ 386684 (18%) ø 30856 (5%) ø
functional_ut_imu_kit ✔️ 391388 (18%) ø 30576 (5%) ø
functional_ut_io_expander ✔️ 370896 (17%) ø 30576 (5%) ø
functional_ut_qdac ✔️ 372064 (17%) ø 30576 (5%) ø
spike_lk_accel_gyro ✔️ 94048 (4%) ø 22568 (4%) ø
spike_lk_audio ✔️ 137044 (6%) ø 25176 (4%) ø
spike_lk_behavior_kit ✔️ 199084 (9%)
196940 (9%)
📉
-2144 (-1%)
58720 (11%)
58624 (11%)
📉
-96 (0%)
spike_lk_ble ✔️ 237772 (11%) ø 39416 (7%) ø
spike_lk_bluetooth ✔️ 92364 (4%) ø 22224 (4%) ø
spike_lk_cg_animations ✔️ 153608 (7%) ø 57224 (10%) ø
spike_lk_color_kit ✔️ 88480 (4%) ø 24376 (4%) ø
spike_lk_command_kit ✔️ 220276 (10%)
218260 (10%)
📉
-2016 (0%)
63104 (12%)
63000 (12%)
📉
-104 (0%)
spike_lk_config_kit ✔️ 139244 (6%) ø 25136 (4%) ø
spike_lk_coreled ✔️ 88044 (4%) ø 24264 (4%) ø
spike_lk_core_touch_sensor ✔️ 92884 (4%) ø 22832 (4%) ø
spike_lk_event_queue ✔️ 84152 (4%) ø 22904 (4%) ø
spike_lk_file_manager_kit ✔️ 154368 (7%) ø 25520 (4%) ø
spike_lk_file_reception ✔️ 339748 (16%) ø 38448 (7%) ø
spike_lk_flash_memory ✔️ 86776 (4%) ø 22216 (4%) ø
spike_lk_fs ✔️ 174440 (8%) ø 47992 (9%) ø
spike_lk_imu_kit ✔️ 97920 (4%) ø 22896 (4%) ø
spike_lk_lcd ✔️ 172652 (8%) ø 57496 (10%) ø
spike_lk_led_kit ✔️ 115772 (5%)
114516 (5%)
📉
-1256 (-1%)
25184 (4%)
25080 (4%)
📉
-104 (0%)
spike_lk_log_kit ✔️ 84776 (4%) ø 23408 (4%) ø
spike_lk_motion_kit ✔️ 106120 (5%) ø 24736 (4%) ø
spike_lk_motors ✔️ 86336 (4%) ø 22248 (4%) ø
spike_lk_qdac ✔️ 91572 (4%) ø 22776 (4%) ø
spike_lk_reinforcer ✔️ 215940 (10%)
213796 (10%)
📉
-2144 (0%)
59776 (11%)
59680 (11%)
📉
-96 (0%)
spike_lk_rfid ✔️ 84088 (4%) ø 22184 (4%) ø
spike_lk_sensors_battery ✔️ 87184 (4%) ø 23280 (4%) ø
spike_lk_sensors_light ✔️ 84072 (4%) ø 22216 (4%) ø
spike_lk_sensors_microphone ✔️ 84824 (4%) ø 22216 (4%) ø
spike_lk_sensors_temperature_humidity ✔️ 90400 (4%) ø 22192 (4%) ø
spike_lk_sensors_touch ✔️ 91672 (4%) ø 22456 (4%) ø
spike_lk_serial_number ✔️ 144900 (6%) ø 25256 (4%) ø
spike_lk_ticker_timeout ✔️ 82712 (3%) ø 22232 (4%) ø
spike_lk_update_process_app_base ✔️ 156876 (7%) ø 26288 (5%) ø
spike_lk_update_process_app_update ✔️ 100456 (4%) ø 23240 (4%) ø
spike_lk_watchdog_isr ✔️ 87392 (4%) ø 24120 (4%) ø
spike_lk_wifi ✔️ 130832 (6%) ø 25528 (4%) ø
spike_mbed_blinky ✔️ 57616 (2%) ø 11496 (2%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 84176 (4%) ø 23080 (4%) ø
spike_stl_cxxsupport ✔️ 83488 (3%) ø 22304 (4%) ø

🗺️ Map files diff output

Click to show diff list
LekaOS (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/LekaOS-map.txt	2022-12-15 10:58:03.934478630 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/LekaOS-map.txt	2022-12-15 10:58:04.382488258 +0000
@@ -1,53 +1,53 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       652(+652) |     18(+18) |     232(+232) |
-| [lib]/ActivityKit.a        |   19562(+19562) |       0(+0) |         0(+0) |
+| [fill]                     |       632(+632) |     18(+18) |     236(+236) |
+| [lib]/ActivityKit.a        |   10522(+10522) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1436(+1436) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
-| [lib]/BehaviorKit.a        |     1830(+1830) |       0(+0) |         0(+0) |
+| [lib]/BehaviorKit.a        |     1828(+1828) |   440(+440) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       472(+472) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |         78(+78) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |       116(+116) |       0(+0) |         0(+0) |
 | [lib]/CoreFlashMemory.a    |       546(+546) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a            |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a            |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMCU.a            |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CoreMutex.a          |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreQSPI.a           |       160(+160) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       556(+556) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a            |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a       |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a          |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a    |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a       |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a     |     1756(+1756) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       822(+822) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/IMUKit.a             |     1416(+1416) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a             |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a             |   18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/MotionKit.a          |       726(+726) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
-| [lib]/ReinforcerKit.a      |     1636(+1636) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a      |     1222(+1222) |   440(+440) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       584(+584) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         82(+82) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       806(+806) |       0(+0) |       36(+36) |
 | [lib]/bootutil.a           |     1362(+1362) |     12(+12) |     132(+132) |
 | [lib]/c.a                  |   48840(+48840) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a                |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     2092(+2092) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 181108(+181108) |   773(+773) | 19755(+19755) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   10716(+10716) |     16(+16) |     204(+204) |
 | __/__                      |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj               | 122836(+122836) |   548(+548) | 37514(+37514) |
-| Subtotals                  | 445412(+445412) | 3944(+3944) | 88816(+88816) |
-Total Static RAM memory (data + bss): 92760(+92760) bytes
-Total Flash memory (text + data): 449356(+449356) bytes
+| main.cpp.obj               | 121568(+121568) |   108(+108) | 37414(+37414) |
+| Subtotals                  | 433764(+433764) | 4384(+4384) | 88720(+88720) |
+Total Static RAM memory (data + bss): 93104(+93104) bytes
+Total Flash memory (text + data): 438148(+438148) bytes
 
Flash used: 478172 (22%) / total: 2097152
SRAM used: 93432 (17%) / total: 524288
spike_lk_behavior_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_behavior_kit-map.txt	2022-12-15 10:58:14.206700029 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_behavior_kit-map.txt	2022-12-15 10:58:14.482705992 +0000
@@ -1,30 +1,30 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       242(+242) |     15(+15) |       36(+36) |
-| [lib]/BehaviorKit.a     |     1246(+1246) |       0(+0) |         0(+0) |
+| [fill]                  |       240(+240) |     15(+15) |       40(+40) |
+| [lib]/BehaviorKit.a     |     1240(+1240) |   440(+440) |         0(+0) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |     1238(+1238) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a          |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a          |   18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/VideoKit.a        |     1004(+1004) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |       564(+564) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   70124(+70124) |   464(+464) | 10393(+10393) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10716(+10716) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     7020(+7020) |   448(+448) | 13276(+13276) |
-| Subtotals               | 170516(+170516) | 3520(+3520) | 54880(+54880) |
-Total Static RAM memory (data + bss): 58400(+58400) bytes
-Total Flash memory (text + data): 174036(+174036) bytes
+| main.cpp.obj            |     5756(+5756) |       8(+8) | 13176(+13176) |
+| Subtotals               | 168340(+168340) | 3520(+3520) | 54784(+54784) |
+Total Static RAM memory (data + bss): 58304(+58304) bytes
+Total Flash memory (text + data): 171860(+171860) bytes
 
Flash used: 196940 (9%) / total: 2097152
SRAM used: 58624 (11%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2022-12-15 10:58:16.794755943 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2022-12-15 10:58:17.042761299 +0000
@@ -1,36 +1,36 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       308(+308) |     17(+17) |       44(+44) |
+| [fill]                  |       286(+286) |     17(+17) |       40(+40) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |     1238(+1238) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/IMUKit.a          |     1416(+1416) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a          |   19264(+19264) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a          |   18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/MotionKit.a       |       726(+726) |       0(+0) |         0(+0) |
-| [lib]/ReinforcerKit.a   |     1686(+1686) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1690(+1690) |   440(+440) |         0(+0) |
 | [lib]/Utils.a           |         82(+82) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       990(+990) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     2092(+2092) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   76738(+76738) |   464(+464) | 10413(+10413) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10716(+10716) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |   10006(+10006) |   718(+718) | 17360(+17360) |
-| Subtotals               | 190420(+190420) | 3792(+3792) | 58992(+58992) |
-Total Static RAM memory (data + bss): 62784(+62784) bytes
-Total Flash memory (text + data): 194212(+194212) bytes
+| main.cpp.obj            |     8734(+8734) |   278(+278) | 17260(+17260) |
+| Subtotals               | 188372(+188372) | 3792(+3792) | 58888(+58888) |
+Total Static RAM memory (data + bss): 62680(+62680) bytes
+Total Flash memory (text + data): 192164(+192164) bytes
 
Flash used: 218260 (10%) / total: 2097152
SRAM used: 63000 (12%) / total: 524288
spike_lk_led_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_led_kit-map.txt	2022-12-15 10:58:22.094870414 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_led_kit-map.txt	2022-12-15 10:58:22.302874906 +0000
@@ -1,22 +1,22 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       202(+202) |       8(+8) |       26(+26) |
+| [fill]                  |       206(+206) |       8(+8) |       30(+30) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a          |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a          |   18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/c.a               |   25008(+25008) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |       564(+564) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   34718(+34718) |   444(+444) | 10078(+10078) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |     5864(+5864) |       8(+8) |       44(+44) |
-| main.cpp.obj            |     8382(+8382) |   440(+440) | 11268(+11268) |
-| Subtotals               | 102996(+102996) | 3376(+3376) | 21512(+21512) |
-Total Static RAM memory (data + bss): 24888(+24888) bytes
-Total Flash memory (text + data): 106372(+106372) bytes
+| main.cpp.obj            |     8002(+8002) |   440(+440) | 11168(+11168) |
+| Subtotals               | 101716(+101716) | 3376(+3376) | 21416(+21416) |
+Total Static RAM memory (data + bss): 24792(+24792) bytes
+Total Flash memory (text + data): 105092(+105092) bytes
 
Flash used: 114516 (5%) / total: 2097152
SRAM used: 25080 (4%) / total: 524288
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2022-12-15 10:58:24.402920262 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2022-12-15 10:58:24.666925963 +0000
@@ -1,35 +1,35 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       288(+288) |     15(+15) |       44(+44) |
+| [fill]                  |       282(+282) |     15(+15) |       48(+48) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |     1238(+1238) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/IMUKit.a          |     1416(+1416) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a          |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a          |   18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/MotionKit.a       |       726(+726) |       0(+0) |         0(+0) |
-| [lib]/ReinforcerKit.a   |     1658(+1658) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1660(+1660) |   440(+440) |         0(+0) |
 | [lib]/Utils.a           |         48(+48) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |     1004(+1004) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40920(+40920) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     2092(+2092) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   76738(+76738) |   464(+464) | 10413(+10413) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10716(+10716) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     7560(+7560) |   448(+448) | 14304(+14304) |
-| Subtotals               | 186900(+186900) | 3520(+3520) | 55936(+55936) |
-Total Static RAM memory (data + bss): 59456(+59456) bytes
-Total Flash memory (text + data): 190420(+190420) bytes
+| main.cpp.obj            |     6292(+6292) |       8(+8) | 14204(+14204) |
+| Subtotals               | 184724(+184724) | 3520(+3520) | 55840(+55840) |
+Total Static RAM memory (data + bss): 59360(+59360) bytes
+Total Flash memory (text + data): 188244(+188244) bytes
 
Flash used: 213796 (10%) / total: 2097152
SRAM used: 59680 (11%) / total: 524288

@github-actions
Copy link

github-actions bot commented Dec 13, 2022

File comparision analysis report

🔖 Info

  • base: develop / 5862c33 + mbed-os-6.15.1+fixes+gcc-11-support + -std=c++20
  • head: hugo/feature/Mock-LedKit / 10430ec + mbed-os-6.15.1+fixes+gcc-11-support + -std=c++20
  • toolchain: GNU Arm Embedded Toolchain 10.3-2021.10 - 10.3.1 20210824
  • enable_log_debug: OFF
Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 170348 (64%) 91796 (35%) 30952 (5%)
os 426880 (27%) 1137792 (72%) 82216 (15%)
Click to show memory sections
| -          |      Hex |     Bytes |  KiB |
|------------|---------:|----------:|-----:|
| Flash      | 0x200000 | 2 097 152 | 2048 |
| SRAM       |  0x80000 |   524 288 |  512 |
| Bootloader |  0x40000 |   262 144 |  256 |
| Header     |   0x1000 |     4 096 |    4 |
| OS         | 0x17E000 | 1 564 672 | 1528 |
| Tail       |   0x1000 |     4 096 |    4 |
| Scratch    |  0x40000 |   262 144 |  256 |

📝 Summary

Click to show summary
  • ✔️ - existing target
  • ✨ - new target
  • ⚰️ - deleted target
  • ✅ - files are the same
  • ❌ - files are different
Target Status .bin .map Total Flash (base/head) Total Flash Δ Static RAM (base/head) Static RAM Δ
LekaOS ✔️ 438096 (20%)
426880 (20%)
📉
-11216 (-2%)
81912 (15%)
82216 (15%)
📈
304 (0%)
bootloader ✔️ 170348 (8%) ø 30952 (5%) ø
functional_ut_boost_ut ✔️ 394076 (18%) ø 20456 (3%) ø
functional_ut_core_imu ✔️ 377068 (17%) ø 20432 (3%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 360236 (17%) ø 20440 (3%) ø
functional_ut_deep_sleep_core_motor ✔️ 364476 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_core_pwm ✔️ 366612 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_log_kit ✔️ 352504 (16%) ø 20408 (3%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 354216 (16%) ø 20408 (3%) ø
functional_ut_file_manager ✔️ 374864 (17%) ø 20696 (3%) ø
functional_ut_imu_kit ✔️ 382560 (18%) ø 20424 (3%) ø
functional_ut_io_expander ✔️ 359232 (17%) ø 20424 (3%) ø
functional_ut_qdac ✔️ 360400 (17%) ø 20424 (3%) ø
spike_lk_accel_gyro ✔️ 71184 (3%) ø 11808 (2%) ø
spike_lk_audio ✔️ 126924 (6%) ø 14600 (2%) ø
spike_lk_behavior_kit ✔️ 190520 (9%)
188376 (8%)
📉
-2144 (-1%)
48144 (9%)
48048 (9%)
📉
-96 (0%)
spike_lk_ble ✔️ 229600 (10%) ø 28472 (5%) ø
spike_lk_bluetooth ✔️ 82948 (3%) ø 11544 (2%) ø
spike_lk_cg_animations ✔️ 145848 (6%) ø 46528 (8%) ø
spike_lk_color_kit ✔️ 65776 (3%) ø 13744 (2%) ø
spike_lk_command_kit ✔️ 209960 (10%)
208008 (9%)
📉
-1952 (0%)
52016 (9%)
51912 (9%)
📉
-104 (0%)
spike_lk_config_kit ✔️ 127268 (6%) ø 14312 (2%) ø
spike_lk_coreled ✔️ 76164 (3%) ø 13688 (2%) ø
spike_lk_core_touch_sensor ✔️ 80228 (3%) ø 12256 (2%) ø
spike_lk_event_queue ✔️ 74800 (3%) ø 12072 (2%) ø
spike_lk_file_manager_kit ✔️ 139336 (6%) ø 14440 (2%) ø
spike_lk_file_reception ✔️ 335792 (16%) ø 27792 (5%) ø
spike_lk_flash_memory ✔️ 63880 (3%) ø 11448 (2%) ø
spike_lk_fs ✔️ 175144 (8%) ø 47904 (9%) ø
spike_lk_imu_kit ✔️ 87700 (4%) ø 12176 (2%) ø
spike_lk_lcd ✔️ 162732 (7%) ø 46664 (8%) ø
spike_lk_led_kit ✔️ 103992 (4%)
102736 (4%)
📉
-1256 (-1%)
14608 (2%)
14504 (2%)
📉
-104 (0%)
spike_lk_log_kit ✔️ 63288 (3%) ø 12256 (2%) ø
spike_lk_motion_kit ✔️ 101148 (4%) ø 14184 (2%) ø
spike_lk_motors ✔️ 62864 (2%) ø 11488 (2%) ø
spike_lk_qdac ✔️ 78628 (3%) ø 11816 (2%) ø
spike_lk_reinforcer ✔️ 207320 (9%)
205240 (9%)
📉
-2080 (-1%)
49200 (9%)
49104 (9%)
📉
-96 (0%)
spike_lk_rfid ✔️ 78956 (3%) ø 11504 (2%) ø
spike_lk_sensors_battery ✔️ 78196 (3%) ø 12568 (2%) ø
spike_lk_sensors_light ✔️ 60056 (2%) ø 11440 (2%) ø
spike_lk_sensors_microphone ✔️ 72496 (3%) ø 11504 (2%) ø
spike_lk_sensors_temperature_humidity ✔️ 67048 (3%) ø 11424 (2%) ø
spike_lk_sensors_touch ✔️ 68600 (3%) ø 11432 (2%) ø
spike_lk_serial_number ✔️ 133020 (6%) ø 14304 (2%) ø
spike_lk_ticker_timeout ✔️ 69052 (3%) ø 11632 (2%) ø
spike_lk_update_process_app_base ✔️ 145100 (6%) ø 15584 (2%) ø
spike_lk_update_process_app_update ✔️ 77632 (3%) ø 12352 (2%) ø
spike_lk_watchdog_isr ✔️ 80068 (3%) ø 13272 (2%) ø
spike_lk_wifi ✔️ 116392 (5%) ø 14808 (2%) ø
spike_mbed_blinky ✔️ 58032 (2%) ø 11400 (2%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 63208 (3%) ø 12448 (2%) ø
spike_stl_cxxsupport ✔️ 58456 (2%) ø 11400 (2%) ø

🗺️ Map files diff output

Click to show diff list
LekaOS (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2022-12-15 10:59:15.264523065 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2022-12-15 10:59:15.712525309 +0000
@@ -1,53 +1,53 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       646(+646) |     18(+18) |     211(+211) |
-| [lib]/ActivityKit.a        |   19562(+19562) |       0(+0) |         0(+0) |
+| [fill]                     |       630(+630) |     18(+18) |     215(+215) |
+| [lib]/ActivityKit.a        |   10522(+10522) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1436(+1436) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
-| [lib]/BehaviorKit.a        |     1830(+1830) |       0(+0) |         0(+0) |
+| [lib]/BehaviorKit.a        |     1828(+1828) |   440(+440) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       472(+472) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |         78(+78) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |       116(+116) |       0(+0) |         0(+0) |
 | [lib]/CoreFlashMemory.a    |       546(+546) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a            |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a            |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMCU.a            |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CoreMutex.a          |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreQSPI.a           |       160(+160) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |       556(+556) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a            |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a       |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a          |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a    |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a       |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a     |     1756(+1756) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       822(+822) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/IMUKit.a             |     1416(+1416) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a             |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a             |   18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/MotionKit.a          |       726(+726) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
-| [lib]/ReinforcerKit.a      |     1636(+1636) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a      |     1222(+1222) |   440(+440) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       584(+584) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         82(+82) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       820(+820) |       0(+0) |       36(+36) |
 | [lib]/bootutil.a           |     1362(+1362) |     12(+12) |     132(+132) |
 | [lib]/c.a                  |   49944(+49944) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a                |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     2092(+2092) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 179856(+179856) |   773(+773) | 19667(+19667) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   10668(+10668) |     16(+16) |     204(+204) |
 | __/__                      |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj               |   72208(+72208) |   548(+548) | 26407(+26407) |
-| Subtotals                  | 394596(+394596) | 3944(+3944) | 77600(+77600) |
-Total Static RAM memory (data + bss): 81544(+81544) bytes
-Total Flash memory (text + data): 398540(+398540) bytes
+| main.cpp.obj               |   70936(+70936) |   108(+108) | 26307(+26307) |
+| Subtotals                  | 382948(+382948) | 4384(+4384) | 77504(+77504) |
+Total Static RAM memory (data + bss): 81888(+81888) bytes
+Total Flash memory (text + data): 387332(+387332) bytes
 
Flash used: 426880 (20%) / total: 2097152
SRAM used: 82216 (15%) / total: 524288
spike_lk_behavior_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_behavior_kit-map.txt	2022-12-15 10:59:25.552561003 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_behavior_kit-map.txt	2022-12-15 10:59:25.812561720 +0000
@@ -1,29 +1,29 @@
 | Module                 |           .text |       .data |          .bss |
 |------------------------|-----------------|-------------|---------------|
-| [fill]                 |       272(+272) |     15(+15) |       32(+32) |
-| [lib]/BehaviorKit.a    |     1246(+1246) |       0(+0) |         0(+0) |
+| [fill]                 |       258(+258) |     15(+15) |       36(+36) |
+| [lib]/BehaviorKit.a    |     1240(+1240) |   440(+440) |         0(+0) |
 | [lib]/ColorKit.a       |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a      |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a        |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a        |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a   |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a      |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/EventLoopKit.a   |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a |     1238(+1238) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a     |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a         |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a         |   18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/VideoKit.a       |     1004(+1004) |       0(+0) |       36(+36) |
 | [lib]/c.a              |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a            |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a              |       204(+204) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a |   64752(+64752) |   464(+464) | 10261(+10261) |
 | [lib]/misc             |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a          |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a         |   10296(+10296) |     16(+16) |     204(+204) |
 | __/__                  |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj           |     4950(+4950) |   448(+448) |   2836(+2836) |
-| Subtotals              | 163396(+163396) | 3520(+3520) | 44304(+44304) |
-Total Static RAM memory (data + bss): 47824(+47824) bytes
-Total Flash memory (text + data): 166916(+166916) bytes
+| main.cpp.obj           |     3698(+3698) |       8(+8) |   2736(+2736) |
+| Subtotals              | 161220(+161220) | 3520(+3520) | 44208(+44208) |
+Total Static RAM memory (data + bss): 47728(+47728) bytes
+Total Flash memory (text + data): 164740(+164740) bytes
 
Flash used: 188376 (8%) / total: 2097152
SRAM used: 48048 (9%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2022-12-15 10:59:28.160573116 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2022-12-15 10:59:28.440574498 +0000
@@ -1,36 +1,36 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       292(+292) |     17(+17) |       40(+40) |
+| [fill]                  |       294(+294) |     17(+17) |       36(+36) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a      |     1152(+1152) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a         |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a         |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |     1238(+1238) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/IMUKit.a          |     1416(+1416) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a          |   19264(+19264) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a          |   18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/MotionKit.a       |       726(+726) |       0(+0) |         0(+0) |
-| [lib]/ReinforcerKit.a   |     1686(+1686) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a   |     1690(+1690) |   440(+440) |         0(+0) |
 | [lib]/Utils.a           |         82(+82) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |     1004(+1004) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     1732(+1732) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   71366(+71366) |   464(+464) | 10281(+10281) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10296(+10296) |     16(+16) |     204(+204) |
 | __/__                   |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj            |     6552(+6552) |   718(+718) |   6408(+6408) |
-| Subtotals               | 181892(+181892) | 3792(+3792) | 47904(+47904) |
-Total Static RAM memory (data + bss): 51696(+51696) bytes
-Total Flash memory (text + data): 185684(+185684) bytes
+| main.cpp.obj            |     5320(+5320) |   278(+278) |   6308(+6308) |
+| Subtotals               | 179908(+179908) | 3792(+3792) | 47800(+47800) |
+Total Static RAM memory (data + bss): 51592(+51592) bytes
+Total Flash memory (text + data): 183700(+183700) bytes
 
Flash used: 208008 (9%) / total: 2097152
SRAM used: 51912 (9%) / total: 524288
spike_lk_led_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_led_kit-map.txt	2022-12-15 10:59:33.664600279 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_led_kit-map.txt	2022-12-15 10:59:33.880601345 +0000
@@ -1,21 +1,21 @@
 | Module                 |         .text |       .data |          .bss |
 |------------------------|---------------|-------------|---------------|
-| [fill]                 |     184(+184) |       8(+8) |       22(+22) |
+| [fill]                 |     184(+184) |       8(+8) |       26(+26) |
 | [lib]/ColorKit.a       |     864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a |     138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a        |       28(+28) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a   |     366(+366) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a     |       94(+94) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a         | 19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a         | 18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/c.a              | 26088(+26088) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a            |   6924(+6924) |       0(+0) |         0(+0) |
 | [lib]/m.a              |     204(+204) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a | 29346(+29346) |   444(+444) |   9946(+9946) |
 | [lib]/misc             |     188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a          |       32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a         |   5444(+5444) |       8(+8) |       44(+44) |
-| main.cpp.obj           |   3846(+3846) |   440(+440) |     828(+828) |
-| Subtotals              | 93156(+93156) | 3376(+3376) | 10936(+10936) |
-Total Static RAM memory (data + bss): 14312(+14312) bytes
-Total Flash memory (text + data): 96532(+96532) bytes
+| main.cpp.obj           |   3470(+3470) |   440(+440) |     728(+728) |
+| Subtotals              | 91876(+91876) | 3376(+3376) | 10840(+10840) |
+Total Static RAM memory (data + bss): 14216(+14216) bytes
+Total Flash memory (text + data): 95252(+95252) bytes
 
Flash used: 102736 (4%) / total: 2097152
SRAM used: 14504 (2%) / total: 524288
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2022-12-15 10:59:35.996611741 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2022-12-15 10:59:36.256612998 +0000
@@ -1,34 +1,34 @@
 | Module                 |           .text |       .data |          .bss |
 |------------------------|-----------------|-------------|---------------|
-| [fill]                 |       290(+290) |     15(+15) |       40(+40) |
+| [fill]                 |       300(+300) |     15(+15) |       44(+44) |
 | [lib]/ColorKit.a       |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a        |         36(+36) |       0(+0) |         0(+0) |
 | [lib]/CoreIMU.a        |     5018(+5018) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a      |       176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a        |         60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreSPI.a        |         28(+28) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a   |       930(+930) |       0(+0) |         0(+0) |
 | [lib]/CoreVideo.a      |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/EventLoopKit.a   |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a |     1238(+1238) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/IMUKit.a         |     1416(+1416) |       0(+0) |         0(+0) |
-| [lib]/LedKit.a         |   19410(+19410) |       0(+0) |       10(+10) |
+| [lib]/LedKit.a         |   18506(+18506) |       0(+0) |       10(+10) |
 | [lib]/MotionKit.a      |       726(+726) |       0(+0) |         0(+0) |
-| [lib]/ReinforcerKit.a  |     1658(+1658) |       0(+0) |         0(+0) |
+| [lib]/ReinforcerKit.a  |     1660(+1660) |   440(+440) |         0(+0) |
 | [lib]/Utils.a          |         48(+48) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a       |     1004(+1004) |       0(+0) |       36(+36) |
 | [lib]/c.a              |   42000(+42000) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a            |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a              |     1732(+1732) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a |   71366(+71366) |   464(+464) | 10281(+10281) |
 | [lib]/misc             |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a          |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a         |   10296(+10296) |     16(+16) |     204(+204) |
 | __/__                  |       108(+108) |       0(+0) |         0(+0) |
-| main.cpp.obj           |     5454(+5454) |   448(+448) |   3864(+3864) |
-| Subtotals              | 179716(+179716) | 3520(+3520) | 45360(+45360) |
-Total Static RAM memory (data + bss): 48880(+48880) bytes
-Total Flash memory (text + data): 183236(+183236) bytes
+| main.cpp.obj           |     4234(+4234) |       8(+8) |   3764(+3764) |
+| Subtotals              | 177604(+177604) | 3520(+3520) | 45264(+45264) |
+Total Static RAM memory (data + bss): 48784(+48784) bytes
+Total Flash memory (text + data): 181124(+181124) bytes
 
Flash used: 205240 (9%) / total: 2097152
SRAM used: 49104 (9%) / total: 524288

@ladislas ladislas modified the milestones: v1.3.0, Future Release Dec 14, 2022
@HPezz HPezz marked this pull request as ready for review December 14, 2022 11:08
@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Merging #1206 (62cf717) into develop (5862c33) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 62cf717 differs from pull request most recent head 10430ec. Consider uploading reports for the commit 10430ec to get more accurate results

@@           Coverage Diff            @@
##           develop    #1206   +/-   ##
========================================
  Coverage    96.12%   96.12%           
========================================
  Files          146      146           
  Lines         3565     3565           
========================================
  Hits          3427     3427           
  Misses         138      138           
Impacted Files Coverage Δ
libs/BehaviorKit/include/BehaviorKit.h 100.00% <100.00%> (ø)
libs/BehaviorKit/source/BehaviorKit.cpp 100.00% <100.00%> (ø)
libs/LedKit/include/LedKit.h 100.00% <100.00%> (ø)
libs/ReinforcerKit/include/ReinforcerKit.h 100.00% <100.00%> (ø)
libs/ReinforcerKit/source/ReinforcerKit.cpp 100.00% <100.00%> (ø)
libs/RobotKit/include/RobotController.h 93.84% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@ladislas ladislas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's some great work! 👍
It shows that the same refactor must be made for other kits to make testing even easier.

include/interface/libs/LedKit.h Outdated Show resolved Hide resolved
#include "interface/libs/VideoKit.h"

namespace leka {

class BehaviorKit
{
public:
explicit BehaviorKit(interface::VideoKit &videokit, LedKit &ledkit, interface::Motor &motor_left,
explicit BehaviorKit(interface::VideoKit &videokit, interface::LedKit &ledkit, interface::Motor &motor_left,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to the PR, but could behaviors depend on motionkit instead of motors? how are motors used here?

libs/BehaviorKit/source/BehaviorKit.cpp Outdated Show resolved Hide resolved
CommandKit &cmdkit, RFIDKit &rfidkit, ActivityKit &activitykit)
interface::Motor &motor_right, interface::LED &ears, interface::LED &belt,
interface::LedKit &ledkit, interface::LCD &lcd, interface::VideoKit &videokit,
BehaviorKit &behaviorkit, CommandKit &cmdkit, RFIDKit &rfidkit, ActivityKit &activitykit)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related directly but we could also have an interface for behaviorkit, CommandKit, RFIDKit and ActivityKit to make testing easier

tests/unit/mocks/mocks/leka/LedKit.h Outdated Show resolved Hide resolved
libs/LedKit/tests/LedKit_test.cpp Show resolved Hide resolved
Comment on lines 53 to 62
EXPECT_CALL(mock_videokit, playVideoOnce);
EXPECT_CALL(mock_motor_left, stop).Times(1);
EXPECT_CALL(mock_motor_right, stop).Times(1);
EXPECT_CALL(mock_motor_left, spin).Times(1);
EXPECT_CALL(mock_motor_right, spin).Times(1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not directly related but:

this should be tested with mock::MotionKit now that Reinforcer use MotionKit

this will make everything cleaner -- no need to test the motors are spinning individually when you have the MotionKit::rotate function

Comment on lines 133 to 135
EXPECT_CALL(mock_motor_left, stop()).Times(AtLeast(2));
EXPECT_CALL(mock_motor_right, stop()).Times(AtLeast(2));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated question: if MotionKit is running, will this really stop the actuators?

RobotController should also stop MotionKit in this case, no?

Copy link
Member

@YannLocatelli YannLocatelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set in same commit

  • BehaviorKit modifications and BehaviorKit_tests modifications
  • ReinforcerKit modifications and ReinforcerKit_tests modifications

--

There is a lot of new Uninteresting mock function call - returning directly.

--

Does it works on the robot?

--

Review done before ac510ed was pushed

libs/LedKit/include/LedKit.h Show resolved Hide resolved
libs/LedKit/include/LedKit.h Show resolved Hide resolved
libs/BehaviorKit/tests/BehaviorKit_test.cpp Outdated Show resolved Hide resolved
libs/BehaviorKit/tests/BehaviorKit_test.cpp Outdated Show resolved Hide resolved
libs/ReinforcerKit/source/ReinforcerKit.cpp Outdated Show resolved Hide resolved
libs/ReinforcerKit/tests/ReinforcerKit_test.cpp Outdated Show resolved Hide resolved
libs/RobotKit/tests/RobotController_test.h Outdated Show resolved Hide resolved
@HPezz HPezz force-pushed the hugo/feature/Mock-LedKit branch 3 times, most recently from d641c2a to d928e5e Compare December 14, 2022 16:04
Copy link
Member

@YannLocatelli YannLocatelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost good

libs/BehaviorKit/tests/BehaviorKit_test.cpp Outdated Show resolved Hide resolved
YannLocatelli
YannLocatelli approved these changes Dec 14, 2022
Copy link
Member

@ladislas ladislas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@sonarcloud
Copy link

sonarcloud bot commented Dec 15, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@ladislas ladislas merged commit 2e258a6 into develop Dec 15, 2022
@ladislas ladislas deleted the hugo/feature/Mock-LedKit branch December 15, 2022 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
01 - type: task Something to do
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants