BytesOffset Constant Value

General discussions about working with the Astrobe IDE and programming ARM Cortex-M0, M3, M4 and M7 microcontrollers.
Post Reply
captbill
Posts: 21
Joined: Mon Jun 16, 2014 2:57 pm

BytesOffset Constant Value

Post by captbill » Sun Sep 28, 2014 6:40 am

Hi,
I was have trouble getting ResData.Mod to compile and found it was due to on of the constants not having a value. It was the 'ByteOffset' constant. I guessed with 'ByteOffset = 4;'. Compiles fine now. What is the correct value here though?

Thanks!
Last edited by captbill on Sun Sep 28, 2014 8:56 am, edited 1 time in total.

captbill
Posts: 21
Joined: Mon Jun 16, 2014 2:57 pm

Re: ByteOffset Constant Value

Post by captbill » Sun Sep 28, 2014 7:12 am

Also to add clarity, I ran across this issue while trying to compile the SunriseSunset demos. I am now unable to compile:

Code: Select all

Oberon for Cortex-M3 Compiler v5.1.0
  compiling SunRiseTest

  Line  Col
    18    8 Error: undefined identifier
    18   19 Error: too many parameters
I am confused though that the error is too many parameters when I look at the SYSTEM.COPY function which suggests too few parameters. I am using the lpc1768 board.

Thanks

cfbsoftware
Site Admin
Posts: 493
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Re: ByteOffset Constant Value

Post by cfbsoftware » Sun Sep 28, 2014 7:29 am

ResData:

I cannot find any reference to a constant value named ByteOffset in ResData.mod. I can see that a constant value BytesOffset is used and this is correctly declared as a constant = 20.

SunRise / SunSet:

Sorry about the confusion - the example was developed on an earlier version of Astrobe. I have now updated the example on the forum to be compatible with v5.1 or later. The problem was fixed by replacing the call to COPY with Strings.Copy. i.e.

Code: Select all

Strings.Copy(works, out);

captbill
Posts: 21
Joined: Mon Jun 16, 2014 2:57 pm

Re: ByteOffset Constant Value

Post by captbill » Sun Sep 28, 2014 8:51 am

Thank you. Strings.Copy works perfectly.
Don't know how I managed to blank out the constant value. And yes it is 'BytesOffset' and not 'ByteOffset' over here. Pardon the typo.

So all is a go from here. Great demo too!

Thanks again Sir

Post Reply