Search found 170 matches

by gray
Sun Mar 31, 2024 11:04 am
Forum: Astrobe for ARM Cortex-M0, M3, M4 and M7
Topic: Copying a Procedure to RAM
Replies: 2
Views: 81202

Copying a Procedure to RAM

What is the best way to copy a procedure, eg. from Flash memory to RAM? For example: MODULE M; PROCEDURE p0; END p0; PROCEDURE p1; END P1; END M. Getting the procedure's starting address is straight forward, but how to detect its ending address? Scanning for 'pop' is not safe, as any relevant consta...
by gray
Sun Mar 17, 2024 11:39 am
Forum: Archive
Topic: SET Parameter Problem
Replies: 2
Views: 10554

SET Parameter Problem

Test code (Astrobe v9.1 for Cortex-M0): MODULE M; PROCEDURE p(s: SET); END p; PROCEDURE run; VAR k: INTEGER; BEGIN p({k}); p({13}) END run; END M. Partial assembly code: PROCEDURE run; VAR k: INTEGER; BEGIN . 12 0CH 0B500H push { lr } . 14 0EH 0B081H sub sp,#4 p({k}); . 16 010H 09800H ldr r0,[sp] . ...
by gray
Sun Feb 18, 2024 6:47 am
Forum: Cortex-M0, M3, M4 and M7
Topic: RP2040: Library & Tools for Astrobe Available
Replies: 19
Views: 1402731

Re: RP2040: Library & Tools for Astrobe Available

Recent changes and additions: 1) https://oberon-rtk.org/updates/2024/cn-2024-02-13/: stack usage checking Example program: https://oberon-rtk.org/docs/examples/v2/stackusage/ 2) https://oberon-rtk.org/updates/2024/cn-2024-02-16/: bootrom access Example program: https://oberon-rtk.org/docs/examples/v...
by gray
Fri Feb 02, 2024 12:13 pm
Forum: Cortex-M0, M3, M4 and M7
Topic: RP2040: Library & Tools for Astrobe Available
Replies: 19
Views: 1402731

Re: RP2040: Library & Tools for Astrobe Available

Recent changes and additions: 1) https://oberon-rtk.org/updates/2024/cn-2024-01-30/: signals and semaphores for thread synchronisation. Example programs: https://oberon-rtk.org/docs/examples/v2/signalsync/ and https://oberon-rtk.org/docs/examples/v2/semaphoresync/ 2) https://oberon-rtk.org/updates/2...
by gray
Wed Jan 31, 2024 1:11 pm
Forum: Archive
Topic: ARRAY OF BYTE Parameters
Replies: 1
Views: 6143

ARRAY OF BYTE Parameters

The ARM Cortex-M Oberon Programmers Guide states in section 4.1 ARRAY of BYTE: If the formal parameter is an array of bytes with a fixed size it can accept actual parameters of any type, except POINTER, whose size is the same number of bytes [...] Example 1: TYPE Word = ARRAY 4 OF BYTE; PROCEDURE p0...
by gray
Mon Jan 29, 2024 9:57 am
Forum: Cortex-M0, M3, M4 and M7
Topic: RP2040: Library & Tools for Astrobe Available
Replies: 19
Views: 1402731

Re: RP2040: Library & Tools for Astrobe Available

Latest changes and extensions: https://oberon-rtk.org/updates/2024/cn-2024-01-29/ Main extension: reading from serial terminals: https://oberon-rtk.org/concepts/architecture/text-io/ New example program: https://oberon-rtk.org/docs/examples/v1/readterminal/ Some thoughts about the implications of us...
by gray
Wed Jan 17, 2024 11:21 am
Forum: Cortex-M0, M3, M4 and M7
Topic: RP2040: Library & Tools for Astrobe Available
Replies: 19
Views: 1402731

Re: RP2040: Library & Tools for Astrobe Available

Made a few library changes, mostly to the text output machinery: https://oberon-rtk.org/updates/2024/cn-2024-01-17/ Added a new example program, showing how to avoid busy waiting for a peripheral: https://oberon-rtk.org/docs/examples/v2/nobusywaiting/ Edited the kernel description for structure and ...
by gray
Mon Jan 15, 2024 9:45 am
Forum: Cortex-M0, M3, M4 and M7
Topic: RP2040: Library & Tools for Astrobe Available
Replies: 19
Views: 1402731

RP2040: Library & Tools for Astrobe Available

Today, I have made available a first set of Oberon modules to program the RP2040 using Astrobe for Cortex-M0, v9.0.3. There's also a tool to transmogrify Astrobe '.bin' file to the contents and UF2 format for the RP2040. The library contains as of today: 1) Basics to get off the ground: clocks, rese...