Lynxmotion Tech Support

www.lynxmotion.com
It is currently Sun May 26, 2013 12:12 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu Feb 25, 2010 9:04 pm 
Offline
Roboteer

Joined: Mon Mar 03, 2008 8:34 am
Posts: 28
Thank you Kurt, that did it.

I seem to be having the same issue with the C code that I am using. So I have been searching for the C equivalent of the basic ENABLE (with no arguments) to enable global interrupts.

I read this comment in a post by Nathan: "manually enable the global interrupt flag(its in the CCR register and can only be set or cleared using the special CCR specific asm commands)."
so I am trying to use assembly to set the I (Interrupt Enable) bit of the Condition Code Register (CCR)

the code below compiles in a basic file, but I can't figure out how to compile this in a C file:

asm
{
.macro _ints_enable
bset #0,@SYSF:8
andc #0x7F,ccr
.endm
}

Any ideas?

Edit: I still don't know how to call asm routines from C, but adding this code to start.s will enable the global interrupts in a C program by clearing the interrupt enable bit in the condition code register:
andc #0x7F,ccr

-Bob


Top
 Profile  
 
PostPosted: Sun Apr 04, 2010 3:28 pm 
Offline
Roboteer
User avatar

Joined: Thu Dec 01, 2005 7:37 pm
Posts: 628
Location: Temecula CA
I added predefined macros for C/C++ that let you read/modify/write the ccr register in 1.0.0.20.

_________________
Basicmicro


Top
 Profile  
 
PostPosted: Sun Apr 04, 2010 4:24 pm 
Offline
Robot Guru
User avatar

Joined: Sat Apr 15, 2006 1:42 pm
Posts: 4415
Thanks Nathan,

I missed the previous post.


Top
 Profile  
 
PostPosted: Tue Apr 13, 2010 12:02 pm 
Offline
Roboteer

Joined: Mon Mar 03, 2008 8:34 am
Posts: 28
Thanks for the macros Nathan, that's just what I needed.
Unfortunately, I cannot run any release beyond 1.0.0.16.
Here's the message I get from version 1.0.0.17 through 1.0.0.23:

Starting Compiler...
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.


I've created new basic and c projects but still get the same error.

-Bob


Top
 Profile  
 
PostPosted: Tue Apr 13, 2010 12:32 pm 
Offline
Roboteer
User avatar

Joined: Thu Dec 01, 2005 7:37 pm
Posts: 628
Location: Temecula CA
I'm going to need more info. What OS are you using(32bit or 64bit as well). Have you installed any software that is out of the ordinary? Have you had any problems with other software recently? Do you have a second PC you can test on? Are you uninstalling all the old IDEs/Studios before install the new ones? Are you using a User account or an Admin account when running the software? What virus scanning software are you using? Are you using any other security software?

At this point no one else has reported this and I can't reproduce it. If anyone else is having this problem please post it here.

Based on this error message and other posts I've found online about this error message this appears to be a VC 2008 runtime problem on your PC. Our installer installs these runtimes automatically into the installation folder but there could be something wrong with your PC causing the locally installed copy to not be detected/used. Try installing them using this link which installes them for the entire PC:

http://www.microsoft.com/downloads/deta ... laylang=en

One other thing. Make sure your PC has all the updates.service packs for tour OS.

_________________
Basicmicro


Top
 Profile  
 
PostPosted: Tue Apr 13, 2010 4:45 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
FYI, We just installed 1.0.0.23 on a 32 bit Vista machine and it went well. We can compile.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Tue Apr 13, 2010 8:27 pm 
Offline
Roboteer

Joined: Mon Mar 03, 2008 8:34 am
Posts: 28
Problem is resolved. I have Visual Studio 2005 installed on my systems. The Basic Micro Studio installer did not install the VS2008 run-time, perhaps because of the VS2005 install. I manually installed VS2008 run-time and Basic Micro Studio 1.0.0.23 is now compiling my applications.
Thank you for your help!
I will be testing my Basic and C drivers with 1.0.0.23 very soon.
-Bob


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group