jss
Newbie
Offline
Posts: 25
Thank You
-Given: 11
-Receive: 4
|
|
« Reply #400 on: March 31, 2011, 12:19:33 00:19 » |
|
...prints the MAC address that it's locking to; it won't fix your problem but it may give a clue to what's causing it. Try it with and without your network connection and report back.
Excellent hunch! Both with net on and off: ==> Locking to MAC Address: 00:00:00:00:00:00 # ifconfig eth1 Link encap:Ethernet HWaddr 08:00:27:4f:4d:86 # no publishing problem, it's a virtual machine inet6 addr: fe80::a00:27ff:fe4f:4d86/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:6070 errors:0 dropped:0 overruns:0 frame:0 TX packets:3189 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:427315 (427.3 KB) TX bytes:224439 (224.4 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:240 (240.0 B) TX bytes:240 (240.0 B) Extended thanks for your continued support and time. I would click the button 10 times but I think it's not allowed. jss
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #401 on: March 31, 2011, 12:47:03 00:47 » |
|
Excellent hunch! Both with net on and off: ==> Locking to MAC Address: 00:00:00:00:00:00
Very strange that the keygen cannot determine your MAC address! One more to try ( http://ifile.it/nzvlpek); enter MAC address manually (NB: maybe case sensitive) and report back.
|
|
|
Logged
|
|
|
|
jss
Newbie
Offline
Posts: 25
Thank You
-Given: 11
-Receive: 4
|
|
« Reply #402 on: March 31, 2011, 01:20:32 01:20 » |
|
Very strange that the keygen cannot determine your MAC address! ...enter MAC address manually (NB: maybe case sensitive) and report back.
Finally success!!! You're brilliant, many thanks. # ./picc --ver HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.81 Copyright (C) 2010 Microchip Technology Inc. Serial number: HCPICP-889900 (PRO) But you're right, it's case sensitive, uppercase is required on the MAC address. Well, my problem is solved, I'll click the 'Thanks' button but I guess you want to completely solve this matter to automatically detect the mac for the benefit of others. That said, me and my boxes are at your entire discretion. Waiting for directions again... jss
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #403 on: March 31, 2011, 01:47:39 01:47 » |
|
# ifconfig eth1 Link encap:Ethernet HWaddr 08:00:27:4f:4d:86 # no publishing problem, it's a virtual machine inet6 addr: fe80::a00:27ff:fe4f:4d86/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:6070 errors:0 dropped:0 overruns:0 frame:0 TX packets:3189 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:427315 (427.3 KB) TX bytes:224439 (224.4 KB)
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)
This is the problem; the keygen locks to eth0 but where is your eth0?
|
|
|
Logged
|
|
|
|
jss
Newbie
Offline
Posts: 25
Thank You
-Given: 11
-Receive: 4
|
|
« Reply #404 on: March 31, 2011, 11:50:23 11:50 » |
|
This is the problem; the keygen locks to eth0 but where is your eth0?
It doesn't have one, probably a leftover, this is an old virtual machine. But I think I already progressed from that so you can forget it. In fact, I just installed on the physical machine and the problem is that the keygen reports the first nic, eth0, as default when it asks for a MAC addr, whereas the compiler install used wlan0 to communicate with MC because eth0 was down. So, if I accept the default MAC (eth0), it fails; but if I override to the the wlan0 MAC, it succeeds. I could, if you find necessary, disconnect wlan0 and make the whole thing using eth0 but I'm almost sure it would succeed. I didn't because I wanted to let you know the news immediately. jss
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #405 on: March 31, 2011, 01:16:42 13:16 » |
|
In fact, I just installed on the physical machine and the problem is that the keygen reports the first nic, eth0, as default when it asks for a MAC addr, whereas the compiler install used wlan0 to communicate with MC because eth0 was down.
I think this is going a bit off-topic so please reply by PM and if a new linux keygen transpires it can be announced here. I'd like to see the output from ifconfig with eth0 connected and then disconnected and also when you are disconnecting these interfaces what exactly are you doing?
|
|
|
Logged
|
|
|
|
ALLPIC
Active Member
Offline
Posts: 114
Thank You
-Given: 64
-Receive: 72
|
|
« Reply #406 on: June 07, 2011, 06:33:42 06:33 » |
|
|
|
« Last Edit: June 07, 2011, 06:44:41 06:44 by ALLPIC »
|
Logged
|
|
|
|
Manuel
Senior Member
Offline
Posts: 329
Thank You
-Given: 680
-Receive: 192
|
|
« Reply #407 on: June 21, 2011, 05:28:43 17:28 » |
|
New Version C pro 9.82
2.3 great job really great!
Manuel!!
|
|
|
Logged
|
-> An Apple a Day does not Let U become a Macintosh!
|
|
|
marcodassi
Junior Member
Warned
Offline
Posts: 40
Thank You
-Given: 73
-Receive: 26
|
|
« Reply #408 on: June 21, 2011, 05:50:13 17:50 » |
|
New Version C pro 9.82
2.3 great job really great!
Manuel!!
link please? thanks!
|
|
|
Logged
|
|
|
|
Wannabe
Global Moderator
Senior Member
Offline
Posts: 430
Thank You
-Given: 228
-Receive: 285
|
|
« Reply #409 on: June 21, 2011, 05:59:38 17:59 » |
|
|
|
|
Logged
|
|
|
|
Manuel
Senior Member
Offline
Posts: 329
Thank You
-Given: 680
-Receive: 192
|
|
« Reply #410 on: September 23, 2011, 06:12:58 18:12 » |
|
|
|
« Last Edit: September 23, 2011, 06:34:28 18:34 by Manuel »
|
Logged
|
-> An Apple a Day does not Let U become a Macintosh!
|
|
|
max
Senior Member
Offline
Posts: 321
Thank You
-Given: 1659
-Receive: 52
|
|
« Reply #411 on: September 24, 2011, 08:57:29 20:57 » |
|
Hi PICC users,
Does the compiler or the ide support the peripheral code generations like in codevision avr complier?
Regards
|
|
|
Logged
|
Fate arrived and made the conscious unconscious It silenced the activity of life.
|
|
|
Manuel
Senior Member
Offline
Posts: 329
Thank You
-Given: 680
-Receive: 192
|
|
« Reply #412 on: September 24, 2011, 10:36:34 22:36 » |
|
NONE, sorry.
Better always build everything .... you will find less surprises....
X:
|
|
|
Logged
|
-> An Apple a Day does not Let U become a Macintosh!
|
|
|
metal
Global Moderator
Hero Member
Offline
Posts: 2420
Thank You
-Given: 862
-Receive: 678
Top Topic Starter
|
|
« Reply #413 on: September 25, 2011, 12:42:02 00:42 » |
|
This can be easily done, even for large PICs, here is a small example for a small PIC: void setup() { /* PIC12F675*/ /*REG VALUE pdf page */ STATUS = 0b00011100 ; /* p.0011 */ OPTION_REG = 0b00000000 ; /* p.0012 */ INTCON = 0b11000000 ; /* p.0013 */ PIE1 = 0b00000001 ; /* p.0014 */ PIR1 = 0b00000000 ; /* p.0015 */ PCON = 0b00000011 ; /* p.0016 */ GPIO = 0b00000000 ; /* p.0019 */ TRISIO = 0b00111000 ; /* p.0019 */ ANSEL = 0b01011000 ; /* p.0044 */ WPU = 0b00000000 ; /* p.0020 */ IOC = 0b00000000 ; /* p.0021 */ T1CON = 0b00110001 ; /* p.0032 */ CMCON = 0b00000111 ; /* p.0035 */ VRCON = 0b00000000 ; /* p.0040 */ ADCON0 = 0b10001101 ; /* p.0043 */ ADRESH = 0b00000000 ; /* p.0042 */ ADRESL = 0b00000000 ; /* p.0042 */ EEDATA = 0b00000000 ; /* p.0047 */ EEADR = 0b00000000 ; /* p.0047 */ EECON1 = 0b00000000 ; /* p.0048 */ }
|
|
|
Logged
|
|
|
|
SpaleKG
Junior Member
Offline
Posts: 36
Thank You
-Given: 19
-Receive: 18
|
|
« Reply #414 on: October 01, 2011, 07:17:15 19:17 » |
|
Can someone publish source for linux version of crack/keygen. I want to port it to Mac OSX and try did it work for latest version of compiler for Mac.
Best regards.
|
|
|
Logged
|
|
|
|
Mr. Spock
Senior Member
Offline
Posts: 261
Thank You
-Given: 474
-Receive: 827
|
|
« Reply #415 on: October 03, 2011, 12:37:59 12:37 » |
|
|
|
|
Logged
|
|
|
|
picaboo
Newbie
Offline
Posts: 12
Thank You
-Given: 11
-Receive: 0
|
|
« Reply #416 on: October 12, 2011, 04:59:31 04:59 » |
|
Hello Gurus,
I am having problem in compiling an old simple project using picc v9.83 + mplab v8.76.
Let me start by mentioning that I am resuming my PIC activity almost after 18 months. 18 months ago my toolset was mplab v8.36 and hi-tech picc v9.65 (from bunion). I had developed some complex systems using this toolset.
Before resuming my PIC activity again, I thought of updating the toolset to latest ones. So, I installed MPLAB v8.76 and hi-tech picc v9.83 (activated by RSA keygen v2.3 above). I confirmed the activation by 'picc.exe --ver' in command terminal. I am using windows XP Professional with SP3.
After installing latest toolsuite, I tried to compile a very simple project. LED blinking. This is one of the tutorial project that used to build and run successfully with my 18 months old toolset.
Here are the simple c codes. Target device is 16F877A.
file - main.c ===== #include <htc.h> __CONFIG(XT & WDTDIS & PWRTDIS & BORDIS & LVPDIS & WRTEN & DEBUGEN & DUNPROT & UNPROTECT);
void init(void) { PIE1 = 0b00000001; INTCON = 0b01000000; OPTION = 0b10000000; // port directions: 1=input, 0=output TRISB = 0b00000000; T1CON = 0b00110101;
}
volatile char counter; void main(void) { counter = 0; init(); ei(); while (1){ PORTB = counter; }
file - int.c ==== #include <htc.h> extern volatile char counter; void interrupt my_isr(void){ if((TMR1IE)&&(TMR1IF)){ counter++; TMR1IF=0; } }
Following is the error I am getting when I press 'build' button.
================================================================= Build H:\Technical\Electronics\microcontroller\PIC\Projects\portB_LED_blink\portB_LED_blink for device 16F877A Using driver C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe
Make: The target "H:\Technical\Electronics\microcontroller\PIC\Projects\portB_LED_blink\main.p1" is out of date. Executing: "C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe" --pass1 H:\Technical\Electronics\microcontroller\PIC\Projects\portB_LED_blink\main.c -q --chip=16F877A -P --runtime=default,+init,-keep,+osccal,+oscval:0,-download,-resetbits,+stackcall,+clib --opt=default,+asm,-debug,-speed,+space,9 --warn=0 -D__DEBUG=1 --double=24 --float=24 --addrqual=ignore -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s" Error [192] H:\Technical\Electronics\microcontroller\PIC\Projects\portB_LED_blink\main.c; 10.1 undefined identifier "OPTION" Make: The target "H:\Technical\Electronics\microcontroller\PIC\Projects\portB_LED_blink\int.p1" is out of date. Executing: "C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe" --pass1 H:\Technical\Electronics\microcontroller\PIC\Projects\portB_LED_blink\int.c -q --chip=16F877A -P --runtime=default,+init,-keep,+osccal,+oscval:0,-download,-resetbits,+stackcall,+clib --opt=default,+asm,-debug,-speed,+space,9 --warn=0 -D__DEBUG=1 --double=24 --float=24 --addrqual=ignore -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
********** Build failed! **********
=============================================================
The "OPTION variable seems to be not defined in the header file. But it used to work with picc v9.65. Is there any change in SFR while I was away?
Really appreciate your help.
If you think this is not the right thread, please advice me the correct pleace to post it.
Thanks.
Posted on: October 12, 2011, 05:30:48 05:30 - Automerged
Ok, by looking at several header files, I figured that the header format has changed (for good, it seems) and the OPTION is renamed to OPTION_REG.
chip_select.h uses a flag _LEGACY_HEADERS to decide if old or new header files should be used.
#ifdef _16F877A #ifdef _LEGACY_HEADERS #include <legacy/pic168xa.h> #else #include <pic16f877a.h> #endif #endif
legacy/pic168xa.h has OPTION defined, but pic16f877a.h has OPTION_REG defined.
How do I set this _LEGACY_HEADERS flag? Directly in my code like this, #define _LEGACY_HEADERS #include <htc.h>
Or is there a way to specify it to project options? I searched in MPLAB, but in vain.
Would appreciate if anybody can guide me to the right approach.
Thanks.
|
|
|
Logged
|
|
|
|
metal
Global Moderator
Hero Member
Offline
Posts: 2420
Thank You
-Given: 862
-Receive: 678
Top Topic Starter
|
|
« Reply #417 on: October 12, 2011, 06:04:24 06:04 » |
|
As long as it has changed for good, why stick to 'OPTION', just use 'OPTION_REG' and you are done. On the other hand, may be you have to include the legacy header file if it exists, I have not tried or looked at the legacy folder, or use this:
#define OPTION OPTION_REG
|
|
|
Logged
|
|
|
|
|
kaizer
Newbie
Offline
Posts: 21
Thank You
-Given: 8
-Receive: 54
I'm here therefore I'm not there
|
|
« Reply #419 on: October 25, 2011, 03:41:33 15:41 » |
|
hi guys, anyone of you tried the HI-TECH Universal RSA Keygen (v2.3) for Hitech C PRO 9.82 for PIC10/12/16?
just want to confirm before i try it, my Trial version will expire next month...
TIA
|
|
|
Logged
|
whatever!
|
|
|
marcodassi
Junior Member
Warned
Offline
Posts: 40
Thank You
-Given: 73
-Receive: 26
|
|
« Reply #420 on: October 25, 2011, 05:24:12 17:24 » |
|
Works perfectly
|
|
|
Logged
|
|
|
|
sertek
Junior Member
Offline
Posts: 37
Thank You
-Given: 0
-Receive: 71
|
|
« Reply #421 on: November 05, 2011, 01:12:32 13:12 » |
|
|
|
|
Logged
|
|
|
|
XaroRSA
Guest
|
|
« Reply #422 on: December 05, 2011, 01:11:20 13:11 » |
|
Can someone help me get the Hi-Tech compiler running in Flowcode PIC version?
|
|
|
Logged
|
|
|
|
mbandala
Senior Member
Offline
Posts: 279
Thank You
-Given: 130
-Receive: 305
|
|
« Reply #423 on: December 14, 2011, 07:03:30 19:03 » |
|
v1.0 is working OK; edit Reactivate-PICC-PRO-9.80 adding the --keyfile switch at the end and then run it.
Hi there! The linux keygen works perfectly with 9.83 in Ubuntu/Debian distros, however I had to migrate to Fedora due to my VLSI related work. Folowing the same procedure with Ubuntu, I confirm that the keygen does not work in Fedora Linux. I have tried both Fedora 15 and 16, the keygen confirms a succesful activation but ./picc --ver in terminal shows the Lite Mode warning. I have tried this using the same computer where the keygen worked with Ubuntu, so it must be a distro problem. Any help would be appreciated!
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #424 on: December 14, 2011, 07:31:53 19:31 » |
|
The linux keygen works perfectly with 9.83 in Ubuntu/Debian distros, however I had to migrate to Fedora due to my VLSI related work. Folowing the same procedure with Ubuntu, I confirm that the keygen does not work in Fedora Linux. I have tried both Fedora 15 and 16, the keygen confirms a succesful activation but ./picc --ver in terminal shows the Lite Mode warning. I have tried this using the same computer where the keygen worked with Ubuntu, so it must be a distro problem. Any help would be appreciated!
I think v1.1 of the Linux keygen is in this message; http://www.sonsivri.to/forum/index.php?topic=935.msg115455#msg115455Try it and if you have a problem PM or post the output from the keygen.
|
|
|
Logged
|
|
|
|
|