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

ladislas/feature/deep sleep core buffered serial #1162

Merged
merged 4 commits into from
Nov 28, 2022

Conversation

ladislas
Copy link
Member

@ladislas ladislas commented Nov 25, 2022

  • ✨ (CoreBufferedSerial): Add enable/disable_input methods
  • ♻️ (tests): on device - refactor deep sleep tests into utils::sleep function
  • 🎨 (tests): on device - deep sleep hal clean up

related story/pr: #1101

@ladislas ladislas marked this pull request as draft November 25, 2022 14:14
@ladislas ladislas self-assigned this Nov 25, 2022
@ladislas ladislas added the 01 - type: task Something to do label Nov 25, 2022
@ladislas ladislas added this to the Future Release milestone Nov 25, 2022
@codecov
Copy link

codecov bot commented Nov 25, 2022

Codecov Report

Merging #1162 (c9dfa25) into develop (d156f8b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #1162   +/-   ##
========================================
  Coverage    95.96%   95.96%           
========================================
  Files          138      138           
  Lines         3298     3298           
========================================
  Hits          3165     3165           
  Misses         133      133           
Impacted Files Coverage Δ
...rs/CoreBufferedSerial/include/CoreBufferedSerial.h 100.00% <ø> (ø)

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

@github-actions
Copy link

github-actions bot commented Nov 25, 2022

File comparision analysis report

🔖 Info

Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 182028 (69%) 80116 (30%) 41616 (7%)
os 471620 (30%) 1093052 (69%) 91904 (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 ✔️ 471604 (22%)
471620 (22%)
📈
16 (0%)
91904 (17%) ø
bootloader ✔️ 182028 (8%) ø 41616 (7%) ø
functional_ut_boost_ut ✔️ 408872 (19%) ø 30096 (5%) ø
functional_ut_core_imu ✔️ 388848 (18%) ø 30072 (5%) ø
functional_ut_deep_sleep_core_buffered_serial - - 367816 (17%) - 30048 (5%) -
functional_ut_deep_sleep_log_kit ✔️ 365284 (17%)
365108 (17%)
📉
-176 (0%)
30976 (5%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 366488 (17%) ø 30560 (5%) ø
functional_ut_file_manager ✔️ 386080 (18%) ø 30344 (5%) ø
functional_ut_io_expander ✔️ 370556 (17%) ø 30064 (5%) ø
functional_ut_qdac ✔️ 371716 (17%) ø 30064 (5%) ø
spike_lk_accel_gyro ✔️ 94048 (4%) ø 22568 (4%) ø
spike_lk_audio ✔️ 135196 (6%) ø 25144 (4%) ø
spike_lk_behavior_kit ✔️ 198572 (9%) ø 58712 (11%) ø
spike_lk_ble ✔️ 237196 (11%) ø 39264 (7%) ø
spike_lk_bluetooth ✔️ 92364 (4%) ø 22224 (4%) ø
spike_lk_cg_animations ✔️ 152392 (7%) ø 57224 (10%) ø
spike_lk_color_kit ✔️ 88480 (4%) ø 24376 (4%) ø
spike_lk_command_kit ✔️ 203036 (9%) ø 62048 (11%) ø
spike_lk_config_kit ✔️ 138932 (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 ✔️ 154048 (7%) ø 25496 (4%) ø
spike_lk_file_reception ✔️ 331308 (15%) ø 38232 (7%) ø
spike_lk_flash_memory ✔️ 86776 (4%) ø 22216 (4%) ø
spike_lk_fs ✔️ 174168 (8%) ø 47992 (9%) ø
spike_lk_lcd ✔️ 172332 (8%) ø 57464 (10%) ø
spike_lk_led_kit ✔️ 115772 (5%) ø 25184 (4%) ø
spike_lk_log_kit ✔️ 84776 (4%) ø 23408 (4%) ø
spike_lk_motors ✔️ 86072 (4%) ø 22248 (4%) ø
spike_lk_qdac ✔️ 91572 (4%) ø 22776 (4%) ø
spike_lk_reinforcer ✔️ 112316 (5%) ø 25184 (4%) ø
spike_lk_rfid ✔️ 84080 (4%)
84088 (4%)
📈
8 (0%)
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 ✔️ 136316 (6%) ø 25056 (4%) ø
spike_lk_ticker_timeout ✔️ 82712 (3%) ø 22232 (4%) ø
spike_lk_update_process_app_base ✔️ 148044 (7%) ø 26064 (4%) ø
spike_lk_update_process_app_update ✔️ 100456 (4%) ø 23240 (4%) ø
spike_lk_watchdog_isr ✔️ 87320 (4%)
87392 (4%)
📈
72 (0%)
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-11-28 09:56:32.845773186 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/LekaOS-map.txt	2022-11-28 09:56:33.209776435 +0000
@@ -1,48 +1,48 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       638(+638) |     18(+18) |     248(+248) |
+| [fill]                     |       622(+622) |     18(+18) |     248(+248) |
 | [lib]/ActivityKit.a        |   19586(+19586) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1368(+1368) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1830(+1830) |       0(+0) |         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 |         62(+62) |       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]/CoreMCU.a            |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CoreMutex.a          |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         12(+12) |       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     |     1432(+1432) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       638(+638) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a             |   19410(+19410) |       0(+0) |       10(+10) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
 | [lib]/ReinforcerKit.a      |     1544(+1544) |       0(+0) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       596(+596) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       924(+924) |       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                  |       564(+564) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 174476(+174476) |   773(+773) | 19735(+19735) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   10732(+10732) |     16(+16) |     204(+204) |
 | main.cpp.obj               | 121818(+121818) |   548(+548) | 36294(+36294) |
 | Subtotals                  | 428260(+428260) | 3944(+3944) | 87592(+87592) |
 Total Static RAM memory (data + bss): 91536(+91536) bytes
 Total Flash memory (text + data): 432204(+432204) bytes
 
Flash used: 471620&nbsp;(22%) / total: 2097152
SRAM used: 91904&nbsp;(17%) / total: 524288
functional_ut_deep_sleep_core_buffered_serial (click to expand)

Flash used: 367816&nbsp;(17%) / total: 2097152
SRAM used: 30048&nbsp;(5%) / total: 524288
functional_ut_deep_sleep_log_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/functional_ut_deep_sleep_log_kit-map.txt	2022-11-28 09:56:35.241794885 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/functional_ut_deep_sleep_log_kit-map.txt	2022-11-28 09:56:35.521798394 +0000
@@ -1,17 +1,17 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       190(+190) |     16(+16) |       43(+43) |
+| [fill]                  |       226(+226) |     16(+16) |       43(+43) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/c.a               |   72688(+72688) | 2574(+2574) |       97(+97) |
 | [lib]/gcc.a             |     7416(+7416) |       0(+0) |         0(+0) |
 | [lib]/m.a               |       372(+372) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   54730(+54730) |   460(+460) | 10317(+10317) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          | 174540(+174540) |   145(+145) |   5720(+5720) |
 | __/__                   |     3880(+3880) |       1(+1) | 10329(+10329) |
-| suite_log_kit.cpp.obj   |     4776(+4776) |       0(+0) |     930(+930) |
-| Subtotals               | 318820(+318820) | 3200(+3200) | 27464(+27464) |
+| suite_log_kit.cpp.obj   |     4612(+4612) |       0(+0) |     930(+930) |
+| Subtotals               | 318692(+318692) | 3200(+3200) | 27464(+27464) |
 Total Static RAM memory (data + bss): 30664(+30664) bytes
-Total Flash memory (text + data): 322020(+322020) bytes
+Total Flash memory (text + data): 321892(+321892) bytes
 
Flash used: 365108&nbsp;(17%) / total: 2097152
SRAM used: 30976&nbsp;(5%) / total: 524288
spike_lk_rfid (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_rfid-map.txt	2022-11-28 09:56:47.269933901 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_rfid-map.txt	2022-11-28 09:56:47.429935449 +0000
@@ -1,21 +1,21 @@
 | Module                     |         .text |       .data |          .bss |
 |----------------------------|---------------|-------------|---------------|
-| [fill]                     |     166(+166) |       8(+8) |       28(+28) |
-| [lib]/CoreBufferedSerial.a |     108(+108) |       0(+0) |         0(+0) |
+| [fill]                     |     150(+150) |       8(+8) |       28(+28) |
+| [lib]/CoreBufferedSerial.a |     124(+124) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |     670(+670) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a    |         8(+8) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |   1046(+1046) |       0(+0) |         8(+8) |
 | [lib]/c.a                  | 25048(+25048) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a                |   7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     360(+360) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 31650(+31650) |   444(+444) |   8226(+8226) |
 | [lib]/misc                 |     188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |       32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   5424(+5424) |       8(+8) |       44(+44) |
 | main.cpp.obj               |   2736(+2736) |       0(+0) | 10568(+10568) |
 | Subtotals                  | 74772(+74772) | 2936(+2936) | 18960(+18960) |
 Total Static RAM memory (data + bss): 21896(+21896) bytes
 Total Flash memory (text + data): 77708(+77708) bytes
 
Flash used: 84088&nbsp;(4%) / total: 2097152
SRAM used: 22184&nbsp;(4%) / total: 524288
spike_lk_watchdog_isr (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_watchdog_isr-map.txt	2022-11-28 09:56:51.049970480 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_watchdog_isr-map.txt	2022-11-28 09:56:51.213971982 +0000
@@ -1,21 +1,21 @@
 | Module                     |         .text |       .data |          .bss |
 |----------------------------|---------------|-------------|---------------|
-| [fill]                     |     124(+124) |       8(+8) |       62(+62) |
-| [lib]/CoreBufferedSerial.a |       62(+62) |       0(+0) |         0(+0) |
+| [fill]                     |     172(+172) |       8(+8) |       62(+62) |
+| [lib]/CoreBufferedSerial.a |       78(+78) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |     592(+592) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a    |         8(+8) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |   1046(+1046) |       0(+0) |         8(+8) |
 | [lib]/c.a                  | 25048(+25048) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a                |   7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |     360(+360) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 32840(+32840) |   444(+444) |   8242(+8242) |
 | [lib]/misc                 |     188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |       32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   5424(+5424) |       8(+8) |       44(+44) |
 | main.cpp.obj               |   4592(+4592) |       0(+0) | 12454(+12454) |
-| Subtotals                  | 77652(+77652) | 2936(+2936) | 20896(+20896) |
+| Subtotals                  | 77716(+77716) | 2936(+2936) | 20896(+20896) |
 Total Static RAM memory (data + bss): 23832(+23832) bytes
-Total Flash memory (text + data): 80588(+80588) bytes
+Total Flash memory (text + data): 80652(+80652) bytes
 
Flash used: 87392&nbsp;(4%) / total: 2097152
SRAM used: 24120&nbsp;(4%) / total: 524288

@github-actions
Copy link

github-actions bot commented Nov 25, 2022

File comparision analysis report

🔖 Info

Target Flash Used (%) Flash Available (%) Static RAM (%)
bootloader 169508 (64%) 92636 (35%) 30920 (5%)
os 420328 (26%) 1144344 (73%) 80688 (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 ✔️ 420328 (20%) ø 80688 (15%) ø
bootloader ✔️ 169508 (8%) ø 30920 (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_log_kit ✔️ 352696 (16%)
352504 (16%)
📉
-192 (0%)
20408 (3%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 354216 (16%) ø 20408 (3%) ø
functional_ut_file_manager ✔️ 374536 (17%) ø 20696 (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 ✔️ 125076 (5%) ø 14568 (2%) ø
spike_lk_behavior_kit ✔️ 189944 (9%) ø 48136 (9%) ø
spike_lk_ble ✔️ 228960 (10%) ø 28320 (5%) ø
spike_lk_bluetooth ✔️ 82948 (3%) ø 11544 (2%) ø
spike_lk_cg_animations ✔️ 144696 (6%) ø 46528 (8%) ø
spike_lk_color_kit ✔️ 65776 (3%) ø 13744 (2%) ø
spike_lk_command_kit ✔️ 192776 (9%) ø 50960 (9%) ø
spike_lk_config_kit ✔️ 126956 (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 ✔️ 139016 (6%) ø 14416 (2%) ø
spike_lk_file_reception ✔️ 327112 (15%) ø 27576 (5%) ø
spike_lk_flash_memory ✔️ 63880 (3%) ø 11448 (2%) ø
spike_lk_fs ✔️ 174872 (8%) ø 47904 (9%) ø
spike_lk_lcd ✔️ 162492 (7%) ø 46632 (8%) ø
spike_lk_led_kit ✔️ 103992 (4%) ø 14608 (2%) ø
spike_lk_log_kit ✔️ 63288 (3%) ø 12256 (2%) ø
spike_lk_motors ✔️ 62600 (2%) ø 11488 (2%) ø
spike_lk_qdac ✔️ 78628 (3%) ø 11816 (2%) ø
spike_lk_reinforcer ✔️ 103480 (4%) ø 14608 (2%) ø
spike_lk_rfid ✔️ 78884 (3%)
78956 (3%)
📈
72 (0%)
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 ✔️ 114308 (5%) ø 14056 (2%) ø
spike_lk_ticker_timeout ✔️ 69052 (3%) ø 11632 (2%) ø
spike_lk_update_process_app_base ✔️ 126092 (6%) ø 15296 (2%) ø
spike_lk_update_process_app_update ✔️ 77632 (3%) ø 12352 (2%) ø
spike_lk_watchdog_isr ✔️ 80060 (3%)
80068 (3%)
📈
8 (0%)
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-11-28 09:56:09.021015512 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2022-11-28 09:56:09.381019500 +0000
@@ -1,48 +1,48 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       648(+648) |     18(+18) |     227(+227) |
+| [fill]                     |       632(+632) |     18(+18) |     227(+227) |
 | [lib]/ActivityKit.a        |   19586(+19586) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1368(+1368) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1830(+1830) |       0(+0) |         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 |         62(+62) |       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]/CoreMCU.a            |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CoreMutex.a          |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |         12(+12) |       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     |     1432(+1432) |       0(+0) |         0(+0) |
 | [lib]/FirmwareKit.a        |       638(+638) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a             |   19410(+19410) |       0(+0) |       10(+10) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
 | [lib]/ReinforcerKit.a      |     1544(+1544) |       0(+0) |         0(+0) |
 | [lib]/SerialNumberKit.a    |       596(+596) |       0(+0) |         0(+0) |
 | [lib]/Utils.a              |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a           |       938(+938) |       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                  |       564(+564) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 173224(+173224) |   773(+773) | 19647(+19647) |
 | [lib]/misc                 |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   10684(+10684) |     16(+16) |     204(+204) |
 | main.cpp.obj               |   71174(+71174) |   548(+548) | 25187(+25187) |
 | Subtotals                  | 377444(+377444) | 3944(+3944) | 76376(+76376) |
 Total Static RAM memory (data + bss): 80320(+80320) bytes
 Total Flash memory (text + data): 381388(+381388) bytes
 
functional_ut_deep_sleep_core_buffered_serial (click to expand)

Flash used: 360236&nbsp;(17%) / total: 2097152
SRAM used: 20440&nbsp;(3%) / total: 524288
functional_ut_deep_sleep_log_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/functional_ut_deep_sleep_log_kit-map.txt	2022-11-28 09:56:11.365041665 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/functional_ut_deep_sleep_log_kit-map.txt	2022-11-28 09:56:11.637044704 +0000
@@ -1,15 +1,15 @@
 | Module                 |           .text |       .data |          .bss |
 |------------------------|-----------------|-------------|---------------|
-| [fill]                 |       162(+162) |     16(+16) |       39(+39) |
+| [fill]                 |       202(+202) |     16(+16) |       39(+39) |
 | [lib]/c.a              |   73780(+73780) | 2574(+2574) |       97(+97) |
 | [lib]/gcc.a            |     7416(+7416) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a |   46934(+46934) |   460(+460) | 10193(+10193) |
 | [lib]/misc             |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a          |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a         | 173836(+173836) |   145(+145) |   5720(+5720) |
 | __/__                  |     1938(+1938) |       1(+1) |     817(+817) |
-| suite_log_kit.cpp.obj  |     3518(+3518) |       0(+0) |         2(+2) |
-| Subtotals              | 307804(+307804) | 3200(+3200) | 16896(+16896) |
+| suite_log_kit.cpp.obj  |     3350(+3350) |       0(+0) |         2(+2) |
+| Subtotals              | 307676(+307676) | 3200(+3200) | 16896(+16896) |
 Total Static RAM memory (data + bss): 20096(+20096) bytes
-Total Flash memory (text + data): 311004(+311004) bytes
+Total Flash memory (text + data): 310876(+310876) bytes
 
Flash used: 352504&nbsp;(16%) / total: 2097152
SRAM used: 20408&nbsp;(3%) / total: 524288
spike_lk_rfid (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_rfid-map.txt	2022-11-28 09:56:22.973156922 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_rfid-map.txt	2022-11-28 09:56:23.133158658 +0000
@@ -1,19 +1,19 @@
 | Module                     |         .text |       .data |        .bss |
 |----------------------------|---------------|-------------|-------------|
-| [fill]                     |     128(+128) |       8(+8) |     20(+20) |
-| [lib]/CoreBufferedSerial.a |     108(+108) |       0(+0) |       0(+0) |
+| [fill]                     |     176(+176) |       8(+8) |     20(+20) |
+| [lib]/CoreBufferedSerial.a |     124(+124) |       0(+0) |       0(+0) |
 | [lib]/CoreEventQueue.a     |     126(+126) |       0(+0) |       0(+0) |
 | [lib]/CoreRFIDReader.a     |     688(+688) |       0(+0) |       0(+0) |
 | [lib]/HelloWorld.a         |       94(+94) |       0(+0) |       0(+0) |
 | [lib]/RFIDKit.a            |   1046(+1046) |       0(+0) |       8(+8) |
 | [lib]/c.a                  | 26128(+26128) | 2472(+2472) |     58(+58) |
 | [lib]/gcc.a                |   7084(+7084) |       0(+0) |       0(+0) |
 | [lib]/mbed-os-static.a     | 31142(+31142) |   444(+444) | 8138(+8138) |
 | [lib]/misc                 |     188(+188) |       4(+4) |     28(+28) |
 | [lib]/nosys.a              |       32(+32) |       0(+0) |       0(+0) |
 | [lib]/stdc++.a             |   4116(+4116) |       8(+8) |     28(+28) |
 | main.cpp.obj               |     356(+356) |       0(+0) |       0(+0) |
-| Subtotals                  | 71236(+71236) | 2936(+2936) | 8280(+8280) |
+| Subtotals                  | 71300(+71300) | 2936(+2936) | 8280(+8280) |
 Total Static RAM memory (data + bss): 11216(+11216) bytes
-Total Flash memory (text + data): 74172(+74172) bytes
+Total Flash memory (text + data): 74236(+74236) bytes
 
Flash used: 78956&nbsp;(3%) / total: 2097152
SRAM used: 11504&nbsp;(2%) / total: 524288
spike_lk_watchdog_isr (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_watchdog_isr-map.txt	2022-11-28 09:56:26.477194810 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_watchdog_isr-map.txt	2022-11-28 09:56:26.637196530 +0000
@@ -1,20 +1,20 @@
 | Module                     |         .text |       .data |          .bss |
 |----------------------------|---------------|-------------|---------------|
-| [fill]                     |     158(+158) |       8(+8) |       38(+38) |
-| [lib]/CoreBufferedSerial.a |       62(+62) |       0(+0) |         0(+0) |
+| [fill]                     |     142(+142) |       8(+8) |       38(+38) |
+| [lib]/CoreBufferedSerial.a |       78(+78) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |     126(+126) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |     592(+592) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a    |         8(+8) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |   1046(+1046) |       0(+0) |         8(+8) |
 | [lib]/c.a                  | 26128(+26128) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a                |   7084(+7084) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 31536(+31536) |   444(+444) |   8154(+8154) |
 | [lib]/misc                 |     188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a              |       32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a             |   4116(+4116) |       8(+8) |       28(+28) |
 | main.cpp.obj               |   1218(+1218) |       0(+0) |   1734(+1734) |
 | Subtotals                  | 72388(+72388) | 2936(+2936) | 10048(+10048) |
 Total Static RAM memory (data + bss): 12984(+12984) bytes
 Total Flash memory (text + data): 75324(+75324) bytes
 
Flash used: 80068&nbsp;(3%) / total: 2097152
SRAM used: 13272&nbsp;(2%) / total: 524288

@ladislas ladislas force-pushed the ladislas/feature/deep-sleep-core-buffered-serial branch from 4072085 to 67f2ac5 Compare November 25, 2022 14:43
@ladislas ladislas marked this pull request as ready for review November 25, 2022 14:43
@ladislas ladislas force-pushed the ladislas/feature/deep-sleep-core-buffered-serial branch from 67f2ac5 to 06cc2d5 Compare November 25, 2022 15:07
This would allow us to turn off input and improve power saving
@ladislas ladislas force-pushed the ladislas/feature/deep-sleep-core-buffered-serial branch 3 times, most recently from aa26e56 to 0e295b6 Compare November 27, 2022 13:40
@ladislas ladislas force-pushed the ladislas/feature/deep-sleep-core-buffered-serial branch from 0e295b6 to c9dfa25 Compare November 28, 2022 09:45
@sonarcloud
Copy link

sonarcloud bot commented Nov 28, 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

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@HPezz HPezz left a comment

Choose a reason for hiding this comment

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

Nice

@ladislas ladislas merged commit fd8eac6 into develop Nov 28, 2022
@ladislas ladislas deleted the ladislas/feature/deep-sleep-core-buffered-serial branch November 28, 2022 11:09
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