Skip to main content

Posts

Showing posts from December, 2019

Unit testing using ceedling on STM32F0 QEMU

Unit testing on limited memory  Microcontoller often require expensive ICE with RAM buffers.IDEs often did not provide inbuild unit testing and static analysis tools in case of micro controllers developmet IDEs .Alternative is to use QMU simulator for slected Micro contoller archetecture and use ceedling project on Eclipe to create and test code,run test and genrate test port https://qrgo.page.link/EHGBx Below example shows a sample project file used for running a ceedling unit test --- # Notes: # Sample project C code is not presently written to produce a release artifact. # As such, release build options are disabled. # This sample, therefore, only demonstrates running a collection of unit tests. :project: :use_exceptions: FALSE :use_mocks: TRUE :use_test_preprocessor: TRUE :use_auxiliary_dependencies: TRUE :build_root: build # :release_build: TRUE :test_file_prefix: test_ :which_ceedling: gem :default_tasks: - test:all #:test_build: #