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 - beeduino

1
Bus Pirate Support / Re: BusPirate v3 - burnt MOSI line
First of all - my Bus Pirate is working!
Thanks everyone who was helping.

[quote author="Arkku"]
Did you do “Clean and build” after changing the setting? It has no effect if you just “Export hex”. I had the exact same problem with the same error message, but solved by following the steps I gave in the MPLAB X thread.[/quote]

I did. I would like to get it compiled properly with MPLABX so I will test it again, thanks.
3
Bus Pirate Development / Re: Re: Compiling Bus Pirate firmware with MPLABX (under lin
[quote author="Arkku"]I finally found it in MPLAB X. Instructions for future reference:
...
Note that the value [tt:]0xa7fa[/tt:] used for MPLAB 8 is not accepted; MPLAB X requires the value to be either [tt:]0xabfb[/tt:] (which overlaps the bootloader area as described above) or of the form ([tt:]0x100 * n - 1[/tt:]); the largest suitable value of this form is [tt:]0xa6ff[/tt:] (a loss of 251 bytes of program space?).[/quote]
I used this info to recompile the firmware but whatever value for Program Memory End I set  - the hex file was the same - no diffs.
What other options could be in affect?

MPLABX 1.0 under debian, optimization is set to -O1, Bus Pirate svn code.
4
Bus Pirate Support / Re: BusPirate v3 - burnt MOSI line
[quote author="Arkku"]
Change the 0xa7fa to 0xa6ff to get rid of the warning.

(I struggled with this same issue earlier. I am now using MPLAB X to compile the firmware with no issues.)[/quote]

I was trying to recompile the firmware yesterday with all available settings - 0xa7fa, 0xa6ff, 0xa7ff.
In all the cases the hex file was the same - no diff. And uploading gave the same error -

Writing page 41 row 335, a780...OK
Erasing page 42, a800...ERROR [50]

I have switched off most of the features except i2c (commenting in base.h) and hex file was shrinked from about 190K to 124K - no different.
How to check that Program Memory End setting is applied to the build?

MPLABX 1.0 under debian. Optimization is set to -O1. Bus Pirate svn code.
5
Bus Pirate Support / Re: BusPirate v3 - burnt MOSI line
[quote author="AndThen"]
2. You will want the (from memory) BPv3_firmware, not the bootloader
[/quote]
I saw bootloader's hex files with header and footer like in my compilation but surely i was compiling firmware code not bootloader.
Quote
Now the useless background out of the way.  In the 39881D.pdf  page 4 has the Pin outs, CNx are listed here. RB2 is CN6.

They are also listed in the BP schematic, http://dangerousprototypes.com/wp-conte ... 04/cct.png , Looking at this Is RB2 a bad choice? if RB3/CN7 is used you still have the other TP and ground, unsure if the hardware comparator is used

Note Cn6 is in another register CNEN1 not CNEN2
Code: [Select]
#define BP_MOSI_CN              CNEN1bits.CN6IE 
At that point I was looking at the scematics where RB2, RB3 all set to GND.
On my board (v3b) RB3 is off the GND, I can try to remap to it. 

TP - is that a test point or what? Is it supported in the firmware?


Thanks for the help.
6
Bus Pirate Support / Re: BusPirate v3 - burnt MOSI line
[quote author="Sjaak"]arupbsk is right.

line 73:
Code: [Select]
#define BP_MOSI_CN              CNEN2bits.CN21IE 

[/quote]

What should I change this setting to if I remap MOSI to RB2 pin?

Also I compiled firmware but when making exporting for bootloader in MPLABX the setting of    0xa7fa was prefixed with "!!!".
And it looked like a warning.
Compiled hex file head looked like this:

:020000040000fa
:080000000002040000000000f2
:020000040000fa
:100400006fd621000e7f22000e0188000000000040

While  precompiled buspirate firmware is like this:

:020000040000FA
:1000000000020400000000006697000066970000F0

Have I missed something important?

Sorry it's my first run of MPLABX..
7
Bus Pirate Support / Re: BusPirate v3 - burnt MOSI line
arupbsk, Sjaak, thanks.

Installed software but not yet sure what pin to remap.
I can use this buspirate mostly as i2c tester so any decrease in other functionality would be ok.
8
Bus Pirate Support / BusPirate v3 - burnt MOSI line
I have burnt my buspirate connecting MOSI (SDA) line to + of a battery pack.
It is a pure ground on pin 18 of the PIC chip now, so I assume this pin is out of work completely. Other things work according to self test.

So my question is how to recover from this?
 - if buy new one - would you recommend to try v4, even if it's not yet officially released?
 - may I order somewhere new pic chip with firmware preloaded?
 - is it possible to rearrange the problem pin to another one, recompile and update firmware and rewire a little bit on the board?

Interesting, some other device (EV2300 from TI) was connected in parallel to buspirate when it happened. And it survived due to ESD protection gl05t diodes on signal lines. Was it discussed to add some protection into a buspirate?

Thanks in advance.
9
Bus Pirate Support / Re: Cross Platform ROM Programmer GUI with the Bus Pirate
I have found BusPirateGui when searching for I2C EEPROM programming support for the BusPirate.
I was able to build it under linux but did not find a way to load eeprom image file for upload.
Was it dropped at the time spi flashrom support was dropped over to flashrom project?

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