Astrobe for Cortex-M7 Source Code

ARM Oberon Development System for Windows

Version 6.4.0 Copyright © 2006-2018 CFB Software
Last Updated 3 Apr 2018

E-Mail:   info@cfbsoftware.com
Website:   www.astrobe.com

Oberon Examples

All of the included examples can be compiled and built on all editions of the current version of Astrobe for Cortex-M7. The source code examples are located in your AstrobeM7-v6.4\Examples folders. You will also find additional source code examples on the Astrobe Forum.

The example programs which are shown with screenshots below use the Out library module to generate the text output and send it to USART3. The USART3 socket should be connected to a dumb terminal or terminal emulator running at 38,400 Baud. They should work with little or no modification on any of the supported STM32F7-family development boards.

Filename  Description
Info.mod System Info
Outputs the linker and startup parameters specified for the current application and shows the amount of RAM remaining for use by the program.


ViewMemory.mod ViewMemory
Outputs the contents of the first 256 words of memory starting from address Data Start 0000H and then the last 256 words of memory up to address Data End. Each line of output contains the address and the contents of the next 4-word block of data displayed in Hexadecimal format.


TestTraps.mod TestTraps
Demonstrates the trapping and display of runtime errors.

Extensions.mod
ExtensionsCase.mod
Lists.mod
Extensions
Shows how Oberon's Type Extension feature can be used to create and scan a dynamic list of a variety of objects. Lists contains the generic functions to build and traverse a list of objects. Extensions contains definitions for a number of related objects. The examples used are shapes e.g. circles, rectangles etc. The application first builds a list of different shapes and then scans the list displaying the relevant dimensions and area of each shape.

 

ExtensionsCase is an alternative implementation which uses a CASE statement instead of an IF statement for performing the type tests.
ShowTime.mod
Time.mod
Set and Display the Real Time Clock 
Prompts for the input of the current time (hours, minutes and seconds) and then displays the updated time every second.
 
 


The following examples have been tested with specific combinations of MCU and breakout boards / baseboards etc.

Filename  Description
Blinker.mod Blinker
Blinks an LED once per second using 16-bit Timer TIM3. You may have to change the port configuration-related statements depending on which pins your LEDs are connected to. See the Getting Started section of the Astrobe Help file for more information.
SlideDemo.mod
Slide.mod
IO.mod
Graph.mod
ST7735.mod
Columbia.mod
StPauls.mod
AutoCAD Slide Drawing
Uses the Astrobe Graphics line-drawing functions to display AutoCAD Slide images of St Paul's Cathedral and the space shuttle on an AdaFruit 1.8" TFT Display.

Target:
STM32F767 and STM32F746 systems with a display connected via SPI1

Tested on:
AdaFruit 1.8" Colour TFT Shield PID: 802
+ STM Nucleo-144 F746ZG Board or
+ STM Nucleo-144 F767ZI Board

Watch a video of the ARM7 version of this example 
IRQBlinker.mod
IRQTimer.mod
IRQ Blinker
Interrupt generating and handling example. Blinks an LED once per second using interrupt requests (IRQ) generated by Timer TIM3.
Temperature.mod
I2CConfig.mod
Time.mod
I2C Temperature Logger
Monitors the current temperature every second using the Real Time Clock and writes it, and the time, to output whenever it changes.

Target:
STM32F7 systems with a TI TMP102 Digital Temperature Sensor connected to the I2C1 bus

Tested on:
SparkFun SEN-09418: TI Digital Temperature Sensor Breakout
+ STM Nucleo-144 F746ZG Board or
+ STM Nucleo-144 F767ZI Board 
 
 


Licence Agreement

Astrobe for Cortex-M7 Examples Source Code

Copyright (c) 2017-2018 CFB Software.
http://www.astrobe.com

Permission to use, copy, modify, and/or distribute these examples in source code form (the "Software") for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. 

DISCLAIMER

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THE SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES OR LIABILITY WHATSOEVER, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE DEALINGS IN OR USE OR PERFORMANCE OF THE SOFTWARE.