Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.71 KB

File metadata and controls

49 lines (34 loc) · 1.71 KB

Project for testing compilation process and hardware.

The project is a set of few Active objects that are running independently and communicate to each others. The application consists of:

  1. MyAO active object displays system time and controls LED connected to PIO terminals.
  2. UartAO ISA active object controls UART connection to developer computer and processes interrupts that came from UART controller
  3. ThermometerAO ISA active object reads and displays temperature from DS18B20 temperature sensor, also processes interrupts from timer.
  4. GpioAO ISA active object processes interrupt from GPIO terminal
  5. DebugAOScheduler extends AOScheduler and displays status of AORTOS scheduler

Build and run application

There are two ways to build and run test application.

  1. First way:

In terminal make current direction {project root}/Applications/ARM_Raspberry_Pi/Test1

$cd {project root}//Applications/ARM_Raspberry_Pi/Test1

Run Make builder

$make image

File kernel.img is created in folder {project root}/_build/target/. Copy this file to microSD, insert to RPi board and reset the board. Serial port terminal connected to the board shows log like this:

fig_001

  1. Second way:

Run Make builder

$make hex

File application.hex is created in folder {project root}/_build/target/. Now run IIL on the target as discribed here. Type command 'L' and upload created hex file to target. Then type command 'G10000' and you will see in serial terminal window: fig_011

MyAO

UartAO

ThermometerAO

GpioAO

DebugAOScheduler