Embedded-check a Code Quality Tool for Automatic Firmware Verification
Open Access
- 3 July 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 66-72
Abstract
Developing embedded microcontroller code is a complex task, especially for undergrad students new to this area. These students often make high-level conceptual mistakes beyond the scope of commercial standards like MISRA-C. These conceptual errors need to be checked manually through code feedback, a process that is time-consuming, error-prone, and does not scale well with an increasing number of students and/or assignments. In this paper, we present an embedded-check an automated tool that can detect common and critical errors students make when learning to code firmware. A set of 13 rules (baremetal and FreeRTOS) was devised based on our experience from several years of teaching Embedded systems. To validate our tool, we compared its results with manual code review of N=99 projects from the last 3 course offerings. We furthered our analysis by running our tool on N=1132 coding lab submissions that did not receive manual feedback and were used as part of classroom activities. We found that the top-3 errors flagged in the projects were already present when students completed the lab activities. We found that (i) our tool also identified all issues discovered during manual code feedback, (ii) our tool detected issues in 86% of student submissions, whereas manual code feedback only flagged 28% of the submissions as problematic, and (iii) 94.3% of students made some code quality error on individual assignments. Within this results, we believe that our tool can have a significant impact when used both as an formative assessment tool to support learning and as a learning analytics tool to improve teaching.Keywords
This publication has 28 references indexed in Scilit:
- Empirical investigation in embedded systems: Quality attributes in general, maintainability in particularJournal of Systems and Software, 2023
- Static data-flow analysis for software product lines in CAutomated Software Engineering, 2022
- Static analysis of source code written by novice programmers2017
- Embedded Software Under the Courtroom Microscope: A Case Study of the Toyota Unintended Acceleration TrialIEEE Technology and Society Magazine, 2016
- Investigating code review quality: Do people and participation matter?2015
- Four eyes are better than two: On the impact of code reviews on software quality2015
- An empirical study of the impact of modern code review practices on software qualityEmpirical Software Engineering, 2015
- Project-Based Learning in Embedded Systems Education Using an FPGA PlatformIEEE Transactions on Education, 2013
- On the value of static analysis for fault detection in softwareIEEE Transactions on Software Engineering, 2006
- Safer language subsets: an overview and a case history, MISRA CInformation and Software Technology, 2004