Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 2.57 KB

README.md

File metadata and controls

53 lines (45 loc) · 2.57 KB

ShinyAllocator

build unittest docs

ShinyAllocator is a library of a block memory allocator for real-time high-integrity embedded systems.

Documentation Static Dependency UML Diagram

Source and Header Dependencies Allocator Instance
shinyAllocator_8c__incl structshinyAllocatorInstance__coll__graph
Fragment/FragmentHeader Struct UnitTest
structFragment__coll__graph unitTests_8cc__incl

Installation [Dev Environment]

  1. Choose your Installation path and version of your toolchain in installation script.

  2. Install GNU Arm Embedded Toolchain

    chmod +x ./scripts/install_toolchain.sh
    sudo scripts/install_toolchain.sh
    
    
  3. script will print two lines to add toolchain directory to your PATH with default settings you can run

    export PATH=$PATH:/usr/share/gcc-arm-none-eabi-10.3-2021.10/bin/ && source ~/.bashrc

  4. Install build, documentation, debug and profiling tools make,doxygen,graphviz,valgrind,kcachegrind

    sudo apt-get update && sudo apt-get upgrade
    sudo apt-get install make cmake doxygen graphviz valgrind kcachegrind
    
  5. Installing test framework [ gtest ]

    • On Ubuntu/RPI:
      sudo apt-get install libgtest-dev
      cd /usr/src/gtest
      sudo cmake CMakeLists.txt
      sudo make
      sudo cp *.a /usr/lib
      sudo ldconfig
      
    • Build from source for your targer platform (arm):
      sudo apt-get install cmake
      git clone https://github.com/google/googletest.git
      cd googletest
      mkdir build
      cd build
      cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/arm-none-eabi.cmake ..
      make
      sudo make install