Skip to main content

Show Posts

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

Messages - rwgast

1
Bus Pirate Support / Frequency counter to 40mhz? problems....
So im trying to measure the output of a TCXO that my cheap usb scope isnt fast enough for, its a 28.8mhz tcxo. Everytime I connect the groung and the blue AUX cable I get 0hz in normal or open collector mode.... I know the TCXO isworking in the hardware, can the BP just not measure sign waves? If so that should be mentioned in the manual
2
Pirate PIC programmer / Re: Newb needs some advice on getting started with PICs
Thanks for the picgm tip! If I decide I like PICs I will either invest time in building on of the parallel programmers listed there or buy an actual PicKit

Last night I ordered 3 each of PIC18F24J50, and PIC24FJ64GA002. I got these because I read the PIC programming wiki for the BP and as far as I can tell there are only three supported PICs at the moment and the two I ordered are do not require Hi Voltage programming. I am a bit confused though, there are a few PIC24F chips I would like to try do to there peripherals but the BP can only program 3 chips at this time??! That just seems strange since there is an add on board to program Hi Voltage PICs.

I figured maybe I could start by trying to upload the Bus Pirate bootloader/firmware using a bus pirate  :). Then just stick a max3232 chip on it instead of an FTDI and have serial BP! Or even use an FTDI cable. Would this work? It would be really nice to be able to do this and then install the stk500 firmware so I a decent AVR programmer that works with the AVRStudio IDE.
4
Pirate PIC programmer / Re: Newb needs some advice on getting started with PICs
Hi again, Im sorry I should have looked a little bit further down the forum I just read this post

viewtopic.php?f=38&t=3949

It answered most of my questions, So I guess all I really need to know is how relevant will Pics for Evil Geniuses based on PicKit 1 and the 16 series pic be code wise for pic 24s? And also what would be a good pic in dip format with an internal oscillator to start with. I am really interested in using PIC as a platform to learn assembly.

I know that the BP is not the best choice for a programmer, like I said Im just looking to experiment with PIC chips and see if it is worth it to learn another architecture.
5
Pirate PIC programmer / Newb needs some advice on getting started with PICs
So I have been tinkering with micros and electronics for the last year or so. I am currently working on two kind of bigger projects, a mapping robot with DIY laser range finder and an entry for a military/parallax sponsored contest called MicroMedic (It is basically an automated hydration pack that reads the users hydration levels). Anyways these projects both keep growing and growing, I find myself adding more and more micro controllers to them.

I currently have experience with the Parallax Propeller, Parallax Basic Stamp, Arduino, and Bare AVR chips. The problem is most of these solutions are a bit pricey, it costs me around 5 - 12 bucks for all the stuff to get one of these controllers running (except an Attiny type chip but these are very limited). From looking around it seems like a PIC is a really cheap solution compared to AVR, I am also pretty broke most of the time and MicroChip is awesome about free samples, where as AVR is not. Anyways that being said I can't afford to just run out and buy a PicKit right now.

I am basically hoping to just get started using smaller PICs in place of AVR chips where it makes sense. I currently have a Bus Pirate, I also have an AVR USBISP programmer, and I just saw this viewtopic.php?f=38&t=3786 Im not sure if this allows a USBAsp/ISP to program a PIC or what? I know a BP can not program older PICs that require high voltage with out the add on but I am not to interested in those any ways. If I were to sample some PIC chips what would be a good choice? I know the pic24s can be programmed with a BP, what about dsPic and Pic32? I have some books on older pic16/18 assembly and c, would the code in those be compatible with a newer pic24, how about projects online using a pic16, could there firmware be easily ported to a newer PIC?

I guess what I am saying is I have a BP and I want to learn how to use PICs without running out and getting a PICKit, where should I start?
6
AVRDude / Re: STK500v2 not working in AVR Studio
Here is the exact problem

Timestamp:   2012-10-31 01:17:57.015
Severity:      ERROR
ComponentId:   20100
StatusCode:   1
ModuleName:   TCF (TCF command: Tool:connect failed.)

Failed to open COM10. Error 0x2.
7
AVRDude / STK500v2 not working in AVR Studio
Ok so I am trying to build this

http://www.ikalogic.com/scanalogic-the-beginning/

the schematic is there showing how the ISP connection is wired to the chip. I wanted to try the STK500 firmware becuase I thought it would be nice to program my chip straight through AVRStudio and elminate AVRDude, flashing the BP back and forth as needed is no skin of my back, I hate USBAsp and I hate AVRDude so this STK500 firmware is really cool for someone like me. Anyways I flashed the STK500v2 Hi-Z package (im guessing this is what I needed since im not working with 3.3v) and then connected my bus pirate to the ISP on the schematic above using the Bus pirate programming connections table found here

http://dangerousprototypes.com/docs/Bus ... rogramming

I left my board unplugged and then connected the BPs +5 and GRND to the ISP header. I opened AVRStudio and then selected add new STK500 on com10, then selected Atmega16A and ISP, when I hit apply I AVR Studio tells me it can not communicate with an STK500 on com10, Im positive this com port is right .

Can someone tell me why I cant get this working, im kind of bumed out :/. Im not sure if this makes any difference but once ive loaded the firmware for the STK500 the vreg light stays on and I can no longer log in with putty I have to manually jump the board to get it back in to bootloader mode.
8
Bus Pirate Support / Bus pirate Scripting PWM, pdf manual?
Ok so ive had my bus pirate for a while and have ocasionally used it when working with uart. I know the thing is much more powerfull than that you can use it to test new chips to correct, lets say I wanted to play with some i2c thermometers I got it can do that too correct?

Right now Ive been working on a robot and am mostly doing the mechanical and electrical side not code. So for instance id like to test my bots turning and acceleration all that jazz, I know the BP has a PWM function i used it a while back. Im wondering how I could automate PWM and do some basic ramping or something with the bus pirate. Im looking to feed signals to two motors through an h bridge, theres 2 inputs for each motor, that need a PWM is there any way to pull this off, or even be able to get four wires from the BP to be hi or low depending on my script?

Also is there a PDF or something for the BP manual? what language is the scripting done in? Im wondering if my basic stamp is gonna be the best way to do quick testing, I like the BP though becuase its so much smaller
9
Bus Pirate Support / Re: Uart & Jtag Voltages?
Ok so heres the deal. I probed the serial ports with the auto baud macro. And this is what I got every time

UART>(4)
Waiting activity...
**Baud>16m: BP Cannot measure > 16000000, Done.

So does this mean the uart is trransmitting at 16million baud or more and the bp cant read it?

@matseng Im trying to fix a straight talk optimus q l55c. The phones not super new but there isnt alot of info out there on it either. The only way to fix it is either to upload a certain apk to the /system/apps or to flash a bootloader that supports ROMs. I was hoping to find a serial debug shell ive seen on a few other android phones. Looks like im going to have to learn how to set up jtag.... I know the BP isnt the best jtag programmer but I dont use Jtag for anything else and picked up the BP hoping to use it for all kinds of stuff and figured it would do jtag as a last resort
10
Bus Pirate Support / Re: Uart & Jtag Voltages?
Ok well thank you so much i dont know why but I read a  review saying it could only go down to 3.3v logic and it just stuck with me, I should have known better thats what open collectors are for...

Anyways I finally found something that spits characters over the terminal when i probe it to the UART Input on the pirate! Its 1.8v output and its just spewing junk clearing the screen and then spewing more junk over and over again! Now I havent went through all the baud setting yet ive only tried serial defaults at 115200 and 9600 baud. I guess my question is could this be something other than a UART and still be read by the BP in UART mode? And what is the beat way to go about figuring out what the right UART setting for this port is? Will a frequency counter or logic analyzer maybe help me out??
11
Bus Pirate Support / Uart & Jtag Voltages?
I recently ordered the bus pirate to help assist me in fixing a bricked cell phone. Im no EE but i am semi capable with electronics and build micro controller based projects quite a bit, so im not stupid either!

I was hoping to find a debug console via uart in the phone somewhere. I got the pirate because I believed that it worked from 0-5.5vs apparently for uart this is not true... it is only good down to 3.3v. Well it turns out the phones logic is 2.5v. Ive used the pirate to brobe around the phone quite a bit and havent found any UART serial, havent even picked up a garbage stream. My question is, is this becuase of the 2.5v logic level? I built a 3.3v logic analyzer and it still works fine with 2.5v logic becuase the propeller chip i use still reads 2.5v as hi in its spec, so im kind of trying to figure out if I havent found a serial console becuase there isnt one or becuase the voltages arent within the pirates tolerance.

Secondly I know nothing about JTAG have never tried to use it. Im hoping if I can not find a serial console that I can use the BP to connect to the phone via JTAG. Ive alread found out the chipset is works with openOCD and ive got a pic of the jtag pinout, will the jtag work at 2.5v? and i need to flash a different firmware for jtag correct?