Other Parts Discussed in Thread: MSP430F5529, MSP430F5528
Hello,
First of all, the purpose of this question is to get general understanding of MCU programming/debugging.
I don't actually expect to get some in depth answers, but still, some general info, or maybe references to some useful resources for further studying.
Hope, you won't get too bored of reading my post ^_^
My background is: third year EE student, recently took Microcontroller Lab.
At this lab we work with: MSP-EXPFG4618 board. (page link: http://www.ti.com/tool/msp-exp430fg4618)
I also have MSP430 LaunchPad and MSP430-EXPFR5739 boards at home.
For now, I have some really basic understanding of "how the stuff works", among them: leds, timers, DAC/ADC outputs and etc.
Now for the question itself:
In the class we use FET "Debugger" - MSP-FET430IF (link: http://www.ti.com/graphics/tool/msp-fet430uif.jpg) to connect the board and the PC. Unlike MSP430 LaunchPad or FR5739 boads, which have direct USB connection, cause they have emulation circuit on them.
So, till now everything is mostly understandable:
1) I write some code on CCS.
2) Then I connect my board to it via FET debugger or directly via USB.
3) The code is translated to binary and gets to board memory.
4) Everything works fine (hopefully ^_^).
Form this point forward things got bit complicated for me.
The first question raised when I asked myself, how to load the data to MCU when I do not have those "starter boards" with the emulation circuits?
For example: MSP430 Launchpad has two detachable MCU chips (M430G2454 and M430G2353), let's assume for the moment, that I bought those for some prototyping work. So I have CCS software for coding, some passive components (like resistors, caps, transistors), and that's all. Is it possible to transfer my code to MCU? If yes, how it is done? The same question may be implemented to FR5739 CPU (when bought separately).
Furthermore I got similar questions when I "scavenged" for some old TV and Microwave boards, and found some 8bit/4bit MCUs mounted on them.
For example: Toshiba -something like TMP87CK38N (8bit MCU), so I went to Toshiba site, and found some datasheets for similar 8bit MCU. They also offer a programming software like CCS, but there was no info regard to how actually load all my code to the MCU.
I googled more and found some
"Debug Probes" (by iAR and for the rich people ^_^): JTAGjet for ARM7911C and so on.
link (not for add purpose): https://www.iar.com/Products/E-shop/
There were, some "Programming Adapters" like this one: http://www.wvshare.com/product/GP-QFP144-0.5.htm
One addition thing, I found some info about PIC Micro-controllers, they are producing special boards for programming they chips.(link: http://www.wvshare.com/column/PIC_DevelopmentBoard.htm)
So finally I got tally frustrated and lost, between all these stuff.
In general, I would like to know:
1) How to load data(code) to MCU itself when it bought separately for prototyping projects?
For example: for LaunchPad or FR5739 or some Stellaris CPU's or even DSPs.
2) What is JTAG Debugger? I read some WiKi, and if I get them right, JTAG is used for some
verification/debugging and additional checks (of what?).
Especially those debuggers sold by iAR, why are they
so expensive and what are they used for (data(code) transfer or something else)?
3) Do I must use, those RF connections or there is some possibility to load the code via USB cable only?
4) When UART comes to the game?
I really hope, that my questions are clear and understandable.
Any help, will be greatly appreciated.
Thanks in advance,
Ivan.
or "Programming Adapters"