Skip to content

Conversation

@ladislas
Copy link
Member

@ladislas ladislas commented Jan 2, 2023

  • 🚨 (warnings): Turn off -Wdeprecated-volatile
  • 🚨 (warnings): Turn off -Wformat-security
  • 🔧 (cmake): Turn off -Wshadow
  • 🚨 (warnings): FileManager - Fix -Wshadow

@ladislas ladislas self-assigned this Jan 2, 2023
@github-actions
Copy link

github-actions bot commented Jan 2, 2023

File comparision analysis report

🔖 Info

Target Flash Used (base/head) Fash Used Δ Flash Available (base/head) Static RAM (base/head) Static RAM Δ
bootloader 170784 (65%) ø 91360 (34%)
91360 (34%)
30968 (5%) ø
os 435024 (27%)
434960 (27%)
📉
-64 (0%)
1129648 (72%)
1129712 (72%)
83112 (15%)
83104 (15%)
📉
-8 (0%)
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 ✔️ 435024 (20%)
434960 (20%)
📉
-64 (0%)
83112 (15%)
83104 (15%)
📉
-8 (0%)
bootloader ✔️ 170784 (8%) ø 30968 (5%) ø
functional_ut_boost_ut ✔️ 394140 (18%) ø 20456 (3%) ø
functional_ut_core_imu ✔️ 377348 (17%) ø 20432 (3%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 360600 (17%) ø 20440 (3%) ø
functional_ut_deep_sleep_core_motor ✔️ 364540 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_core_pwm ✔️ 366676 (17%) ø 20480 (3%) ø
functional_ut_deep_sleep_log_kit ✔️ 352568 (16%) ø 20408 (3%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 354344 (16%) ø 20408 (3%) ø
functional_ut_file_manager ✔️ 374928 (17%) ø 20696 (3%) ø
functional_ut_firmware_kit ✔️ 366972 (17%) ø 20688 (3%) ø
functional_ut_imu_kit ✔️ 382840 (18%) ø 20424 (3%) ø
functional_ut_io_expander ✔️ 359576 (17%) ø 20424 (3%) ø
functional_ut_qdac ✔️ 360744 (17%) ø 20424 (3%) ø
spike_lk_accel_gyro ✔️ 71408 (3%) ø 11800 (2%)
11792 (2%)
📉
-8 (0%)
spike_lk_audio ✔️ 126988 (6%) ø 14600 (2%) ø
spike_lk_behavior_kit ✔️ 189064 (9%) ø 48080 (9%) ø
spike_lk_ble ✔️ 229600 (10%) ø 28472 (5%) ø
spike_lk_bluetooth ✔️ 82948 (3%) ø 11544 (2%) ø
spike_lk_cg_animations ✔️ 145976 (6%) ø 46528 (8%) ø
spike_lk_color_kit ✔️ 65840 (3%) ø 13744 (2%) ø
spike_lk_command_kit ✔️ 209528 (9%)
209464 (9%)
📉
-64 (0%)
52024 (9%)
52016 (9%)
📉
-8 (0%)
spike_lk_config_kit ✔️ 127284 (6%) ø 14368 (2%) ø
spike_lk_coreled ✔️ 76292 (3%) ø 13688 (2%) ø
spike_lk_core_touch_sensor ✔️ 80508 (3%) ø 12248 (2%) ø
spike_lk_event_queue ✔️ 74800 (3%) ø 12072 (2%) ø
spike_lk_file_manager_kit ✔️ 139400 (6%) ø 14440 (2%) ø
spike_lk_file_reception ✔️ 336000 (16%) ø 27792 (5%) ø
spike_lk_flash_memory ✔️ 63880 (3%) ø 11448 (2%) ø
spike_lk_fs ✔️ 175208 (8%) ø 47904 (9%) ø
spike_lk_imu_kit ✔️ 87980 (4%)
87916 (4%)
📉
-64 (0%)
12168 (2%)
12160 (2%)
📉
-8 (0%)
spike_lk_lcd ✔️ 162796 (7%) ø 46664 (8%) ø
spike_lk_led_kit ✔️ 103424 (4%) ø 14528 (2%) ø
spike_lk_log_kit ✔️ 63288 (3%) ø 12256 (2%) ø
spike_lk_motion_kit ✔️ 102172 (4%)
102108 (4%)
📉
-64 (0%)
14288 (2%) ø
spike_lk_motors ✔️ 62864 (2%) ø 11488 (2%) ø
spike_lk_qdac ✔️ 78852 (3%) ø 11808 (2%) ø
spike_lk_reinforcer ✔️ 206760 (9%)
206696 (9%)
📉
-64 (0%)
49208 (9%) ø
spike_lk_rfid ✔️ 79084 (3%) ø 11504 (2%) ø
spike_lk_sensors_battery ✔️ 78388 (3%) ø 12600 (2%) ø
spike_lk_sensors_light ✔️ 60056 (2%) ø 11440 (2%) ø
spike_lk_sensors_microphone ✔️ 72496 (3%) ø 11504 (2%) ø
spike_lk_sensors_temperature_humidity ✔️ 67272 (3%) ø 11424 (2%) ø
spike_lk_serial_number ✔️ 133084 (6%) ø 14304 (2%) ø
spike_lk_ticker_timeout ✔️ 69052 (3%) ø 11632 (2%) ø
spike_lk_touch_sensor_kit ✔️ 87896 (4%) ø 12824 (2%) ø
spike_lk_update_process_app_base ✔️ 145452 (6%) ø 15584 (2%) ø
spike_lk_update_process_app_update ✔️ 77632 (3%) ø 12352 (2%) ø
spike_lk_watchdog_isr ✔️ 80196 (3%) ø 13288 (2%) ø
spike_lk_wifi ✔️ 116544 (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	2023-01-23 16:03:05.790862955 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/LekaOS-map.txt	2023-01-23 16:03:06.158861107 +0000
@@ -1,53 +1,53 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       684(+684) |     18(+18) |     246(+246) |
+| [fill]                     |       634(+634) |     18(+18) |     242(+242) |
 | [lib]/ActivityKit.a        |   10590(+10590) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1476(+1476) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1852(+1852) |   460(+460) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       544(+544) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         44(+44) |       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]/CoreIMU.a            |     5004(+5004) |       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     |       580(+580) |       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        |     1006(+1006) |       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             |   19050(+19050) |       0(+0) |       20(+20) |
 | [lib]/MotionKit.a          |       838(+838) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
 | [lib]/ReinforcerKit.a      |     1242(+1242) |   460(+460) |         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     | 180206(+180206) |   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               |   76950(+76950) |   108(+108) | 27122(+27122) |
-| Subtotals                  | 390500(+390500) | 4424(+4424) | 78360(+78360) |
-Total Static RAM memory (data + bss): 82784(+82784) bytes
-Total Flash memory (text + data): 394924(+394924) bytes
+| main.cpp.obj               |   76950(+76950) |   108(+108) | 27118(+27118) |
+| Subtotals                  | 390436(+390436) | 4424(+4424) | 78352(+78352) |
+Total Static RAM memory (data + bss): 82776(+82776) bytes
+Total Flash memory (text + data): 394860(+394860) bytes
 
Flash used: 434960 (20%) / total: 2097152
SRAM used: 83104 (15%) / total: 524288
functional_ut_core_imu (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/functional_ut_core_imu-map.txt	2023-01-23 16:03:07.486854440 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/functional_ut_core_imu-map.txt	2023-01-23 16:03:07.758853074 +0000
@@ -1,18 +1,18 @@
 | Module                      |           .text |       .data |          .bss |
 |-----------------------------|-----------------|-------------|---------------|
-| [fill]                      |       210(+210) |     16(+16) |       34(+34) |
+| [fill]                      |       220(+220) |     16(+16) |       34(+34) |
 | [lib]/CoreI2C.a             |         88(+88) |       0(+0) |         0(+0) |
-| [lib]/CoreIMU.a             |     5066(+5066) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a             |     5052(+5052) |       0(+0) |         0(+0) |
 | [lib]/c.a                   |   73780(+73780) | 2574(+2574) |       97(+97) |
 | [lib]/gcc.a                 |     7416(+7416) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a      |   53902(+53902) |   460(+460) | 10213(+10213) |
 | [lib]/misc                  |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a               |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a              | 174176(+174176) |   145(+145) |   5720(+5720) |
 | __/__                       |     1938(+1938) |       1(+1) |     817(+817) |
 | suite_core_imu.cpp.obj      |     6226(+6226) |       0(+0) |         1(+1) |
-| suite_core_lsm6dsox.cpp.obj |     8654(+8654) |       0(+0) |         2(+2) |
+| suite_core_lsm6dsox.cpp.obj |     8658(+8658) |       0(+0) |         2(+2) |
 | Subtotals                   | 331676(+331676) | 3200(+3200) | 16912(+16912) |
 Total Static RAM memory (data + bss): 20112(+20112) bytes
 Total Flash memory (text + data): 334876(+334876) bytes
 
functional_ut_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/functional_ut_imu_kit-map.txt	2023-01-23 16:03:12.126831057 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/functional_ut_imu_kit-map.txt	2023-01-23 16:03:12.398829679 +0000
@@ -1,22 +1,22 @@
 | Module                 |           .text |       .data |          .bss |
 |------------------------|-----------------|-------------|---------------|
-| [fill]                 |       202(+202) |     16(+16) |       35(+35) |
+| [fill]                 |       216(+216) |     16(+16) |       35(+35) |
 | [lib]/CoreEventFlags.a |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a        |         88(+88) |       0(+0) |         0(+0) |
-| [lib]/CoreIMU.a        |     5066(+5066) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a        |     5052(+5052) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a   |       366(+366) |       0(+0) |         0(+0) |
 | [lib]/IMUKit.a         |     1402(+1402) |       0(+0) |         0(+0) |
 | [lib]/Utils.a          |         48(+48) |       0(+0) |         0(+0) |
 | [lib]/c.a              |   73772(+73772) | 2574(+2574) |       97(+97) |
 | [lib]/gcc.a            |     7416(+7416) |       0(+0) |         0(+0) |
 | [lib]/m.a              |     1528(+1528) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a |   56624(+56624) |   460(+460) | 10213(+10213) |
 | [lib]/misc             |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a          |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a         | 174264(+174264) |   145(+145) |   5720(+5720) |
 | __/__                  |     1938(+1938) |       1(+1) |     817(+817) |
 | suite_imu_kit.cpp.obj  |   13844(+13844) |       0(+0) |         2(+2) |
 | Subtotals              | 336916(+336916) | 3200(+3200) | 16912(+16912) |
 Total Static RAM memory (data + bss): 20112(+20112) bytes
 Total Flash memory (text + data): 340116(+340116) bytes
 
spike_lk_accel_gyro (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_accel_gyro-map.txt	2023-01-23 16:03:13.738822887 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_accel_gyro-map.txt	2023-01-23 16:03:13.882822158 +0000
@@ -1,16 +1,16 @@
 | Module                 |         .text |       .data |        .bss |
 |------------------------|---------------|-------------|-------------|
-| [fill]                 |     136(+136) |       8(+8) |     20(+20) |
+| [fill]                 |     150(+150) |       8(+8) |     16(+16) |
 | [lib]/CoreI2C.a        |       36(+36) |       0(+0) |       0(+0) |
-| [lib]/CoreIMU.a        |   5018(+5018) |       0(+0) |       0(+0) |
+| [lib]/CoreIMU.a        |   5004(+5004) |       0(+0) |       0(+0) |
 | [lib]/HelloWorld.a     |       94(+94) |       0(+0) |       0(+0) |
 | [lib]/c.a              | 25296(+25296) | 2472(+2472) |     58(+58) |
 | [lib]/gcc.a            |   3116(+3116) |       0(+0) |       0(+0) |
 | [lib]/mbed-os-static.a | 30400(+30400) |   444(+444) | 8114(+8114) |
 | [lib]/misc             |     188(+188) |       4(+4) |     28(+28) |
 | [lib]/nosys.a          |       32(+32) |       0(+0) |       0(+0) |
-| main.cpp.obj           |     420(+420) |       0(+0) |   364(+364) |
-| Subtotals              | 64736(+64736) | 2928(+2928) | 8584(+8584) |
-Total Static RAM memory (data + bss): 11512(+11512) bytes
+| main.cpp.obj           |     420(+420) |       0(+0) |   360(+360) |
+| Subtotals              | 64736(+64736) | 2928(+2928) | 8576(+8576) |
+Total Static RAM memory (data + bss): 11504(+11504) bytes
 Total Flash memory (text + data): 67664(+67664) bytes
 
Flash used: 71408 (3%) / total: 2097152
SRAM used: 11792 (2%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2023-01-23 16:03:16.590808433 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_command_kit-map.txt	2023-01-23 16:03:16.814807298 +0000
@@ -1,37 +1,37 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       312(+312) |     13(+13) |       38(+38) |
+| [fill]                  |       262(+262) |     13(+13) |       34(+34) |
 | [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]/CoreIMU.a         |     5004(+5004) |       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]/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  |     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          |   19050(+19050) |       0(+0) |       20(+20) |
 | [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
 | [lib]/ReinforcerKit.a   |     1726(+1726) |   460(+460) |         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  |   71794(+71794) |   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            |     5450(+5450) |   278(+278) |   6392(+6392) |
-| Subtotals               | 181380(+181380) | 3808(+3808) | 47896(+47896) |
-Total Static RAM memory (data + bss): 51704(+51704) bytes
-Total Flash memory (text + data): 185188(+185188) bytes
+| main.cpp.obj            |     5450(+5450) |   278(+278) |   6388(+6388) |
+| Subtotals               | 181316(+181316) | 3808(+3808) | 47888(+47888) |
+Total Static RAM memory (data + bss): 51696(+51696) bytes
+Total Flash memory (text + data): 185124(+185124) bytes
 
Flash used: 209464 (9%) / total: 2097152
SRAM used: 52016 (9%) / total: 524288
spike_lk_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_imu_kit-map.txt	2023-01-23 16:03:20.106790602 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_imu_kit-map.txt	2023-01-23 16:03:20.262789810 +0000
@@ -1,22 +1,22 @@
 | Module                 |         .text |       .data |        .bss |
 |------------------------|---------------|-------------|-------------|
-| [fill]                 |     192(+192) |       8(+8) |     28(+28) |
+| [fill]                 |     142(+142) |       8(+8) |     24(+24) |
 | [lib]/CoreEventFlags.a |     138(+138) |       0(+0) |       0(+0) |
 | [lib]/CoreI2C.a        |       36(+36) |       0(+0) |       0(+0) |
-| [lib]/CoreIMU.a        |   5018(+5018) |       0(+0) |       0(+0) |
+| [lib]/CoreIMU.a        |   5004(+5004) |       0(+0) |       0(+0) |
 | [lib]/EventLoopKit.a   |     366(+366) |       0(+0) |       0(+0) |
 | [lib]/HelloWorld.a     |       94(+94) |       0(+0) |       0(+0) |
 | [lib]/IMUKit.a         |   1380(+1380) |       0(+0) |       0(+0) |
 | [lib]/Utils.a          |       48(+48) |       0(+0) |       0(+0) |
 | [lib]/c.a              | 26028(+26028) | 2472(+2472) |     58(+58) |
 | [lib]/gcc.a            |   6924(+6924) |       0(+0) |       0(+0) |
 | [lib]/m.a              |   1528(+1528) |       0(+0) |       0(+0) |
 | [lib]/mbed-os-static.a | 33388(+33388) |   444(+444) | 8114(+8114) |
 | [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           |     560(+560) |       0(+0) |   688(+688) |
-| Subtotals              | 80036(+80036) | 2936(+2936) | 8944(+8944) |
-Total Static RAM memory (data + bss): 11880(+11880) bytes
-Total Flash memory (text + data): 82972(+82972) bytes
+| main.cpp.obj           |     560(+560) |       0(+0) |   684(+684) |
+| Subtotals              | 79972(+79972) | 2936(+2936) | 8936(+8936) |
+Total Static RAM memory (data + bss): 11872(+11872) bytes
+Total Flash memory (text + data): 82908(+82908) bytes
 
Flash used: 87916 (4%) / total: 2097152
SRAM used: 12160 (2%) / total: 524288
spike_lk_motion_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_motion_kit-map.txt	2023-01-23 16:03:21.602783010 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_motion_kit-map.txt	2023-01-23 16:03:21.766782178 +0000
@@ -1,30 +1,30 @@
 | Module                     |         .text |       .data |          .bss |
 |----------------------------|---------------|-------------|---------------|
-| [fill]                     |     200(+200) |       8(+8) |       28(+28) |
+| [fill]                     |     150(+150) |       8(+8) |       32(+32) |
 | [lib]/CoreBufferedSerial.a |     196(+196) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |     138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |     126(+126) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a            |       36(+36) |       0(+0) |         0(+0) |
-| [lib]/CoreIMU.a            |   5018(+5018) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a            |   5004(+5004) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |     176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |       60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |     616(+616) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |     204(+204) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a       |     348(+348) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a         |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/IMUKit.a             |   1416(+1416) |       0(+0) |         0(+0) |
 | [lib]/MotionKit.a          |     884(+884) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |   1046(+1046) |       0(+0) |         8(+8) |
 | [lib]/Utils.a              |       48(+48) |       0(+0) |         0(+0) |
 | [lib]/c.a                  | 26128(+26128) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a                |   7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |   1528(+1528) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 41046(+41046) |   444(+444) |   8234(+8234) |
 | [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               |   1884(+1884) |       0(+0) |   2680(+2680) |
-| Subtotals                  | 92676(+92676) | 2936(+2936) | 11064(+11064) |
+| main.cpp.obj               |   1884(+1884) |       0(+0) |   2676(+2676) |
+| Subtotals                  | 92612(+92612) | 2936(+2936) | 11064(+11064) |
 Total Static RAM memory (data + bss): 14000(+14000) bytes
-Total Flash memory (text + data): 95612(+95612) bytes
+Total Flash memory (text + data): 95548(+95548) bytes
 
Flash used: 102108 (4%) / total: 2097152
SRAM used: 14288 (2%) / total: 524288
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2023-01-23 16:03:22.702777428 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-OFF/spike_lk_reinforcer-map.txt	2023-01-23 16:03:22.918776332 +0000
@@ -1,35 +1,35 @@
 | Module                 |           .text |       .data |          .bss |
 |------------------------|-----------------|-------------|---------------|
-| [fill]                 |       306(+306) |     11(+11) |       38(+38) |
+| [fill]                 |       256(+256) |     11(+11) |       42(+42) |
 | [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]/CoreIMU.a        |     5004(+5004) |       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]/CoreTimeout.a    |       204(+204) |       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         |   19050(+19050) |       0(+0) |       20(+20) |
 | [lib]/MotionKit.a      |       838(+838) |       0(+0) |         0(+0) |
 | [lib]/ReinforcerKit.a  |     1696(+1696) |   460(+460) |         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 |   71794(+71794) |   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           |     4376(+4376) |       8(+8) |   3848(+3848) |
-| Subtotals              | 179076(+179076) | 3536(+3536) | 45352(+45352) |
+| main.cpp.obj           |     4376(+4376) |       8(+8) |   3844(+3844) |
+| Subtotals              | 179012(+179012) | 3536(+3536) | 45352(+45352) |
 Total Static RAM memory (data + bss): 48888(+48888) bytes
-Total Flash memory (text + data): 182612(+182612) bytes
+Total Flash memory (text + data): 182548(+182548) bytes
 
Flash used: 206696 (9%) / total: 2097152
SRAM used: 49208 (9%) / total: 524288

@github-actions
Copy link

github-actions bot commented Jan 2, 2023

File comparision analysis report

🔖 Info

Target Flash Used (base/head) Fash Used Δ Flash Available (base/head) Static RAM (base/head) Static RAM Δ
bootloader 183068 (69%) ø 79076 (30%)
79076 (30%)
41664 (7%) ø
os 495996 (31%) ø 1068676 (68%)
1068676 (68%)
94328 (17%)
94320 (17%)
📉
-8 (0%)
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 ✔️ 495996 (23%) ø 94328 (17%)
94320 (17%)
📉
-8 (0%)
bootloader ✔️ 183068 (8%) ø 41664 (7%) ø
functional_ut_boost_ut ✔️ 409276 (19%) ø 30608 (5%) ø
functional_ut_core_imu ✔️ 389476 (18%) ø 30584 (5%) ø
functional_ut_deep_sleep_core_buffered_serial ✔️ 368332 (17%) ø 30560 (5%) ø
functional_ut_deep_sleep_core_motor ✔️ 376140 (17%) ø 30632 (5%) ø
functional_ut_deep_sleep_core_pwm ✔️ 378356 (18%) ø 30632 (5%) ø
functional_ut_deep_sleep_log_kit ✔️ 365268 (17%) ø 30976 (5%) ø
functional_ut_deep_sleep_mbed_hal ✔️ 366712 (17%) ø 30560 (5%) ø
functional_ut_file_manager ✔️ 386812 (18%) ø 30856 (5%) ø
functional_ut_firmware_kit ✔️ 378420 (18%) ø 30840 (5%) ø
functional_ut_imu_kit ✔️ 391668 (18%) ø 30576 (5%) ø
functional_ut_io_expander ✔️ 371176 (17%) ø 30576 (5%) ø
functional_ut_qdac ✔️ 372344 (17%) ø 30576 (5%) ø
spike_lk_accel_gyro ✔️ 94264 (4%)
94200 (4%)
📉
-64 (0%)
22560 (4%)
22552 (4%)
📉
-8 (0%)
spike_lk_audio ✔️ 137172 (6%) ø 25176 (4%) ø
spike_lk_behavior_kit ✔️ 197692 (9%) ø 58656 (11%) ø
spike_lk_ble ✔️ 237980 (11%) ø 39416 (7%) ø
spike_lk_bluetooth ✔️ 92364 (4%) ø 22224 (4%) ø
spike_lk_cg_animations ✔️ 153672 (7%) ø 57224 (10%) ø
spike_lk_color_kit ✔️ 88544 (4%) ø 24376 (4%) ø
spike_lk_command_kit ✔️ 219788 (10%) ø 63112 (12%)
63104 (12%)
📉
-8 (0%)
spike_lk_config_kit ✔️ 139228 (6%) ø 25192 (4%) ø
spike_lk_coreled ✔️ 88108 (4%) ø 24264 (4%) ø
spike_lk_core_touch_sensor ✔️ 93164 (4%) ø 22824 (4%) ø
spike_lk_event_queue ✔️ 84152 (4%) ø 22904 (4%) ø
spike_lk_file_manager_kit ✔️ 154432 (7%) ø 25520 (4%) ø
spike_lk_file_reception ✔️ 339964 (16%) ø 38448 (7%) ø
spike_lk_flash_memory ✔️ 86776 (4%) ø 22216 (4%) ø
spike_lk_fs ✔️ 174568 (8%) ø 47992 (9%) ø
spike_lk_imu_kit ✔️ 98144 (4%) ø 22888 (4%)
22880 (4%)
📉
-8 (0%)
spike_lk_lcd ✔️ 172716 (8%) ø 57496 (10%) ø
spike_lk_led_kit ✔️ 115204 (5%) ø 25104 (4%) ø
spike_lk_log_kit ✔️ 84776 (4%) ø 23408 (4%) ø
spike_lk_motion_kit ✔️ 107144 (5%) ø 24840 (4%) ø
spike_lk_motors ✔️ 86336 (4%) ø 22248 (4%) ø
spike_lk_qdac ✔️ 91796 (4%) ø 22768 (4%) ø
spike_lk_reinforcer ✔️ 215324 (10%) ø 59784 (11%) ø
spike_lk_rfid ✔️ 84216 (4%) ø 22184 (4%) ø
spike_lk_sensors_battery ✔️ 87376 (4%) ø 23312 (4%) ø
spike_lk_sensors_light ✔️ 84072 (4%) ø 22216 (4%) ø
spike_lk_sensors_microphone ✔️ 84824 (4%) ø 22216 (4%) ø
spike_lk_sensors_temperature_humidity ✔️ 90616 (4%) ø 22192 (4%) ø
spike_lk_serial_number ✔️ 145028 (6%) ø 25256 (4%) ø
spike_lk_ticker_timeout ✔️ 82712 (3%) ø 22232 (4%) ø
spike_lk_touch_sensor_kit ✔️ 96668 (4%) ø 23392 (4%) ø
spike_lk_update_process_app_base ✔️ 157244 (7%) ø 26288 (5%) ø
spike_lk_update_process_app_update ✔️ 100456 (4%) ø 23240 (4%) ø
spike_lk_watchdog_isr ✔️ 87520 (4%) ø 24136 (4%) ø
spike_lk_wifi ✔️ 130984 (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	2023-01-23 16:02:21.469579337 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/LekaOS-map.txt	2023-01-23 16:02:21.845583266 +0000
@@ -1,53 +1,53 @@
 | Module                     |           .text |       .data |          .bss |
 |----------------------------|-----------------|-------------|---------------|
-| [fill]                     |       618(+618) |     18(+18) |     267(+267) |
+| [fill]                     |       632(+632) |     18(+18) |     263(+263) |
 | [lib]/ActivityKit.a        |   10590(+10590) |       0(+0) |         0(+0) |
 | [lib]/BLEKit.a             |     1476(+1476) |       0(+0) |         0(+0) |
 | [lib]/BatteryKit.a         |       324(+324) |       0(+0) |         0(+0) |
 | [lib]/BehaviorKit.a        |     1852(+1852) |   460(+460) |         0(+0) |
 | [lib]/ColorKit.a           |       864(+864) |       0(+0) |         0(+0) |
 | [lib]/CommandKit.a         |     1120(+1120) |       0(+0) |         0(+0) |
 | [lib]/CoreBattery.a        |       544(+544) |       0(+0) |         0(+0) |
 | [lib]/CoreBufferedSerial.a |       196(+196) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |         94(+94) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.a     |         44(+44) |       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]/CoreIMU.a            |     5004(+5004) |       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     |       580(+580) |       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        |     1006(+1006) |       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             |   19050(+19050) |       0(+0) |       20(+20) |
 | [lib]/MotionKit.a          |       838(+838) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |     1054(+1054) |       0(+0) |         8(+8) |
 | [lib]/ReinforcerKit.a      |     1242(+1242) |   460(+460) |         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     | 181458(+181458) |   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               | 137186(+137186) |   108(+108) | 38229(+38229) |
-| Subtotals                  | 450852(+450852) | 4424(+4424) | 89576(+89576) |
-Total Static RAM memory (data + bss): 94000(+94000) bytes
+| main.cpp.obj               | 137186(+137186) |   108(+108) | 38225(+38225) |
+| Subtotals                  | 450852(+450852) | 4424(+4424) | 89568(+89568) |
+Total Static RAM memory (data + bss): 93992(+93992) bytes
 Total Flash memory (text + data): 455276(+455276) bytes
 
Flash used: 495996 (23%) / total: 2097152
SRAM used: 94320 (17%) / total: 524288
functional_ut_core_imu (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/functional_ut_core_imu-map.txt	2023-01-23 16:02:23.245597382 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/functional_ut_core_imu-map.txt	2023-01-23 16:02:23.533600212 +0000
@@ -1,20 +1,20 @@
 | Module                      |           .text |       .data |          .bss |
 |-----------------------------|-----------------|-------------|---------------|
-| [fill]                      |       208(+208) |     16(+16) |       38(+38) |
+| [fill]                      |       218(+218) |     16(+16) |       38(+38) |
 | [lib]/CoreI2C.a             |         88(+88) |       0(+0) |         0(+0) |
-| [lib]/CoreIMU.a             |     5066(+5066) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a             |     5052(+5052) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a     |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/c.a                   |   72552(+72552) | 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      |   61698(+61698) |   460(+460) | 10337(+10337) |
 | [lib]/misc                  |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a               |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a              | 174832(+174832) |   145(+145) |   5720(+5720) |
 | __/__                       |     3988(+3988) |       1(+1) | 10841(+10841) |
 | suite_core_imu.cpp.obj      |     6726(+6726) |       0(+0) |         1(+1) |
-| suite_core_lsm6dsox.cpp.obj |     9134(+9134) |       0(+0) |         2(+2) |
+| suite_core_lsm6dsox.cpp.obj |     9138(+9138) |       0(+0) |         2(+2) |
 | Subtotals                   | 342308(+342308) | 3200(+3200) | 27064(+27064) |
 Total Static RAM memory (data + bss): 30264(+30264) bytes
 Total Flash memory (text + data): 345508(+345508) bytes
 
functional_ut_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/functional_ut_imu_kit-map.txt	2023-01-23 16:02:28.205646122 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/functional_ut_imu_kit-map.txt	2023-01-23 16:02:28.493648952 +0000
@@ -1,23 +1,23 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       206(+206) |     16(+16) |       39(+39) |
+| [fill]                  |       220(+220) |     16(+16) |       39(+39) |
 | [lib]/CoreEventFlags.a  |       138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |         88(+88) |       0(+0) |         0(+0) |
-| [lib]/CoreIMU.a         |     5066(+5066) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a         |     5052(+5052) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a |           8(+8) |       0(+0) |         0(+0) |
 | [lib]/EventLoopKit.a    |       348(+348) |       0(+0) |         0(+0) |
 | [lib]/IMUKit.a          |     1402(+1402) |       0(+0) |         0(+0) |
 | [lib]/Utils.a           |         48(+48) |       0(+0) |         0(+0) |
 | [lib]/c.a               |   72544(+72544) | 2574(+2574) |       97(+97) |
 | [lib]/gcc.a             |     7416(+7416) |       0(+0) |         0(+0) |
 | [lib]/m.a               |     1900(+1900) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  |   61888(+61888) |   460(+460) | 10337(+10337) |
 | [lib]/misc              |       188(+188) |       4(+4) |       28(+28) |
 | [lib]/nosys.a           |         32(+32) |       0(+0) |         0(+0) |
 | [lib]/stdc++.a          | 174832(+174832) |   145(+145) |   5720(+5720) |
 | __/__                   |     3988(+3988) |       1(+1) | 10841(+10841) |
 | suite_imu_kit.cpp.obj   |   14320(+14320) |       0(+0) |         2(+2) |
 | Subtotals               | 344412(+344412) | 3200(+3200) | 27064(+27064) |
 Total Static RAM memory (data + bss): 30264(+30264) bytes
 Total Flash memory (text + data): 347612(+347612) bytes
 
spike_lk_accel_gyro (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_accel_gyro-map.txt	2023-01-23 16:02:29.925663024 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_accel_gyro-map.txt	2023-01-23 16:02:30.089664635 +0000
@@ -1,19 +1,19 @@
 | Module                  |         .text |       .data |          .bss |
 |-------------------------|---------------|-------------|---------------|
-| [fill]                  |     170(+170) |       8(+8) |       28(+28) |
+| [fill]                  |     120(+120) |       8(+8) |       24(+24) |
 | [lib]/CoreI2C.a         |       36(+36) |       0(+0) |         0(+0) |
-| [lib]/CoreIMU.a         |   5018(+5018) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a         |   5004(+5004) |       0(+0) |         0(+0) |
 | [lib]/CriticalSection.a |         8(+8) |       0(+0) |         0(+0) |
 | [lib]/HelloWorld.a      |       94(+94) |       0(+0) |         0(+0) |
 | [lib]/c.a               | 24948(+24948) | 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  | 38570(+38570) |   444(+444) |   8246(+8246) |
 | [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            |   2632(+2632) |       0(+0) | 10932(+10932) |
-| Subtotals               | 84628(+84628) | 2936(+2936) | 19336(+19336) |
-Total Static RAM memory (data + bss): 22272(+22272) bytes
-Total Flash memory (text + data): 87564(+87564) bytes
+| main.cpp.obj            |   2632(+2632) |       0(+0) | 10928(+10928) |
+| Subtotals               | 84564(+84564) | 2936(+2936) | 19328(+19328) |
+Total Static RAM memory (data + bss): 22264(+22264) bytes
+Total Flash memory (text + data): 87500(+87500) bytes
 
Flash used: 94200 (4%) / total: 2097152
SRAM used: 22552 (4%) / total: 524288
spike_lk_command_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2023-01-23 16:02:32.977693968 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_command_kit-map.txt	2023-01-23 16:02:33.209696335 +0000
@@ -1,37 +1,37 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       296(+296) |     13(+13) |       42(+42) |
+| [fill]                  |       310(+310) |     13(+13) |       38(+38) |
 | [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]/CoreIMU.a         |     5004(+5004) |       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]/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  |     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          |   19050(+19050) |       0(+0) |       20(+20) |
 | [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
 | [lib]/ReinforcerKit.a   |     1726(+1726) |   460(+460) |         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  |   77166(+77166) |   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            |     8872(+8872) |   278(+278) | 17344(+17344) |
-| Subtotals               | 189844(+189844) | 3808(+3808) | 58984(+58984) |
-Total Static RAM memory (data + bss): 62792(+62792) bytes
+| main.cpp.obj            |     8872(+8872) |   278(+278) | 17340(+17340) |
+| Subtotals               | 189844(+189844) | 3808(+3808) | 58976(+58976) |
+Total Static RAM memory (data + bss): 62784(+62784) bytes
 Total Flash memory (text + data): 193652(+193652) bytes
 
Flash used: 219788 (10%) / total: 2097152
SRAM used: 63104 (12%) / total: 524288
spike_lk_imu_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_imu_kit-map.txt	2023-01-23 16:02:36.709732039 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_imu_kit-map.txt	2023-01-23 16:02:36.877733753 +0000
@@ -1,23 +1,23 @@
 | Module                  |         .text |       .data |          .bss |
 |-------------------------|---------------|-------------|---------------|
-| [fill]                  |     162(+162) |       8(+8) |       32(+32) |
+| [fill]                  |     176(+176) |       8(+8) |       28(+28) |
 | [lib]/CoreEventFlags.a  |     138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreI2C.a         |       36(+36) |       0(+0) |         0(+0) |
-| [lib]/CoreIMU.a         |   5018(+5018) |       0(+0) |         0(+0) |
+| [lib]/CoreIMU.a         |   5004(+5004) |       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]/IMUKit.a          |   1380(+1380) |       0(+0) |         0(+0) |
 | [lib]/Utils.a           |       48(+48) |       0(+0) |         0(+0) |
 | [lib]/c.a               | 24948(+24948) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a             |   7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a               |   1888(+1888) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a  | 38760(+38760) |   444(+444) |   8246(+8246) |
 | [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            |   2720(+2720) |       0(+0) | 11256(+11256) |
-| Subtotals               | 88340(+88340) | 2936(+2936) | 19664(+19664) |
-Total Static RAM memory (data + bss): 22600(+22600) bytes
+| main.cpp.obj            |   2720(+2720) |       0(+0) | 11252(+11252) |
+| Subtotals               | 88340(+88340) | 2936(+2936) | 19656(+19656) |
+Total Static RAM memory (data + bss): 22592(+22592) bytes
 Total Flash memory (text + data): 91276(+91276) bytes
 
Flash used: 98144 (4%) / total: 2097152
SRAM used: 22880 (4%) / total: 524288
spike_lk_motion_kit (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_motion_kit-map.txt	2023-01-23 16:02:38.309748361 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_motion_kit-map.txt	2023-01-23 16:02:38.485750155 +0000
@@ -1,31 +1,31 @@
 | Module                     |         .text |       .data |          .bss |
 |----------------------------|---------------|-------------|---------------|
-| [fill]                     |     178(+178) |       8(+8) |       36(+36) |
+| [fill]                     |     192(+192) |       8(+8) |       40(+40) |
 | [lib]/CoreBufferedSerial.a |     196(+196) |       0(+0) |         0(+0) |
 | [lib]/CoreEventFlags.a     |     138(+138) |       0(+0) |         0(+0) |
 | [lib]/CoreEventQueue.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]/CoreIMU.a            |   5004(+5004) |       0(+0) |         0(+0) |
 | [lib]/CoreMotor.a          |     176(+176) |       0(+0) |         0(+0) |
 | [lib]/CorePwm.a            |       60(+60) |       0(+0) |         0(+0) |
 | [lib]/CoreRFIDReader.a     |     616(+616) |       0(+0) |         0(+0) |
 | [lib]/CoreTimeout.a        |     204(+204) |       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]/IMUKit.a             |   1416(+1416) |       0(+0) |         0(+0) |
 | [lib]/MotionKit.a          |     884(+884) |       0(+0) |         0(+0) |
 | [lib]/RFIDKit.a            |   1046(+1046) |       0(+0) |         8(+8) |
 | [lib]/Utils.a              |       48(+48) |       0(+0) |         0(+0) |
 | [lib]/c.a                  | 25048(+25048) | 2472(+2472) |       58(+58) |
 | [lib]/gcc.a                |   7148(+7148) |       0(+0) |         0(+0) |
 | [lib]/m.a                  |   1888(+1888) |       0(+0) |         0(+0) |
 | [lib]/mbed-os-static.a     | 41502(+41502) |   444(+444) |   8322(+8322) |
 | [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               |   4166(+4166) |       0(+0) | 13120(+13120) |
+| main.cpp.obj               |   4166(+4166) |       0(+0) | 13116(+13116) |
 | Subtotals                  | 95956(+95956) | 2936(+2936) | 21616(+21616) |
 Total Static RAM memory (data + bss): 24552(+24552) bytes
 Total Flash memory (text + data): 98892(+98892) bytes
 
spike_lk_reinforcer (click to expand)
--- build_artifacts/base_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2023-01-23 16:02:39.497760441 +0000
+++ build_artifacts/head_ref-build-enable_log_debug-ON/spike_lk_reinforcer-map.txt	2023-01-23 16:02:39.725762759 +0000
@@ -1,36 +1,36 @@
 | Module                  |           .text |       .data |          .bss |
 |-------------------------|-----------------|-------------|---------------|
-| [fill]                  |       280(+280) |     11(+11) |       42(+42) |
+| [fill]                  |       294(+294) |     11(+11) |       46(+46) |
 | [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]/CoreIMU.a         |     5004(+5004) |       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]/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  |     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          |   19050(+19050) |       0(+0) |       20(+20) |
 | [lib]/MotionKit.a       |       838(+838) |       0(+0) |         0(+0) |
 | [lib]/ReinforcerKit.a   |     1696(+1696) |   460(+460) |         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  |   77166(+77166) |   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            |     6442(+6442) |       8(+8) | 14288(+14288) |
+| main.cpp.obj            |     6442(+6442) |       8(+8) | 14284(+14284) |
 | Subtotals               | 186196(+186196) | 3536(+3536) | 55928(+55928) |
 Total Static RAM memory (data + bss): 59464(+59464) bytes
 Total Flash memory (text + data): 189732(+189732) bytes
 

@codecov
Copy link

codecov bot commented Jan 2, 2023

Codecov Report

Merging #1237 (b816730) into develop (6fc6b93) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop    #1237   +/-   ##
========================================
  Coverage    96.21%   96.21%           
========================================
  Files          150      150           
  Lines         3727     3730    +3     
========================================
+ Hits          3586     3589    +3     
  Misses         141      141           
Impacted Files Coverage Δ
drivers/CoreIMU/source/CoreLSM6DSOX.cpp 95.08% <100.00%> (ø)
drivers/CoreVideo/include/CGColor.hpp 100.00% <100.00%> (ø)
libs/ContainerKit/include/CircularQueue.h 100.00% <100.00%> (ø)
libs/LogKit/include/LogKit.h 100.00% <100.00%> (ø)
libs/Utils/include/MathUtils.h 100.00% <100.00%> (ø)

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

@ladislas ladislas force-pushed the ladislas/feature/compiler-add-warnings branch 2 times, most recently from c976798 to 2d15663 Compare January 3, 2023 14:37
@ladislas ladislas added the 01 - type: task Something to do label Jan 3, 2023
@ladislas ladislas added this to the Future Release milestone Jan 3, 2023
@ladislas ladislas force-pushed the ladislas/feature/compiler-add-warnings branch from 2d15663 to 9abb034 Compare January 3, 2023 16:40
@ladislas ladislas force-pushed the ladislas/feature/compiler-add-warnings branch from 9abb034 to 14075e9 Compare January 13, 2023 10:26
@ladislas ladislas requested review from HPezz and YannLocatelli and removed request for YannLocatelli January 13, 2023 15:59
@ladislas ladislas force-pushed the ladislas/feature/compiler-add-warnings branch from 14075e9 to 29317f8 Compare January 13, 2023 16:00
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.

There are some more warnings


warning: 'corevideo' initialized and declared 'extern'
166 | extern "C" auto corevideo =

in

  • spikes/lk_behavior_kit/main.cpp:166:19
  • spikes/lk_command_kit/main.cpp:146:18
  • spikes/lk_fs/main.cpp:79:18
  • spikes/lk_lcd/main.cpp:59:17
  • spikes/lk_reinforcer/main.cpp:182:18
  • app/os/main.cpp:251:18

warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
61 | if ((actual >= lower_bound && actual <= counter_mask) || (actual >= 0 && actual <= upper_bound)) {

in

  • tests/functional/include/tests/utils_sleep.h:61:68

warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
50 | i = *(int *)&x;

in

  • libs/Utils/source/MathUtils.cpp:50:7

warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
53 | x = *(float *)&i;

in

  • libs/Utils/source/MathUtils.cpp:53:7

warning: variable 'log_isr_lambda' set but not used [-Wunused-but-set-variable]
47 | auto log_isr_lambda = [] {

in

  • spikes/lk_log_kit/main.cpp:47:7

@ladislas
Copy link
Member Author

@YannLocatelli

There are some more warnings

Yes, I started by focusing on unit tests first

in

spikes/lk_behavior_kit/main.cpp:166:19
spikes/lk_command_kit/main.cpp:146:18
spikes/lk_fs/main.cpp:79:18
spikes/lk_lcd/main.cpp:59:17
spikes/lk_reinforcer/main.cpp:182:18
app/os/main.cpp:251:18

cannot be "fixed" but silenced if needed.

tests/functional/include/tests/utils_sleep.h:61:68

can be silenced with a comment saying that the code is from mbed-os and kept as is for the moment

libs/Utils/source/MathUtils.cpp:50:7
libs/Utils/source/MathUtils.cpp:53:7

can be silenced as well as we are using "official" code implementation for the fast invert square root

that being said, this code will be removed in the future when we start using the new fusion algorithms which ship their own implementation

spikes/lk_log_kit/main.cpp:47:7

I'll look into it, but it's done for testing

to silence mbed related warnings that we cannot fix
-Wshadow (https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html)

> Warn whenever a local variable or type declaration shadows another variable, parameter, type, class member (in C++), or instance variable (in Objective-C) or whenever a built-in function is shadowed. Note that in C++, the compiler warns if a local variable shadows an explicit typedef, but not if it shadows a struct/class/enum.
-Wconversion (https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html)

> Warn for implicit conversions that may alter a value. This includes conversions between real and integer, like abs (x) when x is double; conversions between signed and unsigned, like unsigned ui = -1; and conversions to smaller types, like sqrtf (M_PI). Do not warn for explicit casts like abs ((int) x) and ui = (unsigned) -1, or if the value is not changed by the conversion like in abs (2.0). Warnings about conversions between signed and unsigned integers can be disabled by using -Wno-sign-conversion.
>
> For C++, also warn for confusing overload resolution for user-defined conversions; and conversions that never use a type conversion operator: conversions to void, the same type, a base class or a reference to them. Warnings about conversions between signed and unsigned integers are disabled by default in C++ unless -Wsign-conversion is explicitly enabled.

o
@ladislas ladislas force-pushed the ladislas/feature/compiler-add-warnings branch from 29317f8 to b816730 Compare January 23, 2023 15:52
@github-actions
Copy link

Version comparison

- Version Same as filename Same as os_version
os 1.3.0+1674489231 ✔️ ✔️
firmware
(os + bootloader)
1.3.0+1674489231 ✔️ ✔️

@sonarqubecloud
Copy link

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 4 Code Smells

100.0% 100.0% 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.

3 participants