Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - perillamint

2
Bus Pirate Development / How to contribute BPv4 development? (+ some bugfix)
Hello everyone!

I found some bugs around in Bus Pirate v4 code and want to send patch for it.

First, It does not compile using MPLABX IDE. I searched forum a bit and heard that file is quite old.
So, I tried to fix file paths in project config and successfully managed to build 6.3-beta firmware.

Here is a diff of that fix.
https://github.com/perillamint/bus_pira ... 9425660806

Additionally, BPv4 gives false positive "Buffer overflow warning". I searched code a bit, and I found that warning is produced by this code.
https://github.com/perillamint/bus_pira ... ART.c#L262

Although this code works well on BPv3, which uses FTDI and UART to communicate with PC, BPv4 does not use FTDI and UART for communicating with PC. So warning criteria (U2BRG<U1BRG) will be always true. (BPv4 does not uses U2BRG)

I want to fix this but I don't have programming experience with PIC24, I don't know how to fix this false positive warning right now. (To fix this, I need to find which register provides USB baud rate and use it instead of U2BRG)

**EDIT:
patch:
https://github.com/perillamint/bus_pira ... d9e4415c58
I think this patch is enough. Since there are no "Baud rate" stuff exist in USB CDC and since USB CDC is fast enough then UART communication, disabling it when it is not in debug mode(debug mode uses AUX0,1 as UART port to communicate with PC)


Additionally, DP google code repository goes read only due to googles decision. Is there any other live public SVN repository?

p.s. Sorry for my poor English. (I'm not native English speaker)

( ! ) 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.01242283440session_write_close ( )...(null):0
20.01282415040ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01282415816Database_MySQL->query( ).../DatabaseHandler.php:119
40.05812554560Database_MySQL->error( ).../Db-mysql.class.php:273