PRO 24 and windows 7

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
rollins
Posts: 6
Joined: 05 Jan 2010 14:22

PRO 24 and windows 7

#1 Post by rollins » 12 Jan 2010 17:23

There is a big problem

When I try to compile the sample GLCD with windows 7 :error, statment are underlined in red !!!

The same source with XP (compiler on demo mode ) no problem !!!

When I close the soft 'ERROR'

Some help !!! :(

rollins
Posts: 6
Joined: 05 Jan 2010 14:22

the code

#2 Post by rollins » 12 Jan 2010 18:28

' *
' * Project name:

'
' *

program GLCD_Test

' Glcd module connections
dim GLCD_D7 as sbit at RE7_bit
GLCD_D6 as sbit at RE6_bit
GLCD_D5 as sbit at RE5_bit
GLCD_D4 as sbit at RE4_bit
GLCD_D3 as sbit at RE3_bit
GLCD_D2 as sbit at RE2_bit
GLCD_D1 as sbit at RE1_bit
GLCD_D0 as sbit at RE0_bit
GLCD_D7_Direction as sbit at TRISE3_bit
GLCD_D6_Direction as sbit at TRISE2_bit
GLCD_D5_Direction as sbit at TRISE1_bit
GLCD_D4_Direction as sbit at TRISE0_bit
GLCD_D3_Direction as sbit at TRISE3_bit
GLCD_D2_Direction as sbit at TRISE2_bit
GLCD_D1_Direction as sbit at TRISE1_bit
GLCD_D0_Direction as sbit at TRISE0_bit

dim GLCD_CS1 as sbit at LATD11_bit
GLCD_CS2 as sbit at LATD10_bit
GLCD_RS as sbit at LATB15_bit
GLCD_RW as sbit at LATD4_bit
GLCD_EN as sbit at LATD5_bit
GLCD_RST as sbit at LATD2_bit

dim GLCD_CS1_Direction as sbit at TRISD11_bit
GLCD_CS2_Direction as sbit at TRISD10_bit
GLCD_RS_Direction as sbit at TRISB15_bit
GLCD_RW_Direction as sbit at TRISD4_bit
GLCD_EN_Direction as sbit at TRISD5_bit
GLCD_RST_Direction as sbit at TRISD2_bit
' End Glcd module connections

dim counter as byte
someText as char[18]

sub procedure Delay2S() ' 2 seconds delay function
Delay_ms(2000)
end sub

main:
ADPCFG = 0xFFFF ' Configure AN pins as digital
Glcd_Init() ' Initialize GLCD
Glcd_Fill(0x00) ' Clear GLCD



Glcd_Box(62,40,124,63,1) ' Draw box
Glcd_Line(0, 0, 127, 63, 1) ' Draw line

Glcd_Fill(0x00) ' Clear Glcd
#IFDEF COMPLETE_EXAMPLE
Glcd_Set_Font(@Character8x7, 8, 7, 32) ' Choose font "Character8x7"
Glcd_Write_Text("mikroE", 1, 7, 2) ' Write string
#ENDIF
for counter = 1 to 10 ' Draw circles
Glcd_Circle(63,32, 3*counter, 1)
next counter
Delay2S()
end.

When I try to program it with mplab the result is:
Verify failed in CONFIG memory.
First failure at offset 0x000000, got 0x0000, expected 0x01ff
Programming failed

What's happen !!! :(

rollins
Posts: 6
Joined: 05 Jan 2010 14:22

#3 Post by rollins » 12 Jan 2010 23:20

A news

I have copy the all project on a external drive and now it's working
I ve made all the change of attributs for the folder on the original folder but it's just working on the usb key

just rest the problem when I close the program, and the displays and begining from the middle of the glcd not on the left !

If you have some idea

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: PRO 24 and windows 7

#4 Post by tihomir.losic » 13 Jan 2010 11:17

rollins wrote:There is a big problem

When I try to compile the sample GLCD with windows 7 :error, statment are underlined in red !!!

The same source with XP (compiler on demo mode ) no problem !!!

When I close the soft 'ERROR'

Some help !!! :(
Hello,

there is problem with Windows 7. Because, Windows7 has UAC (User Account Control) which prevents writing to config files. Just turn off UAC and it should work just fine.

For Windows 7, the path is:
Control Panel -> User Accounts and Family Safety -> User Accounts -> Change User Account Control settings and move the slider down to Never notify and click OK.

If problem still persist, please, create support ticket (http://www.mikroe.com/en/support), and contact me.

Thanks.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

rollins
Posts: 6
Joined: 05 Jan 2010 14:22

#5 Post by rollins » 13 Jan 2010 15:07

Thank, yes I ll try it

But when I want to write something at 0 on axe X, in fact it's write on the middle of the screen.

Some ideas ?

thank a lot

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

#6 Post by tihomir.losic » 13 Jan 2010 15:38

Hello,

Please post this question on our Support Desk:
http://www.mikroe.com/en/support/
Also, send me attachment with your whole project if possible, I need that to check where is the problem in your program.

Thanks.

Regards,

Losic Tihomir
mikroElektronika [Support team]

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”