SpaleKG
Junior Member
Offline
Posts: 36
Thank You
-Given: 19
-Receive: 18
|
|
« Reply #425 on: December 21, 2011, 10:28:49 10:28 » |
|
Can I obtain source code of linux keygen version, I want to try keygen on OSX version of HI-TECH.
Best regards.
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #426 on: December 21, 2011, 12:34:30 12:34 » |
|
Can I obtain source code of linux keygen version, I want to try keygen on OSX version of HI-TECH.
Here is an old OSX port; should still be working: http://ifile.it/qbdhnye/HT_Keygen
|
|
|
Logged
|
|
|
|
SpaleKG
Junior Member
Offline
Posts: 36
Thank You
-Given: 19
-Receive: 18
|
|
« Reply #427 on: December 23, 2011, 09:53:33 21:53 » |
|
It said activation success but seems it doesnt work spale@spale:~$ picc18 --ver (1273) Omniscient Code Generation not available in Lite mode (warning) HI-TECH C Compiler for PIC18 MCUs (Lite Mode) V9.80 Copyright (C) 2011 Microchip Technology Inc. spale@spale:~$ picc --ver (1273) Omniscient Code Generation not available in Lite mode (warning) HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.83 Copyright (C) 2011 Microchip Technology Inc. spale@spale:~$ Maybe I need to know for what version of compiler keygen is and try to use that version. Can you provide that info?
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #428 on: December 23, 2011, 10:31:50 22:31 » |
|
Maybe I need to know for what version of compiler keygen is and try to use that version.
It should work on any version but you need to manually search and replace RSA key.
|
|
|
Logged
|
|
|
|
SpaleKG
Junior Member
Offline
Posts: 36
Thank You
-Given: 19
-Receive: 18
|
|
« Reply #429 on: December 23, 2011, 10:46:00 22:46 » |
|
It should work on any version but you need to manually search and replace RSA key.
If you mean to replace activate.dat I did that (I overwrite original one in /Applications/HI-TECH/picc-18/9.80/bin/). Here is complete procedure: spale@spale:~$ ./HT_Keygen HI-TECH Universal RSA Keygen for OSX v1.0 ==> Enter serial number [e.g. HCPIC18P-654321]: HCPIC18P-654321 ==> Generating new RSA key. ==> Saving new RSA key to activate.dat ==> Writing key file to keyfile.dat spale@spale:~$ cp activate.dat /Applications/HI-TECH/picc-18/9.80/bin/ spale@spale:~$ /Applications/HI-TECH/picc-18/9.80/bin/activate --keyfile=keyfile.dat --serial=HCPIC18P-654321 HI-TECH Product Activator v1.1 Copyright (C) 2011 Microchip Technology Inc. Activation successful. spale@spale:~$ picc18 --ver (1273) Omniscient Code Generation not available in Lite mode (warning) HI-TECH C Compiler for PIC18 MCUs (Lite Mode) V9.80 Copyright (C) 2011 Microchip Technology Inc. UPDATE: Thanks to Top I finally did it. All executable files need to be searched for RSA key (old one) and replaced with context (binary) with generated one (from activate.dat). Now I receive: spale@spale:~$ picc18 --ver HI-TECH C Compiler for PIC18 MCUs (PRO Mode) V9.80 Copyright (C) 2011 Microchip Technology Inc. Serial number: HCPIC18P-654321 (PRO) spale@spale:~$ I will make patcher for auto patching. When I finish that I will let you know.
|
|
« Last Edit: December 23, 2011, 11:51:46 23:51 by SpaleKG »
|
Logged
|
|
|
|
leosedf
Junior Member
Offline
Posts: 44
Thank You
-Given: 72
-Receive: 9
|
|
« Reply #430 on: January 15, 2012, 09:35:34 21:35 » |
|
Can someone help me get the Hi-Tech compiler running in Flowcode PIC version?
I was wondering that too, is there any option to use hitech with flowcode?
|
|
|
Logged
|
|
|
|
shila
Newbie
Offline
Posts: 20
Thank You
-Given: 6
-Receive: 56
|
|
« Reply #431 on: February 18, 2012, 10:19:37 10:19 » |
|
Hi , i'm in trouble.
The command : >Picc --ver sais :
c:\Programmi\HI-TECH Software\PICC\9.83\bin>picc --ver HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.83 Copyright (C) 2011 Microchip Technology Inc. Serial number: HCPICP-171073 (PRO)
but when i build a project it sais:
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.83 Copyright (C) 2011 Microchip Technology Inc. Serial number: HCPICP-171073 (PRO)
please help me. Thanks
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #432 on: February 18, 2012, 11:09:19 11:09 » |
|
but when i build a project it sais:
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.83 Copyright (C) 2011 Microchip Technology Inc. Serial number: HCPICP-171073 (PRO)
1. Uninstall. 2. Run CLEAN.BAT. 3. Re-install. 4. Run HI-TECH Universal RSA Keygen.
|
|
|
Logged
|
|
|
|
Sideshow Bob
Cracking Team
Hero Member
Offline
Posts: 1001
Thank You
-Given: 231
-Receive: 983
|
|
« Reply #433 on: February 18, 2012, 11:22:53 11:22 » |
|
I get the same then running the compiler in lite mode from MPLAB. In MPLAB select (toolbar) project->buil options->peoject Then select the compiler tab and set operation mode to pro or whatever you feel you can handle
|
|
|
Logged
|
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum
|
|
|
shila
Newbie
Offline
Posts: 20
Thank You
-Given: 6
-Receive: 56
|
|
« Reply #434 on: February 18, 2012, 01:13:00 13:13 » |
|
Perfect!
Just as Sideshow Bob said. Now it work in pro mode:
HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.83 Copyright (C) 2011 Microchip Technology Inc. Serial number: HCPICP-171073 (PRO)
|
|
|
Logged
|
|
|
|
shila
Newbie
Offline
Posts: 20
Thank You
-Given: 6
-Receive: 56
|
|
« Reply #435 on: February 18, 2012, 05:21:48 17:21 » |
|
Hi,
which is a valid alternative to "mplab ide" as Ide to program with Htsoft. Mplab X is too heavy , and Mplab Ide 8 is too skinny. I mean an ide with compiler option and auto indent etc.
Thanks
|
|
|
Logged
|
|
|
|
tavioman
Active Member
Offline
Posts: 151
Thank You
-Given: 14
-Receive: 17
|
|
« Reply #436 on: February 19, 2012, 06:22:41 06:22 » |
|
I use Visual Studio.
|
|
|
Logged
|
- Brain juice -
|
|
|
metal
Global Moderator
Hero Member
Offline
Posts: 2420
Thank You
-Given: 862
-Receive: 678
Top Topic Starter
|
|
« Reply #437 on: February 19, 2012, 07:09:23 07:09 » |
|
how do you configure it, explain to us plz.
|
|
|
Logged
|
|
|
|
tavioman
Active Member
Offline
Posts: 151
Thank You
-Given: 14
-Receive: 17
|
|
« Reply #438 on: February 19, 2012, 07:31:31 07:31 » |
|
Create a file called project.cmd(name is not important); --CHIP=18F4431 --ERRFORMAT="%f(%l) : error %n: %s" --WARNFORMAT="%f(%l) : warning %n: %s (%a)" --MSGFORMAT="%f(%l) : message %n: %s" --OPT=speed --TIME -Q --WARN=-9 --ASMLIST --OUTPUT=mcof --IDE=MPLAB --ERRORS=10 --CALLGRAPH=full --ECHO -M5_0_0_slave_debug.map -N100 -X -DFOSC=40000000UL -DGLOBAL_DEBUG=1 -DVERSION_NUMBER=800 -O"Debug\project.hex" --OBJDIR="obj\slave\debug\8_0_0"
-I"..\..\..\source\drv\PIC18F4431" -I"..\..\..\source\sys\PIC18F4431" -I"..\..\..\source\err" -I"..\..\..\source\std" -I"..\..\..\source\app\2009\adv\slave" -I"src"
..\..\..\source\app\2009\adv\slave\AppBrake.c ..\..\..\source\app\2009\adv\slave\AppMain.c ..\..\..\source\app\2009\adv\slave\AppMotor.c ..\..\..\source\app\2009\adv\slave\AppIsr.c ..\..\..\source\app\2009\adv\slave\AppAdc.c ..\..\..\source\app\2009\adv\slave\AppSpi.c
..\..\..\source\drv\PIC18F4431\DrvAdc.c ..\..\..\source\drv\PIC18F4431\DrvQei.c ..\..\..\source\drv\PIC18F4431\DrvPwm.c ..\..\..\source\drv\PIC18F4431\DrvTimer.c ..\..\..\source\drv\PIC18F4431\DrvEusart.c ..\..\..\source\drv\PIC18F4431\DrvGpio.c ..\..\..\source\drv\PIC18F4431\DrvSsp.c ..\..\..\source\drv\PIC18F4431\DrvCcp.c
..\..\..\source\std\Controller\StdPi.c
Configure PIC used: Configure messages to be understood by Visual Studio and to be displayed in standard output. --ERRFORMAT="%f(%l) : error %n: %s" --WARNFORMAT="%f(%l) : warning %n: %s (%a)" --MSGFORMAT="%f(%l) : message %n: %s"
Compile optimize for speed: In output display total time it took for compiling the project Warning level Forgot these, but can be found on user manual of compiler This will output files compatible with MPLAB and PROTEUS. Useful for simulation. Stop compilation after this number of errors: --CALLGRAPH=full --ECHO Output MAP file: This one tells compiler the maximum identifier length: For example if you have a function called MyFunc(),this one has identifier length of 6 (1M 2y 3F 4u 5n 6c) -X Global defines: These are similar to: #define OSC 40000000UL #define GLOBAL_DEBUG 1 #define VERSION_NUMBER 800 -DFOSC=40000000UL -DGLOBAL_DEBUG=1 -DVERSION_NUMBER=800
Output HEX: Object files output folder: --OBJDIR="obj\slave\debug\8_0_0"
Include folders(as you can see,these can be relative paths): -I"..\..\..\source\drv\PIC18F4431" -I"..\..\..\source\sys\PIC18F4431" -I"..\..\..\source\err" -I"..\..\..\source\std" -I"..\..\..\source\app\2009\adv\slave" -I"src"
These are project c files: ..\..\..\source\app\2009\adv\slave\AppBrake.c ..\..\..\source\app\2009\adv\slave\AppMain.c ..\..\..\source\app\2009\adv\slave\AppMotor.c ..\..\..\source\app\2009\adv\slave\AppIsr.c ..\..\..\source\app\2009\adv\slave\AppAdc.c ..\..\..\source\app\2009\adv\slave\AppSpi.c
..\..\..\source\drv\PIC18F4431\DrvAdc.c ..\..\..\source\drv\PIC18F4431\DrvQei.c ..\..\..\source\drv\PIC18F4431\DrvPwm.c ..\..\..\source\drv\PIC18F4431\DrvTimer.c ..\..\..\source\drv\PIC18F4431\DrvEusart.c ..\..\..\source\drv\PIC18F4431\DrvGpio.c ..\..\..\source\drv\PIC18F4431\DrvSsp.c ..\..\..\source\drv\PIC18F4431\DrvCcp.c
..\..\..\source\std\Controller\StdPi.c
After you configure this file you should tell VS: PICC18.exe @project.cmdThis line you should provide it in configuration of your VS project. Sadly on this PC I don't have VS installed to show you a screenshot, but I'msure you will find your way. If there still is interest I'll provide it tomorrow. Have fun!
|
|
|
Logged
|
- Brain juice -
|
|
|
allunderthesun
Inactive
Offline
Posts: 5
Thank You
-Given: 9
-Receive: 0
|
|
« Reply #439 on: March 20, 2012, 01:03:41 01:03 » |
|
looking for the OSX version. the link is dead?
|
|
|
Logged
|
|
|
|
allunderthesun
Inactive
Offline
Posts: 5
Thank You
-Given: 9
-Receive: 0
|
|
« Reply #440 on: March 20, 2012, 02:36:01 02:36 » |
|
Can I use the windows version and copy the key to OSX? is it possible?
|
|
|
Logged
|
|
|
|
robban
Senior Member
Offline
Posts: 265
Thank You
-Given: 34
-Receive: 38
Warrior
|
|
« Reply #441 on: March 20, 2012, 03:02:56 03:02 » |
|
With the risc of getting warned; Let's face it, MPLABX is a mess, and they use us as ginny pigs. I never use it as a default IDE, only when I try to import an already fine .mcp file. Even my MPLAB ICD3 protest when I try to import a project. The only thing that's working alright is the driver switch, but on the other hand, who needs another switch? Me? Microchip?
|
|
|
Logged
|
Code Warrior
|
|
|
danielausparis
Inactive
Offline
Posts: 3
Thank You
-Given: 4
-Receive: 1
|
|
« Reply #442 on: May 05, 2012, 12:43:57 12:43 » |
|
First impressions about Hi-Tech PICC on Archlinux:
- installation is smooth as per forum instructions. It has to be made very clear that a working eth0 connection is mandatory for the key management process. - it has to be noted that the dynamically-linked keygen refers to ssl libraries that are quite "old" in Archlinux terms (being a rolling release distribution, it features always latest packages compared to other distros). Workaround: cheat by creating symbolic links from the actual ssl libraries to the libraries asked for by the keygen program. It works, although with a warning. A long term solution would be a source release of the keygen, or a statically linked one.
The PICC package, even once installed and validated PRO with the keygen, runs in PRO mode only as long as a working eth0 is available. If not, it reverts to LITE mode (and back). This might be surprising for laptop users.
I did a small benchmark of PICC against CC5X (full optimizing version available elsewhere in this forum). I was surprised to find out that CC5X produces about 20% smaller code.
The next step will be to deploy the PIC18 version of the compiler.
|
|
|
Logged
|
|
|
|
SpaleKG
Junior Member
Offline
Posts: 36
Thank You
-Given: 19
-Receive: 18
|
|
« Reply #443 on: October 07, 2012, 10:14:56 22:14 » |
|
looking for the OSX version. the link is dead?
This is RSA key generator, but you need to use some HEX editor and change/replace RSA keys from executables with generated ones. http://turbobit.net/7imhp5fv8el5.htmlEDIT: This is very strange on MacOSX. In terminal when I check version it said: spale@macpro:/Applications/HI-TECH/picc-18/9.80/bin$ ./picc18 --ver HI-TECH C Compiler for PIC18 MCUs (PRO Mode) V9.80 Copyright (C) 2011 Microchip Technology Inc. Serial number: HCPIC18P-720066 (PRO) In MPLABX when I select toolchain it said: But when compile in MPLABX then I receive this: Does this seems that MPLABX have original Microchip RSA keys in binaries ? Or how to fix this issue?
|
|
« Last Edit: October 16, 2012, 08:29:49 08:29 by SpaleKG »
|
Logged
|
|
|
|
SpaleKG
Junior Member
Offline
Posts: 36
Thank You
-Given: 19
-Receive: 18
|
|
« Reply #444 on: October 16, 2012, 08:48:08 08:48 » |
|
Forget about the tar.gz and run files, I have it installed and have the 'whole filesystem tree'. I'll try and explain again It looks like the Linux ELF executable files, activate and picc are now packed or protected with something and I am having trouble running them in a debugger. If you try to load activate into a disassembler you'll see what I mean. I don't know anything about unpacking Linux ELF executable files but if you can unpack them then a patch will be simple. At this moment UPX packer for executables is the only one for Linux platforms. Try to unpack binary with UPX.
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #445 on: October 16, 2012, 02:00:40 14:00 » |
|
Does this seems that MPLABX have original Microchip RSA keys in binaries ? Or how to fix this issue?
I think I remember seeing a setting somewhere in the IDE that allows you to switch between different versions of the compiler. I guess you have it set to Lite mode so look for this switch and set it to PRO mode and you should be okay. At this moment UPX packer for executables is the only one for Linux platforms. Try to unpack binary with UPX.
Seems like you missed my later post saying "Please disregard my last few posts about the Linux ELF files being packed/protected. Somehow the v9.81 download got corrupted and it made things look wierd in IDA."
|
|
|
Logged
|
|
|
|
SpaleKG
Junior Member
Offline
Posts: 36
Thank You
-Given: 19
-Receive: 18
|
|
« Reply #446 on: October 16, 2012, 07:33:38 19:33 » |
|
I think I remember seeing a setting somewhere in the IDE that allows you to switch between different versions of the compiler. I guess you have it set to Lite mode so look for this switch and set it to PRO mode and you should be okay.
In MPLABX IDE I can click on search and IDE adding all toolchains which are founded to be installed (also can be manually added but that is always about path to bin/ folder). So everywhere it said PRO but when compile/build it mentioning Lite mode colored by red in Output window. However I cant find anything in whole IDE about selecting/switching between Lite/PRO mode. If anyone have this issues on MPLABX with HI-TECH compilers, and find solution, please share.
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #447 on: October 16, 2012, 08:07:47 20:07 » |
|
However I cant find anything in whole IDE about selecting/switching between Lite/PRO mode. If anyone have this issues on MPLABX with HI-TECH compilers, and find solution, please share.
You need to look a little harder
|
|
|
Logged
|
|
|
|
Okada
Active Member
Warned
Offline
Posts: 132
Thank You
-Given: 29
-Receive: 188
|
|
« Reply #448 on: January 20, 2013, 05:05:11 17:05 » |
|
Hi Top
I have a problem using Hi Tech Compilers latest version registered with v2.3 RSA Keygen. See the attached image. If I select Pre Process assembler and Assembler check boxes and Compile I get wrong hex files which doesn't work properly. It is the same with all Hi Tech C compilers.
|
|
|
Logged
|
|
|
|
Top
Senior Member
Offline
Posts: 339
Thank You
-Given: 52
-Receive: 1719
|
|
« Reply #449 on: January 20, 2013, 10:58:58 22:58 » |
|
Please provide a complete project that highlights the problem.
|
|
|
Logged
|
|
|
|
|