mc-Things

mc-Products => mc-Module => Topic started by: Nick_W on August 23, 2016, 12:27:45 pm

Title: Build Failure Message "Internal Error Instr Type*1024"
Post by: Nick_W 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,
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: mc-John on August 23, 2016, 02:38:20 pm
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.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: Nick_W on August 23, 2016, 03:25:50 pm
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....
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: mc-John on August 23, 2016, 05:51:26 pm
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.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: Nick_W on August 23, 2016, 06:09:38 pm
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...
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: kristofferis on August 24, 2016, 12:16:34 am
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.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: Nick_W on August 24, 2016, 12:24:18 am
I can do,

Didn't know if you were planning a library section here, but Github is fine.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: kristofferis on August 24, 2016, 12:28:02 am
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.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: helge on August 24, 2016, 02:14:26 am
I've done the TSL2561 already. Not 100% complete and ported from the android version.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: kristofferis on August 24, 2016, 02:37:14 am
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.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: helge on August 24, 2016, 07:03:24 am
@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.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: Nick_W on August 24, 2016, 07:08:52 am
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.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: kristofferis on August 24, 2016, 07:21:04 am
@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.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: mc-Abe on August 24, 2016, 11:30:51 am
We have created a GitGub repository for collaborations. Please use forks of https://github.com/mcThings/mcScript.git to collaborate on scripts.
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: Nick_W on August 25, 2016, 12:16:59 pm
Any news on the new build?

I'm constantly running into this error now....
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: helge on August 31, 2016, 11:55:20 am
You can give the TSL2561 library a try .... get it from: https://github.com/luetgendorf/mcScript
Title: Re: Build Failure Message "Internal Error Instr Type*1024"
Post by: Nick_W on August 31, 2016, 04:28:31 pm
Thanks, Will do, I'll post my BME280 library when I have a chance to test it.

The build error is now gone!