Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Development => Topic started by: bergy on February 06, 2014, 01:49:58 pm

Title: Compile from Source - working SVN Repo
Post by: bergy on February 06, 2014, 01:49:58 pm
I tried to compile the bus-pirate sources via MPLAB-X V2.00 with c-Compiler X16 (v 1.21).

i tried to read some built directions but there are only some very unspecifc ones posted:
Download MPLAB and C30 (there is some notice of MPLAB-X as well)...
Download source from SVN, open the MPLAB(-x) project and start.
... and it sucks!

I started with most recent source SVN Repo 2153.
The first error Ive got is: No rule to make target `../translations/en_US.s'
yep there isnt such source,only stuff like BPvx where pointing to different Hardwarerevision 3 or 4...
So I simply renamed one sourcefile to en_US.s

so next try... it sucks
"No rule to make target `../cdc.c'"
well there isn“t such Sourcefile...

Is there anybody out there, who could positivly compile the sources by checking out the SVN sources and eventually got an step by step instruction for bring up the Poroject to compile?

Im interessted in doing some very small modifications on my bus-pirate to deal with my hardware, but unfortunally Im realy not a crack bringing up this project nor in the microchip environment.

Best regards

Bergy
Title: Re: Compile from Source - working SVN Repo
Post by: tayken on February 07, 2014, 03:59:21 am
Did you import the MPLAB project file? MPLAB-X files are really old and I believe the directory structure has changed significantly.

For example: cdc.c is not in ../ but actually in dp_usb/!

I use an old version of MPLAB IDE and I was able to compile both v3 & v4 firmwares. I've been doing it for a while now to test out some addons I've made for v4.
Title: Re: Compile from Source - working SVN Repo
Post by: piguren on August 02, 2014, 04:15:58 am
sorry for bumping an old post, but this is where google landed me, so maybe you will benefit from this:

in mplabx File->Import->MPLAB IDE v8 Project
    then browse to the project filename:
        ./Firmware/busPirate.mcp

I was able to import the project no problems.
The build also worked without a hitch, the result was here:
 ./Firmware/busPirate.X/dist/default/production/busPirate.X.production.hex
Title: Re: Compile from Source - working SVN Repo
Post by: sanwal on October 04, 2014, 06:36:28 am
Did you import the MPLAB project file? MPLAB-X files are really old and I believe the directory structure has changed significantly.

For example: cdc.c is not in ../ but actually in dp_usb/!

I use an old version of MPLAB IDE and I was able to compile both v3 & v4 firmwares. I've been doing it for a while now to test out some addons I've made for v4.
User avatar
tayken
Developer
Developer
 
Posts: 1383
Joined: Sat Dec 12, 2009 10:58 am
Location: Tokyo, Japan
Top

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00962059928session_write_close ( )...(null):0
20.00992191520ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01002192296Database_MySQL->query( ).../DatabaseHandler.php:119
40.05342331032Database_MySQL->error( ).../Db-mysql.class.php:273