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/bugfix/cleanup warnings #1108

Merged
merged 18 commits into from
Nov 17, 2022
Merged

Conversation

ladislas
Copy link
Member

@ladislas ladislas commented Nov 7, 2022

this PR fixes some (a lot) of sonarcloud, clang-tidy and compiler (gcc/clang) warnings/errors.

@ladislas ladislas requested review from HPezz and YannLocatelli and removed request for HPezz November 7, 2022 11:58
@ladislas ladislas self-assigned this Nov 7, 2022
@ladislas ladislas added the 01 - type: task Something to do label Nov 7, 2022
@ladislas ladislas added this to the Future Release milestone Nov 7, 2022
@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #1108 (7ebd539) into develop (9e04f87) will increase coverage by 0.02%.
The diff coverage is 83.01%.

❗ Current head 7ebd539 differs from pull request most recent head ca474ed. Consider uploading reports for the commit ca474ed to get more accurate results

@@             Coverage Diff             @@
##           develop    #1108      +/-   ##
===========================================
+ Coverage    96.03%   96.06%   +0.02%     
===========================================
  Files          138      138              
  Lines         3256     3251       -5     
===========================================
- Hits          3127     3123       -4     
+ Misses         129      128       -1     
Impacted Files Coverage Δ
...vers/CoreFlashMemory/include/CoreFlashIS25LP016D.h 100.00% <ø> (ø)
...reFlashMemory/include/CoreFlashManagerIS25LP016D.h 100.00% <ø> (ø)
drivers/CoreQSPI/include/CoreQSPI.h 100.00% <ø> (ø)
drivers/CoreSPI/include/CoreSPI.h 100.00% <ø> (ø)
drivers/CoreVideo/include/CoreJPEG.hpp 100.00% <ø> (ø)
drivers/CoreVideo/include/CoreJPEGModeDMA.hpp 100.00% <ø> (ø)
drivers/CoreVideo/include/CoreJPEGModePolling.hpp 100.00% <ø> (ø)
libs/FileManagerKit/include/FileManagerKit.h 100.00% <ø> (ø)
drivers/CoreVideo/source/CoreJPEGModeDMA.cpp 47.01% <18.18%> (+0.30%) ⬆️
...ers/CoreFlashMemory/source/CoreFlashIS25LP016D.cpp 100.00% <100.00%> (ø)
... and 13 more

📣 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 7, 2022

File comparision analysis report

🔖 Info

  • base: develop / 2456fc7 + mbed-os-6.15.1+fixes+gcc-11-support + -std=c++20
  • head: ladislas/bugfix/cleanup-warnings / ca474ed + 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 169508 (64%) 92636 (35%) 30920 (5%)
os 410728 (26%) 1153944 (73%) 79608 (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 ✔️ 410728 (19%) ø 79608 (15%) ø
bootloader ✔️ 169508 (8%) ø 30920 (5%) ø
functional_ut_boost_ut ✔️ 384496 (18%) ø 20424 (3%) ø
functional_ut_deep_sleep_log_kit ✔️ 353936 (16%) ø 20376 (3%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 355456 (16%) ø 20376 (3%) ø
functional_ut_file_manager ✔️ 373280 (17%) ø 20664 (3%) ø
functional_ut_imu ✔️ 369644 (17%) ø 20392 (3%) ø
functional_ut_io_expander ✔️ 360200 (17%) ø 20392 (3%) ø
functional_ut_qdac ✔️ 361448 (17%) ø 20392 (3%) ø
spike_lk_accel_gyro ✔️ 71184 (3%) ø 11808 (2%) ø
spike_lk_audio ✔️ 125076 (5%) ø 14568 (2%) ø
spike_lk_behavior_kit ✔️ 189752 (9%) ø 48120 (9%) ø
spike_lk_ble ✔️ 228768 (10%) ø 28200 (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 ✔️ 192520 (9%) ø 50944 (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 ✔️ 174616 (8%) ø 47888 (9%) ø
spike_lk_lcd ✔️ 162236 (7%) ø 46616 (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%) ø 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 ✔️ 114244 (5%)
114308 (5%)
📈
64 (0%)
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%) ø 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-17 23:51:58.633485768 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2022-11-17 23:51:58.985493901 +0000
@@ -1,48 +1,48 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       652(+652) |     18(+18) |     212(+212) |
+| [fill]                     |       634(+634) |     18(+18) |     212(+212) |
 | [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        |     1794(+1794) |       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]/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          |     7944(+7944) |       1(+1) | 30800(+30800) |
+| [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      |     1484(+1484) |       0(+0) |         0(+0) |
-| [lib]/SerialNumberKit.a    |       588(+588) |       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           |       774(+774) |       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               |   62552(+62552) |   548(+548) | 24122(+24122) |
 | Subtotals                  | 368548(+368548) | 3944(+3944) | 75296(+75296) |
 Total Static RAM memory (data + bss): 79240(+79240) bytes
 Total Flash memory (text + data): 372492(+372492) bytes
 
spike_lk_behavior_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_behavior_kit-map.txt	2022-11-17 23:52:04.557622653 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_behavior_kit-map.txt	2022-11-17 23:52:04.769627552 +0000
@@ -1,28 +1,28 @@
 | Module                 |           .text |       .data |          .bss |
 |------------------------|-----------------|-------------|---------------|
-| [fill]                 |       252(+252) |     15(+15) |       32(+32) |
+| [fill]                 |       242(+242) |     15(+15) |       32(+32) |
 | [lib]/BehaviorKit.a    |     1234(+1234) |       0(+0) |         0(+0) |
 | [lib]/ColorKit.a       |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a      |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a        |         12(+12) |       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      |     7944(+7944) |       1(+1) | 30800(+30800) |
+| [lib]/CoreVideo.a      |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/EventLoopKit.a   |       366(+366) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a         |   19410(+19410) |       0(+0) |       10(+10) |
 | [lib]/VideoKit.a       |       818(+818) |       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 |   64608(+64608) |   464(+464) | 10261(+10261) |
 | [lib]/misc             |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a          |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a         |   10328(+10328) |     16(+16) |     204(+204) |
 | main.cpp.obj           |     5012(+5012) |   448(+448) |   2812(+2812) |
 | Subtotals              | 162628(+162628) | 3520(+3520) | 44280(+44280) |
 Total Static RAM memory (data + bss): 47800(+47800) bytes
 Total Flash memory (text + data): 166148(+166148) bytes
 
spike_lk_cg_animations (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_cg_animations-map.txt	2022-11-17 23:52:05.881653247 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_cg_animations-map.txt	2022-11-17 23:52:06.061657431 +0000
@@ -1,18 +1,18 @@
 | Module                 |           .text |       .data |          .bss |
 |------------------------|-----------------|-------------|---------------|
-| [fill]                 |       222(+222) |       3(+3) |       34(+34) |
+| [fill]                 |       212(+212) |       3(+3) |       34(+34) |
 | [lib]/CoreSTM32Hal.a   |       930(+930) |       0(+0) |         0(+0) |
-| [lib]/CoreVideo.a      |     7920(+7920) |       1(+1) | 30800(+30800) |
+| [lib]/CoreVideo.a      |     7930(+7930) |       1(+1) | 30800(+30800) |
 | [lib]/HelloWorld.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/UIAnimationKit.a |       540(+540) |       0(+0) |         0(+0) |
 | [lib]/c.a              |   36984(+36984) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a            |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a |   62112(+62112) |   460(+460) | 10269(+10269) |
 | [lib]/misc             |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a          |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a         |     5356(+5356) |       8(+8) |       44(+44) |
 | main.cpp.obj           |     1258(+1258) |       8(+8) |   1912(+1912) |
 | Subtotals              | 122784(+122784) | 3056(+3056) | 43184(+43184) |
 Total Static RAM memory (data + bss): 46240(+46240) bytes
 Total Flash memory (text + data): 125840(+125840) bytes
 
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2022-11-17 23:52:06.661671519 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2022-11-17 23:52:06.877676591 +0000
@@ -1,31 +1,31 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       252(+252) |     17(+17) |       36(+36) |
+| [fill]                  |       242(+242) |     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]/CoreMotor.a       |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         12(+12) |       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       |     7944(+7944) |       1(+1) | 30800(+30800) |
+| [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       366(+366) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a          |   19264(+19264) |       0(+0) |       10(+10) |
 | [lib]/ReinforcerKit.a   |     1544(+1544) |       0(+0) |         0(+0) |
 | [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       818(+818) |       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  |   64608(+64608) |   464(+464) | 10261(+10261) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10328(+10328) |     16(+16) |     204(+204) |
 | main.cpp.obj            |     6086(+6086) |   718(+718) |   5360(+5360) |
 | Subtotals               | 165060(+165060) | 3792(+3792) | 46832(+46832) |
 Total Static RAM memory (data + bss): 50624(+50624) bytes
 Total Flash memory (text + data): 168852(+168852) bytes
 
spike_lk_fs (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_fs-map.txt	2022-11-17 23:52:09.817745627 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_fs-map.txt	2022-11-17 23:52:10.021750417 +0000
@@ -1,22 +1,22 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       208(+208) |       7(+7) |       34(+34) |
+| [fill]                  |       198(+198) |       7(+7) |       34(+34) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |       126(+126) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
-| [lib]/CoreVideo.a       |     7944(+7944) |       1(+1) | 30800(+30800) |
+| [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/FileManagerKit.a  |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       818(+818) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   41940(+41940) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   69486(+69486) |   464(+464) | 10305(+10305) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   14514(+14514) |     16(+16) |     204(+204) |
 | main.cpp.obj            |     2836(+2836) |       8(+8) |   3000(+3000) |
 | source/ComUtils.cpp.obj |       666(+666) |       0(+0) |         0(+0) |
 | Subtotals               | 147956(+147956) | 3072(+3072) | 44504(+44504) |
 Total Static RAM memory (data + bss): 47576(+47576) bytes
 Total Flash memory (text + data): 151028(+151028) bytes
 
spike_lk_lcd (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_lcd-map.txt	2022-11-17 23:52:10.257755959 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_lcd-map.txt	2022-11-17 23:52:10.449760467 +0000
@@ -1,20 +1,20 @@
 | Module                 |           .text |       .data |          .bss |
 |------------------------|-----------------|-------------|---------------|
-| [fill]                 |       210(+210) |     11(+11) |       26(+26) |
+| [fill]                 |       200(+200) |     11(+11) |       26(+26) |
 | [lib]/CoreEventFlags.a |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a   |       930(+930) |       0(+0) |         0(+0) |
-| [lib]/CoreVideo.a      |     7944(+7944) |       1(+1) | 30800(+30800) |
+| [lib]/CoreVideo.a      |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/FileManagerKit.a |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a       |       774(+774) |       0(+0) |       36(+36) |
 | [lib]/c.a              |   41940(+41940) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a            |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a |   64528(+64528) |   464(+464) | 10269(+10269) |
 | [lib]/misc             |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a          |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a         |   10240(+10240) |     16(+16) |     204(+204) |
 | main.cpp.obj           |     1782(+1782) |     36(+36) |   1740(+1740) |
 | Subtotals              | 136836(+136836) | 3104(+3104) | 43200(+43200) |
 Total Static RAM memory (data + bss): 46304(+46304) bytes
 Total Flash memory (text + data): 139940(+139940) bytes
 
spike_lk_serial_number (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_serial_number-map.txt	2022-11-17 23:52:14.525856039 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_serial_number-map.txt	2022-11-17 23:52:14.685859753 +0000
@@ -1,17 +1,17 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       140(+140) |       0(+0) |       38(+38) |
+| [fill]                  |       196(+196) |       0(+0) |       38(+38) |
 | [lib]/CoreMCU.a         |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |       936(+936) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/SerialNumberKit.a |       588(+588) |       0(+0) |         0(+0) |
+| [lib]/SerialNumberKit.a |       596(+596) |       0(+0) |         0(+0) |
 | [lib]/c.a               |   47736(+47736) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     3276(+3276) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   49758(+49758) |   464(+464) | 10193(+10193) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | main.cpp.obj            |       432(+432) |       8(+8) |     364(+364) |
-| Subtotals               | 103196(+103196) | 3048(+3048) | 10720(+10720) |
+| Subtotals               | 103260(+103260) | 3048(+3048) | 10720(+10720) |
 Total Static RAM memory (data + bss): 13768(+13768) bytes
-Total Flash memory (text + data): 106244(+106244) bytes
+Total Flash memory (text + data): 106308(+106308) bytes
 
Flash used: 114308&nbsp;(5%) / total: 2097152
SRAM used: 14056&nbsp;(2%) / total: 524288

@github-actions
Copy link

github-actions bot commented Nov 7, 2022

File comparision analysis report

🔖 Info

  • base: develop / 2456fc7 + mbed-os-6.15.1+fixes+gcc-11-support + -std=c++20
  • head: ladislas/bugfix/cleanup-warnings / ca474ed + 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 182028 (69%) 80116 (30%) 37520 (7%)
os 451780 (28%) 1112892 (71%) 86728 (16%)
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 ✔️ 451780 (21%) ø 86728 (16%) ø
bootloader ✔️ 182028 (8%) ø 37520 (7%) ø
functional_ut_boost_ut ✔️ 396192 (18%) ø 27152 (5%) ø
functional_ut_deep_sleep_log_kit ✔️ 366688 (17%) ø 27104 (5%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 368240 (17%) ø 27104 (5%) ø
functional_ut_file_manager ✔️ 385928 (18%) ø 27400 (5%) ø
functional_ut_imu ✔️ 381324 (18%) ø 27120 (5%) ø
functional_ut_io_expander ✔️ 371832 (17%) ø 27120 (5%) ø
functional_ut_qdac ✔️ 373144 (17%) ø 27120 (5%) ø
spike_lk_accel_gyro ✔️ 94048 (4%) ø 18472 (3%) ø
spike_lk_audio ✔️ 135196 (6%) ø 21048 (4%) ø
spike_lk_behavior_kit ✔️ 198380 (9%) ø 54600 (10%) ø
spike_lk_ble ✔️ 236780 (11%) ø 34920 (6%) ø
spike_lk_bluetooth ✔️ 92364 (4%) ø 18128 (3%) ø
spike_lk_cg_animations ✔️ 152392 (7%) ø 53128 (10%) ø
spike_lk_color_kit ✔️ 88480 (4%) ø 20280 (3%) ø
spike_lk_command_kit ✔️ 202844 (9%) ø 57936 (11%) ø
spike_lk_config_kit ✔️ 138932 (6%) ø 21040 (4%) ø
spike_lk_coreled ✔️ 88044 (4%) ø 20168 (3%) ø
spike_lk_core_touch_sensor ✔️ 92884 (4%) ø 18736 (3%) ø
spike_lk_event_queue ✔️ 84152 (4%) ø 18808 (3%) ø
spike_lk_file_manager_kit ✔️ 154048 (7%) ø 21400 (4%) ø
spike_lk_file_reception ✔️ 331308 (15%) ø 34136 (6%) ø
spike_lk_flash_memory ✔️ 86776 (4%) ø 18120 (3%) ø
spike_lk_fs ✔️ 173976 (8%) ø 47976 (9%) ø
spike_lk_lcd ✔️ 171916 (8%) ø 53352 (10%) ø
spike_lk_led_kit ✔️ 115772 (5%) ø 21088 (4%) ø
spike_lk_log_kit ✔️ 84776 (4%) ø 19312 (3%) ø
spike_lk_motors ✔️ 86072 (4%) ø 18152 (3%) ø
spike_lk_qdac ✔️ 91572 (4%) ø 18680 (3%) ø
spike_lk_reinforcer ✔️ 112316 (5%) ø 21088 (4%) ø
spike_lk_rfid ✔️ 84080 (4%) ø 18088 (3%) ø
spike_lk_sensors_battery ✔️ 87184 (4%) ø 19184 (3%) ø
spike_lk_sensors_light ✔️ 84072 (4%) ø 18120 (3%) ø
spike_lk_sensors_microphone ✔️ 84824 (4%) ø 18120 (3%) ø
spike_lk_sensors_temperature_humidity ✔️ 90400 (4%) ø 18096 (3%) ø
spike_lk_sensors_touch ✔️ 91672 (4%) ø 18360 (3%) ø
spike_lk_serial_number ✔️ 136316 (6%) ø 20960 (3%) ø
spike_lk_ticker_timeout ✔️ 82712 (3%) ø 18136 (3%) ø
spike_lk_update_process_app_base ✔️ 148044 (7%) ø 21968 (4%) ø
spike_lk_update_process_app_update ✔️ 100456 (4%) ø 19144 (3%) ø
spike_lk_watchdog_isr ✔️ 87320 (4%) ø 20024 (3%) ø
spike_lk_wifi ✔️ 130832 (6%) ø 21432 (4%) ø
spike_mbed_blinky ✔️ 57616 (2%) ø 11496 (2%) ø
spike_mbed_watchdog_ticker_vs_thread ✔️ 84176 (4%) ø 18984 (3%) ø
spike_stl_cxxsupport ✔️ 83488 (3%) ø 18208 (3%) ø

🗺️ 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-17 23:52:26.308032668 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/LekaOS-map.txt	2022-11-17 23:52:26.660040347 +0000
@@ -1,48 +1,48 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       620(+620) |     18(+18) |     233(+233) |
+| [fill]                     |       602(+602) |     18(+18) |     233(+233) |
 | [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        |     1794(+1794) |       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]/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          |     7944(+7944) |       1(+1) | 30800(+30800) |
+| [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      |     1484(+1484) |       0(+0) |         0(+0) |
-| [lib]/SerialNumberKit.a    |       588(+588) |       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           |       774(+774) |       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               | 102964(+102964) |   548(+548) | 31133(+31133) |
 | Subtotals                  | 409124(+409124) | 3944(+3944) | 82416(+82416) |
 Total Static RAM memory (data + bss): 86360(+86360) bytes
 Total Flash memory (text + data): 413068(+413068) bytes
 
spike_lk_behavior_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_behavior_kit-map.txt	2022-11-17 23:52:32.356164574 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_behavior_kit-map.txt	2022-11-17 23:52:32.572169282 +0000
@@ -1,29 +1,29 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       286(+286) |     15(+15) |       36(+36) |
+| [fill]                  |       276(+276) |     15(+15) |       36(+36) |
 | [lib]/BehaviorKit.a     |     1234(+1234) |       0(+0) |         0(+0) |
 | [lib]/ColorKit.a        |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a       |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         12(+12) |       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       |     7944(+7944) |       1(+1) | 30800(+30800) |
+| [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  |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a          |   19410(+19410) |       0(+0) |       10(+10) |
 | [lib]/VideoKit.a        |       818(+818) |       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  |   69980(+69980) |   464(+464) | 10393(+10393) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10748(+10748) |     16(+16) |     204(+204) |
 | main.cpp.obj            |     7100(+7100) |   448(+448) |   9156(+9156) |
 | Subtotals               | 169812(+169812) | 3520(+3520) | 50760(+50760) |
 Total Static RAM memory (data + bss): 54280(+54280) bytes
 Total Flash memory (text + data): 173332(+173332) bytes
 
spike_lk_cg_animations (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_cg_animations-map.txt	2022-11-17 23:52:33.700193868 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_cg_animations-map.txt	2022-11-17 23:52:33.884197879 +0000
@@ -1,20 +1,20 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       220(+220) |       3(+3) |       38(+38) |
+| [fill]                  |       210(+210) |       3(+3) |       38(+38) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
-| [lib]/CoreVideo.a       |     7920(+7920) |       1(+1) | 30800(+30800) |
+| [lib]/CoreVideo.a       |     7930(+7930) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/UIAnimationKit.a  |       508(+508) |       0(+0) |         0(+0) |
 | [lib]/c.a               |   35904(+35904) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |       360(+360) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   66108(+66108) |   460(+460) | 10393(+10393) |
 | [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            |     3596(+3596) |       8(+8) |   8384(+8384) |
 | Subtotals               | 128880(+128880) | 3056(+3056) | 49784(+49784) |
 Total Static RAM memory (data + bss): 52840(+52840) bytes
 Total Flash memory (text + data): 131936(+131936) bytes
 
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2022-11-17 23:52:34.504211393 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2022-11-17 23:52:34.724216188 +0000
@@ -1,31 +1,31 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       274(+274) |     17(+17) |       40(+40) |
+| [fill]                  |       264(+264) |     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]/CoreMotor.a       |       130(+130) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a         |         12(+12) |       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       |     7944(+7944) |       1(+1) | 30800(+30800) |
+| [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  |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/LedKit.a          |   19264(+19264) |       0(+0) |       10(+10) |
 | [lib]/ReinforcerKit.a   |     1544(+1544) |       0(+0) |         0(+0) |
 | [lib]/Utils.a           |         34(+34) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       818(+818) |       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  |   69980(+69980) |   464(+464) | 10393(+10393) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10748(+10748) |     16(+16) |     204(+204) |
 | main.cpp.obj            |     9538(+9538) |   718(+718) | 12216(+12216) |
 | Subtotals               | 173588(+173588) | 3792(+3792) | 53824(+53824) |
 Total Static RAM memory (data + bss): 57616(+57616) bytes
 Total Flash memory (text + data): 177380(+177380) bytes
 
spike_lk_fs (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_fs-map.txt	2022-11-17 23:52:37.700281054 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_fs-map.txt	2022-11-17 23:52:37.896285326 +0000
@@ -1,22 +1,22 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       216(+216) |       7(+7) |       34(+34) |
+| [fill]                  |       206(+206) |       7(+7) |       34(+34) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a  |       126(+126) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
-| [lib]/CoreVideo.a       |     7944(+7944) |       1(+1) | 30800(+30800) |
+| [lib]/CoreVideo.a       |     7954(+7954) |       1(+1) | 30800(+30800) |
 | [lib]/FileManagerKit.a  |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       818(+818) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40836(+40836) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   69942(+69942) |   464(+464) | 10393(+10393) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   14514(+14514) |     16(+16) |     204(+204) |
 | main.cpp.obj            |     2836(+2836) |       8(+8) |   3000(+3000) |
 | source/ComUtils.cpp.obj |       666(+666) |       0(+0) |         0(+0) |
 | Subtotals               | 147316(+147316) | 3072(+3072) | 44592(+44592) |
 Total Static RAM memory (data + bss): 47664(+47664) bytes
 Total Flash memory (text + data): 150388(+150388) bytes
 
spike_lk_lcd (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_lcd-map.txt	2022-11-17 23:52:38.140290644 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_lcd-map.txt	2022-11-17 23:52:38.336294916 +0000
@@ -1,22 +1,22 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       196(+196) |     11(+11) |       30(+30) |
+| [fill]                  |       186(+186) |     11(+11) |       30(+30) |
 | [lib]/CoreEventFlags.a  |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreSTM32Hal.a    |       930(+930) |       0(+0) |         0(+0) |
-| [lib]/CoreVideo.a       |     7960(+7960) |       1(+1) | 30800(+30800) |
+| [lib]/CoreVideo.a       |     7970(+7970) |       1(+1) | 30800(+30800) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |       932(+932) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/VideoKit.a        |       774(+774) |       0(+0) |       36(+36) |
 | [lib]/c.a               |   40860(+40860) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |       360(+360) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   69792(+69792) |   464(+464) | 10393(+10393) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          |   10748(+10748) |     16(+16) |     204(+204) |
 | main.cpp.obj            |     4672(+4672) |     44(+44) |   8340(+8340) |
 | Subtotals               | 144788(+144788) | 3112(+3112) | 49928(+49928) |
 Total Static RAM memory (data + bss): 53040(+53040) bytes
 Total Flash memory (text + data): 147900(+147900) bytes
 
spike_lk_serial_number (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_serial_number-map.txt	2022-11-17 23:52:42.580387610 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_serial_number-map.txt	2022-11-17 23:52:42.756391455 +0000
@@ -1,20 +1,20 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       222(+222) |       0(+0) |       38(+38) |
+| [fill]                  |       214(+214) |       0(+0) |       38(+38) |
 | [lib]/CoreMCU.a         |         16(+16) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/FileManagerKit.a  |       936(+936) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |         94(+94) |       0(+0) |         0(+0) |
-| [lib]/SerialNumberKit.a |       588(+588) |       0(+0) |         0(+0) |
+| [lib]/SerialNumberKit.a |       596(+596) |       0(+0) |         0(+0) |
 | [lib]/c.a               |   46520(+46520) | 2572(+2572) |       97(+97) |
 | [lib]/gcc.a             |     7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |       360(+360) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   57578(+57578) |   464(+464) | 10317(+10317) |
 | [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            |     3110(+3110) |       8(+8) |   7092(+7092) |
 | Subtotals               | 122224(+122224) | 3056(+3056) | 17616(+17616) |
 Total Static RAM memory (data + bss): 20672(+20672) bytes
 Total Flash memory (text + data): 125280(+125280) bytes
 

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.

LGTM, just 3 questions

drivers/CoreRFIDReader/source/CoreRFIDReaderCR95HF.cpp Outdated Show resolved Hide resolved
libs/FileManagerKit/source/File.cpp Outdated Show resolved Hide resolved
libs/WebKit/source/WebKit.cpp Outdated Show resolved Hide resolved
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.

  • Validate on robot (Screen + BLE)

@ladislas ladislas force-pushed the ladislas/bugfix/cleanup-warnings branch from e3641e8 to 8e33950 Compare November 14, 2022 13:34
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.

Please do not change code in extern.

Except that, everything works fine ✅ (LekaOS seems to run normally on the robot)

@ladislas ladislas force-pushed the ladislas/bugfix/cleanup-warnings branch 4 times, most recently from 0faddff to 26f2f9c Compare November 14, 2022 23:22
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.

LGTM

@@ -161,7 +161,7 @@ TEST_F(CoreFontTest, displayNormalSentence)
{
constexpr uint8_t buff_size = 128;
char buff[buff_size] {};
auto text_length = sprintf(buff, "Some text");
auto text_length = snprintf(buff, buff_size, "Some text");
Copy link
Contributor

Choose a reason for hiding this comment

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

Is "snprintf rather than sprintf" something to remind as a good practice ?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, see:

https://www.gnu.org/software/libc/manual/html_node/Formatted-Output-Functions.html

Warning: The sprintf function can be dangerous because it can potentially output more characters than can fit in the allocation size of the string s. Remember that the field width given in a conversion specification is only a minimum value.

The snprintf function is similar to sprintf, except that the size argument specifies the maximum number of characters to produce.

The return value is the number of characters which would be generated for the given input, excluding the trailing null. If this value is greater than or equal to size, not all characters from the result have been stored in s. You should try again with a bigger output string.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, see:

https://www.gnu.org/software/libc/manual/html_node/Formatted-Output-Functions.html

Warning: The sprintf function can be dangerous because it can potentially output more characters than can fit in the allocation size of the string s. Remember that the field width given in a conversion specification is only a minimum value.

The snprintf function is similar to sprintf, except that the size argument specifies the maximum number of characters to produce.

The return value is the number of characters which would be generated for the given input, excluding the trailing null. If this value is greater than or equal to size, not all characters from the result have been stored in s. You should try again with a bigger output string.

@ladislas ladislas force-pushed the ladislas/bugfix/cleanup-warnings branch from 2a24966 to 73652c9 Compare November 15, 2022 16:11
@ladislas ladislas linked an issue Nov 16, 2022 that may be closed by this pull request
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.

Some questions and precisions.

I add a commit to suggest a precision.

.clang-tidy Show resolved Hide resolved
drivers/CoreVideo/include/CoreJPEGModePolling.hpp Outdated Show resolved Hide resolved
libs/BLEKit/source/CoreGap.cpp Outdated Show resolved Hide resolved
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.

Looks very great! Thank you for the job done~

@ladislas ladislas force-pushed the ladislas/bugfix/cleanup-warnings branch 3 times, most recently from 0923d97 to 0740937 Compare November 17, 2022 12:46
…g' but the argument has type 'uint32_t'

Using <cinttypes> and PRI... format specifiers allows code to compile
without warning on both arm-none-eabi-gcc and clang/gcc on host machine.

See for more information:

- https://en.cppreference.com/w/cpp/io/c/fprintf
- https://en.cppreference.com/w/cpp/header/cinttypes
- Do not use array subscript when the index is not an integer constant expression
- Constructor does not initialize these fields: convertMCUBlocks
- Performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'unsigned int'
- Performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int'
- xx is a magic number; consider replacing it with a named constant
- Missing username/bug in TODO
- Do not use C-style cast to convert between unrelated types
- Result of multiplication in type 'unsigned int' is used as a pointer offset after an implicit widening conversion to type 'size_t'
- Do not use array subscript when the index is not an integer constant expression
- warning: missing username/bug in TODO
- warning: 4000 is a magic number; consider replacing it with a named constant
@ladislas ladislas force-pushed the ladislas/bugfix/cleanup-warnings branch from 0740937 to ca474ed Compare November 17, 2022 23:43
@ladislas ladislas merged commit deac2d0 into develop Nov 17, 2022
@ladislas ladislas deleted the ladislas/bugfix/cleanup-warnings branch November 17, 2022 23:54
@sonarcloud
Copy link

sonarcloud bot commented Nov 17, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

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

76.8% 76.8% Coverage
0.0% 0.0% Duplication

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.

Replace use of sprintf w/ snprintf
3 participants