Author Topic: Build Failure Message "Internal Error Instr Type*1024"  (Read 130 times)

Nick_W

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Build Failure Message "Internal Error Instr Type*1024"
« on: August 23, 2016, 12:27:45 pm »
I have a completed BME280 Library, which shows no errors in mcStudio, but fails to bulid with the error "Internal Error Instr Type*1024".

I'm not sure what this is - is it a memory error (the library is quite big)?

Thanks,

Share on Facebook Share on Twitter


mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
I doubt that it is too big but i can debug it if you send the project (all files) in a zip file so I can debug it.

Nick_W

  • Full Member
  • ***
  • Posts: 215
    • View Profile
You'd be surprised....

I find it will build if I remove some Sub/Functions, but it doesn't matter which (just enough).

Project is attached. I really hope it's a bug of mine....

mc-John

  • Global Moderator
  • Full Member
  • *****
  • Posts: 212
    • View Profile
It is a bug in displaying the code. As you know every time you build (or run) a *.lst file is created. During the creation of the list the instruction JumpSubr interprets the instruction incorrectly. The reason that this error shows up is because your program is really big. The VM has Jump instructions and Branch instructions. Branch instructions are single word (16 bit) instructions that can jump to code if that is not more than 1024 instruction away. Jump instructions can jump to anywhere in the program.

There is no simple work-around. I will fix this as soon as possible and we will post the new version this week.  This version will also have the ability the manual or automatic compile.

Nick_W

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Thank you!

I will await the new version.

In the meantime I'm working on a door sensor, so I'm building an accelerometer library (based on the Alpha version you posted somewhere). Hopefully that won't get too big...

I have a TSL 2561 Light Sensor I'm also planning on trying - maybe I need more modules...

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Do you have any plans to release the libraries on GitHub?
Then it's very easy for multiple users to request updates and help to improve the library and also keep track of current issues.

Nick_W

  • Full Member
  • ***
  • Posts: 215
    • View Profile
I can do,

Didn't know if you were planning a library section here, but Github is fine.

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
There will be a solution for that but I don't think that is on the priority list, at least not in the top  :)

GitHub is a good start point and I like your initiative to create libraries, good work.

helge

  • Newbie
  • *
  • Posts: 27
    • View Profile
I've done the TSL2561 already. Not 100% complete and ported from the android version.

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
That's great, will that also be added to GitHub so that we share what we have made.

Not a problem if it's not complete, other users could push changes and complete the code if you like.

helge

  • Newbie
  • *
  • Posts: 27
    • View Profile
@kristofferis sure, I'll share the code here. But it was done before the mc-Things platform was declared proprietary instead of open source. Therefor I'm considering leaving this platform and will not develop this any further. Therefor github would be inappropriate.

Nick_W

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Well I would find it useful, save me some effort with the Light sensor. While I wait for the new release, I'll get back to the MMA8652FC.

I usually don't like posting things on github until they are complete (and they are never complete). But I'll post what I have when it works.

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
@helge I understand, thanks for sharing.

I do not use GitHub very much, but I use git to my locally hosted gitserver.
And there I have a lot of unfinished codes but it is also private so not many people that have access to those repositories.
I guess its better to have a working code on GitHub and then later add new features and solve issues.

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
We have created a GitGub repository for collaborations. Please use forks of https://github.com/mcThings/mcScript.git to collaborate on scripts.

Nick_W

  • Full Member
  • ***
  • Posts: 215
    • View Profile
Any news on the new build?

I'm constantly running into this error now....