{"id":46,"date":"2021-01-12T09:16:13","date_gmt":"2021-01-12T09:16:13","guid":{"rendered":"https:\/\/veltzer.net:8890\/?p=46"},"modified":"2021-01-12T09:16:13","modified_gmt":"2021-01-12T09:16:13","slug":"real-time-programming-tips-running-critical-tests-at-application-startup","status":"publish","type":"post","link":"https:\/\/veltzer.net:8890\/real-time-programming-tips-running-critical-tests-at-application-startup\/","title":{"rendered":"Real time programming tips: running critical tests at application startup"},"content":{"rendered":"\n

There is much accumulated wisdom in the embedded systems programming field as to how to correctly write a real time application. Examples of this wisdom could be found in the methodology of breaking up the application to a startup phase and a run phase, avoiding exiting the application, avoiding dynamic memory allocation and deallocation at runtime and more. There is also much accumulated wisdom in the programming field in general where a very important principle is ones control of ones software, as opposed to the other way around, and the notion of finding bugs and problems early whether that be in code writing, QA, deployment or beginning of execution.<\/p>\n\n\n\n

The combination of the two aforementioned elements forms the principle of critical condition testing at application startup. According to this principle you should put all environmental concerns as tests to be executed at the startup phase of your embedded application. Environmental conditions to be checked may include, among others, the following:<\/p>\n\n\n\n