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

61
Bus Blaster JTAG debugger / Re: Self-programming using OpenOCD
I would say yes, and i think i have managed to get it working using configuration like this:

Code: [Select]
interface ft2232
ft2232_device_desc "Dual RS232-HS"
ft2232_layout redbee-usb
ft2232_vid_pid 0x0403 0x6010

adapter_khz 100

But OpenOCD expects you to define the correct JTAG chain, which makes it a bit tricky. I have not tested it further.

And as Ian said, urjtag is easier way to go :-)
63
General discussion / *nix programmer quiz
How many of you can answer this quiz without actually compiling the code ?:)

We have a piece of code: (quiz.c)
Code: [Select]
#include <stdio.h>

int main(void)
{
printf("hello worldn");
fork(); fork();
return 0;
}

Compile this code using regular gcc command:
Code: [Select]
gcc quiz.c -o quiz

And if I execute the compiled binary, it will print what everyone expects:
Code: [Select]
robot@robot ~/quiz $ ./quiz      
hello world

Question is, what will happen when i execute the code like this:
Code: [Select]
robot@robot ~/quiz $ ./quiz | cat

Have fun ;)
64
Pirate PIC programmer / Re: Re: Bus Pirate PIC programmer v0.1 (continued)...
[quote author="AndThen"]
Compare with original, "diff -u irtoy_v22.hex read_test.hex", these should differ only on the last two lines where MPLAB puts the configuration data on multiple lines picprog will have them included on one line.
[/quote]

You can use the "compare" program to compare 2 files (HEX or BIN).
65
Pirate PIC programmer / Re: Another programmer
Quote
Could you expand/explain "(see PIC24)"? I'm not sure where I'm being sent. You mean being able to read bytes of a word?

By generic read i mean read that will only read VISI register. PIC24x_READ does little more than that - sends out instructions and reads VISI register, 3 instructions and 3 register reads. (binIO.c in BP firmware)

Quote
The programming executives(PE) are released under the (standard?) Microchip license, the one that says you can only use the software on/with microchip products, and can't be re-distributed. So the license in addition to it(PE32) not working with the (small memory) chips and the time it takes to load (@9600) with all the bit banging, I just kinda of ignored them for this.

PE is just a piece of SW present in PIC, so you don't clock instructions to PIC, just send the High-level commands (write flash + data, read flash, etc)

What is licensed is the piece of SW. But you can always write your own piece of SW and put it in the PE space.
66
Pirate PIC programmer / Re: Another programmer
[quote author="AndThen"]2. iface.h and buspirate.c need a new function Peekbit
Code: [Select]
static uint32_t BP_PeekBit()
{
        uint32_t rval = 0;
        int fd = pBP->fd;
        char buffer[5] = {0};

        buffer[0]=8;//BWCMD_RSC_PEEKBIT

        serial_write(fd, buffer, 1);
        serial_read(fd,(char*) &rval, 1);

        return(rval);
}
[/quote]

This is more of HACKING, as compared to Programming/Designing sw :-)

The Real solution is to rework the read/write commands together with the Interface definition. Add "generic" interface read/write functions, and setmode to select which pic we are dealing with (already in place).

By generic read/write I mean read that can actually read arbitrary register and not only 3consecutive memory spaces (see PIC24).
FW in buspirate doesn't need to "speek" PIC instructions (as does now with the read). Buspirate will only understand the "ICSP" protocol (different ones for different PICs) and the actual programming logic will be inside PiratePICprog. This will also allow for future expansion (PE maybe?)

This will, of course, require changes in the firmware, message queueing in sw (as done for PIC18), etc.

We could also add PIC32 "commands" to the buspirate's FW, and not care about TMS/TDI bit-manipulation on host.
67
CPLD programmable logic / Re: Now what?
My future project is going to be a "switch" for multiple serial lines. One serial peripheral, for multiple devices (GPS, Radio control, etc)
68
Pirate PIC programmer / Fixed PIC24 support
Hey,

I have just committed changes to the PIC24 protocol. Now reading is supported, and seems to work correctly. (Tested with BPv4 as target - pic24fj256gb106).
69
General discussion / Re: rs232 driver
[quote author="tayken"]you can tap into the logic signals before rs232 driver if you can solder to some pins, pads or traces. ;)[/quote]

Of course you can. BUT! if you need to ask question about rs232 being compatible with TTL, you are probably not experienced enough to do so :-)

EDIT: And the answer to the RS232 being compatible with TTL is NO!, you will FRY something.
70
General discussion / Re: rs232 driver
I think it wont work!!! Arduino is 5/3.3 volt.

if the magnetic reader has rs232 driver on board it will only interface to rs232 and not directly to arduino!. You will probably fry something with 12/-12 volts.
73
Bus Pirate Development / Re: Bus Pirate firmware v6.1 development
This development cycle is starting to get really messy. To which source should I be adding features ?
Right now there are about 3-5 different branches for BPv4 (the one in SVN, JTR's 7 package, xsvf player, etc.)

Could someone merge them into one single project ?
74
Project logs / Re: "Diolan Plus" bootloader.
[quote author="JTR"][quote author="ian"]Nice work![/quote]
Why thank-you Sir. Thanks for putting me on to Robots loader. The code is so much better to work with than Diolan's.
[/quote]

Glad you found it usefull :-)

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