Where do I go from here (electronics)?

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Modelworks

Lifer
Feb 22, 2007
16,240
7
76
I got the stuff in. The JTAG looks nothing like the ICE JTAGS I used before.

I thought there would be some documentation with this. There is none other than a schematic that you need a password to access. I guess that is the reason why TI charges up the but for their products. There is documentation on loading the Arduino bootloader, but nothing on what to do if you want to load the original bootloader back (I have no interest in Arduino). Can you even load code via USB if it is not Arduino because it seams like if you do not use Arduino, there is no USB driver for it.

Looks like I will spend a better part of today trying this out. Wish me luck.

The JTAG design is based on the OPenJtag project. You can read more about it here.
http://www.openjtag.org/


To load the arduino bootloader back you have to use the JTAG.
The way USB works on all ARM devices is you have to program it before it can be used. This is just how embedded development works. The board is the chip and the peripherals with a blank slate. The ARM chip doesn't know how to do anything, not even blink an LED without you telling it how.

You start by writing your code in the IDE and uploading that to the ARM board with the JTAG. You get to decide what you want that USB port to be. It can be a keyboard device, mouse, storage, those are the default USB classes that windows has drivers for. Anything else like a custom device you have to write the USB code for. If you want ethernet, you have to write the code to use that and implement the TCP stack code.

It is a long learning process and may seem daunting at first so I would start small. Start by writing a program to blink and LED on and off and go from there.

For an IDE , I like CooCox
http://www.coocox.com/CooCox_CoIDE.htm

Download and install, setup for openjtag under the debugger options.
Then under help follow the tutorial on the quick start but select the ST chip .
 

Gibson486

Lifer
Aug 9, 2000
18,378
2
0
That is fine. I just did not want to put the work into usb communications if it was already there. I actually implimented communications to a dsp board over a pci pus, so I am sort of famailiar of what I have to do driver wise if I wanted to not use a jtag.

Sent from my HTC mytouch using Tapatalk
 

exdeath

Lifer
Jan 29, 2004
13,679
10
81
You can use a FTDI chip and just treat USB like RS232 if you don't want to deal with USB. But it sounds like no matter what you do you still have to write monitor code in ARM to handle basic communications and bootstrapping over USB. Usually those kinds of boards come with a CD with all sorts of modules and examples, none of those have a USB core you can reuse?
 
Last edited:

Gibson486

Lifer
Aug 9, 2000
18,378
2
0
You can use a FTDI chip and just treat USB like RS232 if you don't want to deal with USB. But it sounds like no matter what you do you still have to write monitor code in ARM to handle basic communications and bootstrapping over USB. Usually those kinds of boards come with a CD with all sorts of modules and examples, none of those have a USB core you can reuse?

That is what I thought, but it came with nothing. I have no issue writing code to do it, but I was kind of surprised it did not even have any sample code. All of the USB stuff they let you download is if you want to do the Adruino stuff. I really have no interest in learning that. Maybe I can find a way to modify TI's driver for their board...That said, I am actually more interested in learning how to program the stuff to communicative via Ethernet...not really to program it, but to just pass parameters over Ethernet so I can record them onto any computer that wants the info it is capturing.