PIC Vietnam

Go Back   PIC Vietnam > Microchip PIC > English forum on PICs

Tài trợ cho PIC Vietnam
Trang chủ Đăng Kí Hỏi/Ðáp Thành Viên Lịch Bài Trong Ngày Vi điều khiển

English forum on PICs Forum for foreigners -only English in this forum - Do not need to register or login

 
 
Ðiều Chỉnh Xếp Bài
Prev Previous Post   Next Post Next
Old 08-05-2007, 05:21 PM   #1
phamthaihoa
Đệ tử 3 túi
 
Tham gia ngày: Jun 2005
Bài gửi: 56
:
The compatibility of PIC C Complier on Windows Vista

I've tested several PIC C compliers on Vista Ultimate, MPLAB 7.52. Here is result:

* Microchip C30 V2.05 and below: I recieve error message:
Trích:
"pic30-coff-cc1: fatal error: installation problem, cannot exec `pic30-lm.exe'
compilation terminated"
C30 V3.0 I recieve warning message about psv mode. That code i've complied and work well on Windows XP without this message. I'm using dsPIC30F6014A.

Trích:
Warning message:
main.c: In function '_T1Interrupt':
main.c:33: warning: PSV model not specified for '_T1Interrupt';
assuming 'auto_psv' this may affect latency
Here is my Timer 1 ISR:

Trích:
void __attribute__((__interrupt__)) _T1Interrupt(void)
{
if(++TimeCount==150) {KeyScanFlag=1; TimeCount=0;}
_T1IF=0;
}
In version 2.05 on Windows XP, i don't recieve that messsage.

* All HTSOFT PIC complier can't complie on Vista (I've tested HTPICC 9.60, HTPIC18 9.50PL3, HTDSPIC 9.60 on MPLAB IDE and HTTIDE 3.12PL1).

* MikroC for PIC v6.2.1.0 and MikroC for dsPIC v3.0 work fine on Vista.

I've solved C30 V2.05 and HTSOFT complier.

With C30 V2.05 and below, you can copy "pic30-lm.exe" to your project directory and repair include directory in project Build Options.

With HTSOFT Complier. I emailed to Htsoft technical support. Here is email i've recieved from Htsoft:

Trích:
Microsoft changed the location of the ProductId value in Windows NT, put in a workaround under XP, and appear to have removed this workaround from Vista. We have updated our installer to work with Vista, but this did not appear in the wild until PICC 9.60.

The following process has been reported to allow our installers for earlier compilers to function under Windows Vista, but we can provide no guarantee that this will not damage your system. USE AT YOUR OWN RISK.

* start RegEdit
* navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
* copy the Value Data from the Value named 'ProductId'
* navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion
* create a new String Value named 'ProductId'
* paste in the Value Data previously copied
* close RegEdit

Then, re-run the compiler installer.
I've done that and complier work fine like on Windows XP.
phamthaihoa vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn
 


Quyền Sử Dụng Ở Diễn Ðàn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Smilies đang Mở
[IMG] đang Mở
HTML đang Tắt

Chuyển đến


Múi giờ GMT. Hiện tại là 03:40 PM.


Được sáng lập bởi Đoàn Hiệp
Powered by vBulletin®
Page copy protected against web site content infringement by Copyscape
Copyright © PIC Vietnam