Hi,
I wonder if somebody could provide a little assistance.
I am trying to compile the BPv4 firmware from source.
I cloned the SVN and opened up the project in MPLAB 8, I then modified the base.h and commented out the v3 (tried with and without comment) and then tried to make.
The build reports to go successfully and I get a hex in the output dir which is 339kb or if I export using the default end I get a file of 962kb but flashing either of these via pirate-loader does not work. The pirate-loader reports success but the bus pirate does not boot.
This is probably something silly that I am overlooking but from my reading around the forums and trying to find a solution myself I am getting nowhere.
Any suggestions
Thanks in advance
BPv4 uses USB and another PIC microcontroller. There should be a second MPLAB project file in there, try opening that one.
I have tried building with MPLAB & MPLAB X with all projects in there (the MPLAB x project, the BusPirate project and the BPv4 project. The hex flashes fine, but the bus pirate isnt enumerated when plugging back in :-(
OK, found the problem: In base.h, look at lines 127-129:
//Debugging mode for BPv4, comment out for normal compiling
//Adds alternative communicaton to UART1 over AUX1 and AUX2 instead of USB.
#define BPV4_DEBUG
You have to comment out line 129. Then it works.
Thank you, I have lost several hours trying different things to get it to work and this was the solution. As i thought something simple
Thank you again
[quote author="tayken"]OK, found the problem: In base.h, look at lines 127-129:
//Debugging mode for BPv4, comment out for normal compiling
//Adds alternative communicaton to UART1 over AUX1 and AUX2 instead of USB.
#define BPV4_DEBUG
You have to comment out line 129. Then it works.[/quote]
sorry for that, I'll comment it out, and recommit to SVN so it's off by default..
You can leave it in if its helpful for you, I know what to look for now and others having the same issue will find this thread to tell them what it is.
Thanks again for all the help
[quote author="jayb1239"]You can leave it in if its helpful for you, I know what to look for now and others having the same issue will find this thread to tell them what it is.
Thanks again for all the help[/quote]
It was left there by mistake, thanks for uncovering it, and sorry you had to find it :)