Wi-fi 6 and bluetooth low energy m.2 add-in card (13 pages)
Summary of Contents for Texas Instruments MSP-FET430
Page 1
MSP-FET430 FLASH Emulation Tool (FET) For use with IAR Workbench Version 3.x) r ' s 2004 User's Guide SLAU138A Mixed Signal Products...
Page 2
IMPORTANT NOTICE Texas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current and complete.
About This Manual This manual documents the Texas Instruments MSP-FET430 Flash Emulation Tool (FET). The FET is the program development tool for the MSP430 ultra low power microcontroller. Both available interfaces, the Parallel-Port-Interface and the USB-Interface, are described here. How to Use This Manual Read and follow the Get Started Now! chapter.
The information in a caution or a warning is provided for your protection. Read each caution and warning carefully. Related Documentation From Texas Instruments MSP430xxxx Device Data Sheets MSP430x1xx Family User’s Guide, SLAU049 MSP430x3xx Family User’s Guide, SLAU012...
Note: Kickstart is supported by Texas Instruments Although Kickstart is a product of IAR, Texas Instruments provides the support for it. Therefore, please do not request support for Kickstart from IAR. Please consult the extensive documentation provided with Kickstart before requesting assistance.
Read This First ... iii About This Manual ...iii How to Use This Manual ...iii Information About Cautions and Warnings ... iv Related Documentation From Texas Instruments... iv If You Need Assistance ... v FCC Warning ... v Contents ... vii Figures...
Page 10
Frequently Asked Questions... A-1 A.1 Hardware ... A-2 A.2 Program Development (Assembler, C-Compiler, Linker)... A-3 A.3 Debugging (C-SPY) ... A-5 Hardware... B-1 B.1 History of changes to MSP-TS430PM64 Target Socket module ... B-12 FET Specific Menus ... C-1 C.1 EMULATOR... C-2 C.1.1 EMULATOR->RELEASE JTAG ON GO ...
Page 11
Figures Figure 3-1. Signal connections for MSP-FET430X110..3-5 Figure 3-2. JTAG Signal Connections ...3-7 Figure A-1. Modification to FET Interface module ... A-7 Figure B-1. MSP-FET430X110, Schematic... B-2 Figure B-2. MSP-FET430X110, PCB Pictorials ... B-3 Figure B-3. MSP-FET430IF FET Interface module, Schematic ... B-4 Figure B-4.
This chapter will enable you to inventory your FET, and then it will instruct you to install the software and hardware, and then run the demonstration programs. Topic 1.1 Kit Contents, MSP-FET430X110 1.2 Kit Contents, MSP-FET430Pxx0 (‘P120, ‘P140, ‘P410, ‘P430, ‘P440) 1.3 Kit Contents, MSP-FET430UIF 1.4 Software Installation...
Get Started Now! 1.1 Kit Contents, MSP-FET430X110 One READ ME FIRST document. One MSP430 CD-ROM. One MSP-FET430X110 Flash Emulation Tool. This is the PCB on which is mounted a 20-pin ZIF socket for the MSP430F11xIDW, MSP430F11x1AIDW, or MSP430F11x2IDW device. A 25-conductor cable originates from the FET.
MSP-FET430P430: Eight PCB 1x20 pin headers (Four male and four female). MSP-FET430P440: Eight PCB 1x25 pin headers (Four male and four female). One small box containing two or four MSP430 device samples. MSP-FET430P120: MSP430F123IDW and/or MSP430F1232IDW MSP-FET430P140: MSP430F149IPM and/or MSP430F169IPM MSP-FET430P410: MSP430F413IPM MSP-FET430P430: MSP430F437IPN and/or MSP430FG439 MSP-FET430P440: MSP430F449IPZ...
Get Started Now! 1.6 Hardware Installation, MSP-FET430Pxx0 (‘P120, ‘P140, ‘P410, ‘P430, ‘P440) 1) Use the 25-conductor cable to connect the FET Interface module to the parallel port of your PC. 2) Use the 14-conductor cable to connect the FET Interface module to the supplied Target Socket module.
Page 17
3) Click on the tab at the bottom of the workspace window that corresponds to your tool (FETxxx) and desired language (assembler or C). 4) Use PROJECT->OPTIONS->FET Debugger->Setup->Connection to select the appropriate port: LPTx for the parallel FET Interface or TI USB FET for the USB Interface.
Get Started Now! 1.9 Important MSP430 Documents on the CD-ROM and WEB The primary sources of MSP430 information are the device specific data sheet and User’s Guide. The most up to date versions of these documents available at the time of production have been provided on the CD-ROM included with this tool.
Development Flow This chapter discusses how to use Kickstart to develop your application software, and how to use C-SPY to debug it. Topic Overview Using Kickstart 2.2.1 Project Settings 2.2.2 Creating a Project from Scratch 2.2.3 Using an Existing IAR V1.x/V2.x Project 2.2.4 Stack Management within the .xcl Files 2.2.5 How to Generate Texas Instrument .TXT (and other format) Files...
Development Flow 2.1 Overview Applications are developed in assembler and/or C using the Workbench, and they are debugged using C-SPY. C-SPY is seamlessly integrated into the Workbench. However, it is more convenient to make the distinction between the code development environment (Workbench) and the debugger (C-SPY). C- SPY can be configured to operate with the FET (i.e., an actual MSP430 device), or with a software simulation of the device.
The simulator will input a maximum of 4K bytes of code. A “Full” (i.e., unrestricted) version of the software tools can be purchased from IAR. A mid-featured tool set – called “Baseline”, with a 12K byte C code size limitation and basic floating-point operations – is also available from IAR. Consult the IAR web site (www.iar.se) for more information.
Page 22
Development Flow Enable the Device Description file. This file makes C-SPY “aware” of the specifics of the device it is debugging. This file will correspond to the specified target device (DEBUGGER->SETUP->DEVICE DESCRIPTION- >OVERRIDE DEFAULT) Enable the erasure of the Main and Information memories before object code download (FET DEBUGGER->SETUP->DOWNLOAD CONTROL->ERASE MAIN AND INFORMATION MEMORY) In order to maximize system performance during debug, disable Virtual...
Note: Avoid the use of absolute pathnames when referencing files. Instead, use the relative pathname keywords $TOOLKIT_DIR$ and $PROJ_DIR$. Refer to the IAR documentation for a description of these keywords. The use of relative pathnames will permit projects to be moved easily, and projects will not require modification when IAR systems are upgraded (say, from Kickstart, or Baseline, to Full).
Development Flow Note: How to add assembler source files to your project The default file type presented in the Add Files window is “C/C++ Files”. In order to view assembler files (.s43), select “Assembler Files” in the “Files of type” drop-down menu. 8) Configure the project options (PROJECT->OPTIONS).
system stack within C programs. CSTACK can also be used in assembler programs [MOV #SFE(CSTACK), SP]. CSTACK is defined to extend from the last location of RAM for 50 bytes (i.e., the stack extends downwards through RAM for 50 bytes). Other statements in the .xcl file define other relocatable regions that are allocated from the first location of RAM to the bottom of the stack.
Page 26
Development Flow Note: Some example programs require a 32KHz crystal on LFXT1, and not all FETs are supplied with a 32KHz crystal.
2.3 Using C-SPY Refer to Appendix C for a description of FET-specific menus within C-SPY. 2.3.1 Breakpoint Types The C-SPY breakpoint mechanism makes use of a limited number of on-chip debugging resources (specifically, N breakpoint registers, refer to Table 2-1 below).
Development Flow The RUN TO CURSOR operation temporarily requires a breakpoint. Consequently, only N-1 breakpoints can be active when RUN TO CURSOR is used if virtual breakpoints are disabled. Refer to FAQ, Debugging #31). If, while processing a breakpoint, an interrupt becomes active, C-SPY will stop at the first instruction of the interrupt service routine.
2.3.4 Using Watch Windows The C-SPY Watch Window mechanism permits C variables to be monitored during the debugging session. Although not originally designed to do so, the Watch Window mechanism can be extended to monitor assembler variables. Assume that the variables to watch are defined in RAM, say: RSEG DATA16_I varword ds 2 ;...
Design Considerations for In-Circuit This chapter presents signal requirements for in-circuit programming of the MSP430. Topic 3.1 Bootstrap Loader 3.2 External Power 3.3 Device Signals 3.4 Signal Connections for In-System Programming and Debugging, MSP-FET430X110 3.5 Signal Connections for In-System Programming and Debugging, MSP-FETP430IF, MSP-FET430UIF Chapter 3 Programming...
Refer to the MSP430 web site for the Application Notes and a list of MSP430 3 Texas Instruments suggests that MSP430Fxxx customers design their circuits with the BSL in mind (i.e., we suggest providing access to these signals, e.g.
Page 33
Design Considerations for In-Circuit Programming levels accordingly). Again, refer to the Target Socket module schematic in Appendix B.
Design Considerations for In-Circuit Programming 3.3 Device Signals The following device signals should be brought out (i.e., made accessible) so that the FET, GANG430, and PRGS430 tools can be utilized: RST/NMI TEST† Notes: Design considerations to support the FET, GANG430, and PRGS430 1) Connections to XIN and XOUT are not required, and should not be made.
Design Considerations for In-Circuit Programming 3.4 Signal Connections for In-System Programming and Debugging, MSP- FET430X110 With the proper connections, you can use the C-SPY debugger and the MSP- FET430X110 to program and debug code on your own target board. In addition, the connections will support the GANG430 and PRGS430, thus providing an easy way to program prototype boards, if desired.
Design Considerations for In-Circuit Programming Disconnect if target has it's own 'local' power source TDO/TDI Test RST/NMI 14 pos. header (3M p/n 2514-6002) (Digi-Key p/n MHB14K-ND) *** Pulldown not required on all devices. Check device datasheet pin description. Note: Connection to XOUT is not required No JTAG connection is required to the XOUT pin of the MSP430 as shown on some schematics.
Design Considerations for In-Circuit Programming 3.5 Signal Connections for In-System Programming and Debugging, MSP- FETP430IF, MSP-FET430UIF With the proper connections, you can use the C-SPY debugger and an FET hardware JTAG interface such as the MSP-FETP430IF and MSP-FET430UIF to program and debug code on your own target board. In addition, the connections will support the GANG430 or PRGS430, thus providing an easy way to program prototype boards, if desired.
Design Considerations for In-Circuit Programming Connect if target has it's own 'local' power source Connect to power target from FET or GANG430 if not using a local power source TDO/TDI CC(FromTool) CC(Local Sense) Test RST/NMI 14 pos. header (3M p/n 2514-6002) (Digi-Key p/n MHB14K-ND) *** Pulldown not required on all devices.
Frequently Asked Questions This appendix presents solutions to frequently asked questions regarding hardware, program development, and debugging tools. Topic A.1 Hardware A.2 Program Development (Assembler, C-Compiler, Linker) A.3 Debugging (C-SPY) Appendix A Page...
Frequently Asked Questions A.1 Hardware 1) The state of the device (CPU registers, RAM memory, etc.) is undefined following a reset. Exceptions to the above statement are that the PC is loaded with the word at 0xfffe (i.e., the reset vector), the status register is cleared, and the peripheral registers (SFRs) are initialized as documented in the device Family User’s Guides.
low power mode is restored (using GO). This behavior appears to happen on all devices except the MSP430F12x. 12) The following ZIF sockets are used in the FET tools and Target Socket modules: 20-pin device (DW package): Wells-CTI 652 D020 28-pin device (DW package): Wells-CTI 652 D028 64-pin device (PM package): Yamaichi IC51-0644-807 80-pin device (PN package): Yamaichi IC201-0804-014...
Page 42
Workbench. Refer to the Assembler Language Interface chapter of the C/C++ Compiler Reference Guide from IAR. 10) The Workbench can produce an object file in Texas Instruments .TXT format. C-SPY cannot input an object file in Texas Instruments .TXT format.
Optimization: NONE is supported within PROJECT->OPTIONS- >C/C++ COMPILER->CODE->OPTIMIZATIONS. Alternatively, variables can be declared volatile. 16) The IAR Tutorial assumes a Full or Baseline version of the Workbench. Within a Kickstart system, it is not possible to configure the C compiler to output assembler mnemonics. 17) Existing projects from an IAR 1.x system can be used within the new IAR 2.x/3.x system;...
Page 44
Frequently Asked Questions software can prevent the C-SPY/FET driver from accessing the parallel port, and, hence, communicating with the device. It may be necessary to reboot the computer to complete the installation of the required parallel port drivers. Revisions 1.0, 1.1, and 1.2 of the FET Interface module require a hardware modification;...
Frequently Asked Questions For revisions 1.0, 1.1, and 1.2 of the FET Interface module, install a 0.1uF capacitor between the indicated points (pins 4 and 5 of U1). 0.1u Figure A-1. Modification to FET Interface module...
Page 46
Frequently Asked Questions 2) C-SPY can download data into RAM, INFORMATION, and Flash MAIN memories. A warning message is output if an attempt is made to download data outside of the device memory spaces. 3) C-SPY can debug applications that utilize interrupts and low power modes.
Page 47
the JTAG pins and the measurements will be erroneous. Refer to FAQ, Debugging #12) and Hardware #11). 11) Most C-SPY settings (breakpoints, etc.) are now preserved between sessions. 12) When C-SPY has control of the device, the CPU is ON (i.e., it is not in low power mode) regardless of the settings of the low power mode bits in the status register.
Page 48
Frequently Asked Questions (RESYNCHRONIZE JTAG)) and before C-SPY has regained control of the device that the device will execute normally. This behavior may have side effects. Once C-SPY has regained control of the device, it will perform a reset of the device and retain control. 19) When programming the Flash, do not set a breakpoint on the instruction immediately following the write to Flash operation.
Page 49
26) On devices equipped with a Data Transfer Controller (DTC), the completion of a data transfer cycle will preempt a single step of a low power mode instruction. The device will advance beyond the low power mode instruction only after an interrupt is processed. Until an interrupt is processed, it will appear that the single step has no effect.
Page 50
Frequently Asked Questions 35) Special Function Registers (SFRs) – or the peripheral registers – are now displayed in VIEW->REGISTER; there is no longer an SFR Window. 36) The putchar()/getchar() breakpoints are set only if these functions are present (and the mechanism is enabled). Note that putchar()/getchar() could be indirectly referenced by a library function.
Page 51
This appendix contains information relating to the FET hardware, including schematics and PCB pictorials. Topic Figure B-1. MSP-FET430X110, Schematic Figure B-2. MSP-FET430X110, PCB Pictorials Figure B-3. MSP-FET430IF FET Interface module, Schematic Figure B-4. MSP-FET430IF FET Interface module, PCB Pictorial Figure B-5. MSP-TS430DW28 Target Socket module, Schematic Figure B-6.
Ensure value is 82 ohms Jumper J1 Open to measure current P2.1 XOUT P2.5 P2.2 P2.0 Figure B-2. MSP-FET430X110, PCB Pictorials P2.4 P1.1 P2.3 P1.0 Hardware Connector J4 External power connector LED connected to P1.0 Jumper J5 Open to disconnect LED Orient Pin 1 of MSP430 device P1.3...
Hardware Note: Connections between the JTAG header and pins XOUT and XIN are no longer required, and should not be made. Figure B-5. MSP-TS430DW28 Target Socket module, Schematic...
Jumper J4 Open to disconnect LED Connector J3 External power connector Remove R8 and jumper R9 Orient Pin 1 of MSP430 device Figure B-6. MSP-TS430DW28 Target Socket module, PCB Pictorials Hardware LED connected to P1.0 Jumper J5 Open to measure current...
Hardware Note: Connections between the JTAG header and pins XOUT and XIN are no longer required, and should not be made. Figure B-7. MSP-TS430PM64 Target Socket module, Schematic, Rev. 1.0...
Jumper J6 Open to disconnect LED Orient Pin 1 of MSP430 device Figure B-8. MSP-TS430PM64 Target Socket module, PCB Pictorials, Rev. 1.0 Hardware Jumper J7 Open to measure current LED connected to pin 12 Connector J5 External power connector Remove R8 and jumper R9...
Hardware Note: Connections between the JTAG header and pins XOUT and XIN are no longer required, and should not be made. Figure B-9. MSP-TS430PM64 Target Socket module, Schematic, Rev. 1.1 B-10...
LED connected to pin 12 Jumper J7 Open to measure current Jumper J6 Open to disconnect LED Orient Pin 1 of MSP430 device Figure B-10. MSP-TS430PM64 Target Socket module, PCB Pictorials, Rev. 1.1 Hardware Connector J5 External power connection Remove R8 and jumper R9 B-11...
Hardware B.1 History of changes to MSP-TS430PM64 Target Socket module Changes from Rev. 0.1 to 1.0: Connector J5 for external power was added Connectors FETJ2 and FETJ3 were removed C8 was changed from 100nF to 10nF R5 was changed from 100k to 47k R13 and R14 were added to support BSL usage on F413.
Hardware LED connected to pin 12 Jumper J6 Open to disconnect LED Orient Pin 1 of MSP430 device Figure B-12. MSP-TSPN80 Target Socket module, PCB Pictorials B-14 Jumper J7 Open to measure current Connector J5 External power connection Remove R8 and jumper R9...
Hardware Note: Connections between the JTAG header and pins XOUT and XIN are no longer required, and should not be made. Figure B-13. MSP-TSPZ100 Target Socket module, Schematic B-15...
Hardware LED connected to pin 12 Connector J5 External power connection Remove R8 and jumper R9 Orient Pin 1 of MSP430 device Figure B-14. MSP-TSPZ100 Target Socket module, PCB Pictorials B-16 Jumper J6 Open to disconnect LED Jumper J7 Open to measure current...
FET Specific Menus This appendix describes the C-SPY menus that are specific to the FET. Topic EMULATOR C.1.1 EMULATOR->RELEASE JTAG ON GO C.1.2 EMULATOR->RESYNCHRONIZE JTAG C.1.3 EMULATOR->INIT NEW DEVICE C.1.4 EMULATOR->SHOW USED BREAKPOINTS C.1.5 EMULATOR->ADVANCED->GENERAL CLOCK CONTROL C.1.6 EMULATOR->ADVANCED->EMULATION MODE C.1.7 EMULATOR->ADVANCED->MEMORY DUMP C.1.8 EMULATOR->ADVANCED->BREAKPOINT COMBINER C.1.9 EMULATOR->STATE STORAGE...
FET Specific Menus C.1 EMULATOR The current device type is displayed. C.1.1 EMULATOR->RELEASE JTAG ON GO C-SPY uses the device JTAG signals to debug the device. On some MSP430 devices, these JTAG signals are shared with the device port pins. Normally, C- SPY maintains the pins in JTAG mode so that the device can be debugged.
Refer to Appendix D. C.1.7 EMULATOR->ADVANCED->MEMORY DUMP Write the specified device memory contents to a specified file. A conventional dialog is displayed that permits the user to specify a file name, a memory starting address, and a length. The addressed memory is then written in a text format to the named file.
FET Specific Menus C.1.14 EMULATOR->GIE on/off Enables or disables all interrupts. Needs to be restored manually before GO. C.1.15 EMULATOR->LEAVE TARGET RUNNING If C-SPY is closed, the target keeps running the user program. C.1.16 EMULATOR->FORCE SINGLE STEPPING On GO the program is executed by single steps. Only in this mode the cycle counter works correctly.
Appendix D 80-pin MSP430F44x and MSP430F43x Device Emulation 80-pin MSP430F44x and MSP430F43x devices can be emulated by the 100-pin MSP430F449 device. Table D-1. F4xx/80-pin Signal Mapping lists where the pin signals of an 80- pin device appear on the pins of an MSP-TS430PZ100 Target Socket module.
TI to IAR 2.x/3.x Assembler Migration Texas Instruments made a suite of development tools for the MSP430, including a comprehensive assembler and device simulator. The source of the TI assembler and the source of the Kickstart assembler are not 100% compatible;...
For detailed descriptions of each directive, refer to either the MSP430 Assembly Language Tools User’s Guide, SLAUE12, from Texas Instruments, or the MSP430 Assembler User’s Guide from IAR. Note: Only the assembler directives require conversion Only the assembler directives require conversion - not the assembler instructions.
consecutive backslashes (\\). In Asm430 syntax, a quote is represented by two consecutive quotes (“”). See examples below: Character String PLAN “C” \dos\command.com Concatenated string (i.e. Error 41) E.2.3 Section Control Directives Asm430 has three predefined sections into which various parts of a program are assembled.
TI to IAR 2.x/3.x Assembler Migration E.2.4 Constant Initialization Directives Description Initialize one or more successive bytes or text strings Initialize a 48-bit MSP430 floating-point constant Initialize a variable-length field Initialize a 32-bit MSP430 floating-point constant Reserve size bytes in the current section Initialize one or more text strings Initialize one or more 16-bit integers The 48-bit MSP430 format is not supported...
E.2.6 File Reference Directives Description Include source statements from another file Identify one or more symbols that are defined in the current module and used in other modules Identify one or more global (external) symbols Define a macro library Identify one or more symbols that are used in the current module but defined in another module The directive .global functions as either .def if the symbol is defined in the current module, or .ref...
TI to IAR 2.x/3.x Assembler Migration ENDR ENDM Additional A430 Directives (IAR) Repeatable block assembly: Formal argument is substituted by each character of a string. Repeatable block assembly: formal argument is substituted by each string of a list of actual arguments. See also Preprocessor Directives E.2.8 Symbol Control Directives...
E.2.9 Macro Directives Description Define a macro Exit prematurely from a macro End macro definition Additional A430 Directives (IAR) Create symbol, local to a macro In Asm430 local symbols are suffixed by a question mark (?). E.2.10 Miscellaneous Directives Description Send user-defined error messages to the output device Send user-defined messages to the output...
TI to IAR 2.x/3.x Assembler Migration Additional A430 Directives (IAR) Assign a value to a preprocessor symbol Undefine a preprocessor symbol Conditional assembly Assemble if a preprocessor symbol is defined (not defined) End a #if, #ifdef or #ifndef block Includes a file Generate an error E.2.12 Alphabetical Listing and Cross Reference of Asm430 Directives...
Page 89
LSTPAG (+/-) LSTXREF (+/-) TI to IAR 2.x/3.x Assembler Migration #if, #else, #elif #ifdef, #ifndef #endif #include #error COMMON STACK ALIGN...
Appendix F MSP-FET430UIF Installation Guide This section describes the hardware installation process of the MSP- FET430UIF USB debug interface on a PC running Windows XP. The installation procedure for a Windows 2000 system is very similar and therefore not shown here. Topic Page F.1 Hardware Installation...
MSP-FET430UIF Installation Guide F.1 Hardware Installation 1) Connect the MSP-FET430UIF USB Debug Interface with a USB cable to a USB port of your PC 2) Windows now should recognize the new hardware as an “MSP430 USB FET x.xx.xx” (Figure F-1). Figure F-1.
Figure F-3. WinXP Driver Location Selection Folder 6) The Wizard should generate a message that an appropriate driver has been found. 7) Note that WinXP shows a warning that the driver is not certified by Microsoft. Ignore this warning and click “Continue Anyway” (Figure F-4).
9) The Wizard now shows a message that it has finished the installation of the software for “MSP430 USB FET Adapter”. 10) After closing the Hardware Wizard, Windows automatically recognizes another new hardware device called “Texas Instruments UMP Serial Port”. 11) Depending on the current update version of the OS corresponding drivers are installed automatically or the Hardware Wizard pops up again.
Need help?
Do you have a question about the MSP-FET430 and is the answer not in the manual?
Questions and answers