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 - rwgast
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.
Are these the only chips the BP will program without the adapter?
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.
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?
Timestamp: 2012-10-31 01:17:57.015
ModuleName: TCF (TCF command: Tool:connect failed.)
Failed to open COM10. Error 0x2.
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.
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
**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
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??
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?