HYOS-Systems / HYOS

Library for a distributed STM32 System
0 stars 0 forks source link

HyEnD-OS for easy interfacing with STM32

How To Use:

  1. Setup

    1. Clone this Project into a well known folder (Like HyEnD_OS), relative to your eclipse workspace.
    2. Generate your eclipse-project with CubeMX with Clean Project Generation, as described below. Open it. Proceed in eclipse:
  2. Add the HyEnD_OS Lib Folder to your Project

    1. Rightclick your Project and go to Properties
      • Sources
        1. Navigate to "C/C++ General - Paths and Symbols" and click the "Source Location" Tab
        2. Click "Link Folder..." and tick the "Link to folder in the file system" box
        3. Hit the "Variables..." button and select the "WORKSPACE_LOC" for your Workspace Path, hit "OK"
        4. Now, after the "WORKSPACE_LOC", add the relative path to the Lib folder of this project. It could look like this: WORKSPACE_LOC/HyEnD_OS
        5. Hit "OK"
      • Includes
        1. Click the "Includes" Tab
        2. Make sure that on the left under "Languages" the "GNU C" is selected
        3. Hit "Add...", then "Workspace..."
        4. Unfold your Project Folder. Select your HyEnD_OS LibFolder on the second-highest level; hit "OK", "OK"
    2. Hit "Apply and Close"; rebuild your project (If you get an error inside /connectivity/sd/ you might need to select Middleware -> FATFS -> SD CARD in your .ioc file first)
  3. Confirm if HyEnD_OS Folder is added

    1. Navigate to "Resource - Linked Resources" and click the "Linked Resources" Tab
    2. You should find your linked Folder here. You may change it here, if needed
  4. #include <OSUserInclude.h> in your main and whererver else needed

Note:

Currently support for STM32F1xx and STM32F4xx.

Usefull stuff around Code Generation with CubeMX