This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F6638 BSL issue

Other Parts Discussed in Thread: MSP430F6638

Hello. can't burn fimware to the MSP430F6638. i've developed my own devel board to learn how to work with this MCU ( if needed, write me and i'll upload Sprint-Layout PCB to any resourse you say), but when i'm trying to burn firmware using IAR kickstart or CSS5 i'm getting "device  does not recognized or not supported", i've doublechecked soldering, powering, etc. - no mistakes. my pcb is a sort of clone of TS430PZ100USB with the very same elements,on XT1 i've set 32Khz, and on XT2 tryed to set 12MHz and 4 MHz, currently no OSC on XT2, tryed to change VCCORE capacitor from 470nF to 470pF, battery pin connected to VCC. as i understand BSL includes led flashing sample on P1.0, and when i'm powering up my MCU the led is blinking, so MCU is starting properly, i'm using launchpad to program target device using pins on target MCU:reset, test, vcc, ground and p1.1 - p.1.2 for TX and RX. i've tryed to swap tx-rx with no result. tested all tracks from MCUs' pins to PLS-connectors and cable - no mistakes. launchpad is working perfectly with 5529 and 5508 series of MSP430, both PCBs made and soldered by myself. can someone please point me what can i do to program this MCU using launchpad. maybe this MCU using another pins to program? i've added button to enter USB BSL but when i'm pressing it while powering up i'm getting "USB device not recognized" in windows 8. usb connection again is the same as on TS430PZ100USB, id-pin of connecter is not soldered. thanz for any advice.

  • Hi Sergey,

    it is not clear whether you want to program the MSP430F6638 using BSL or JTAG. If you are using IAR and CCS, you probably need to use the MSP-FET430UIF to program the device via JTAG.

    The MSP430F6638 itself comes with USB BSL (not the UART BSL - so that you can't program it via UART with Launchpad - probably you are using the SLAA535A) and the USB BSL needs a 4 MHz crystal attached at XT2.

    Hope this helps.

  • yes. i want to program using UART BSL, as i know launchpad can program targets only using UART BSL). i've already tryed to solder 4MHz ceramic resonator with no luck - i'm getting USB device not recognized in windows, usually this means D+ and D- swapped , or USB part of firmware is not correct. Is D+ pin of the MCU must be connected to D- of theminiUSB(female) connector? all my other MCUs(stm, microchip and atmel) connected D+ to D+ D- to D- and all works fine. 

    IAR and CCS... not sure what you mean but in last versions i can select FET (launchapad) as programmer an successfully programmed these way 5-series msp-430 MCUs via UART BSL. anyway thanx for the answer.

    littlebit offtop - why 5-series with usb preprogrammed with UART BSL and 6-series preprogrammed with USB BSL?

  • Sergey Goncharov1 said:
    yes. i want to program using UART BSL,

    Then you have to replace the default USB BSL by teh optional UART BSL fist, either by using a real FET or by using the USB BSL (if this is possible at all).
    Only after you replaced the BSL, you can use UART BSL to program this chip.

  • What do you mean by "real FET" ? i thought launchpad is a FET extended with two buttons, connectors and dip-panel for 2-series MCUs, there's even dot-line to cutout part of the PCB with connectors and DIP. not sure how it works for msp430 but for all other MCUs ( STM, Atmel, Microchip) Bootloader can't be reprogrammed through the bootloader, only JTAG can help. anyway thanx, i think it's time to dig deeper into datasheets and manuals )) thanx again and good luck. and sorry for silly questions.

  • Sergey,

    what JMG meant with "real FET" is the MSP-FET430UIF: http://www.ti.com/tool/msp-fet430uif. It is a hardware tool which can be used to program MSP430 device via JTAG with IDE like CCS and IAR.

  • Sergey Goncharov1 said:
    What do you mean by "real FET" ? i thought launchpad is a FET extended with[...]


    Well, the LaunchPad (MSP-EXP430G2) FET, or rather, all FETs on EXP430xxx boards, are stripped-down versions of a full-featured FET like the FET430UIF or the MSP430GANG or similar.

    The FET430UIF supports all MSPs, 4-wire JTAG and SBW, has an adjustable voltage source to power the  target baord from USB or adjust it's I/O voltages to the ones of a self-powered target. On the downside it is expensive, and doesn't support the backchannel UART. SImply because it's 14 pin JTAG header standard was done before the backchannel UART was developed.

    However, regarding your problem, I was just meaning that you maybe need JTAG (FETUIF or maybe a rewired LaunchPad, if the LaunchPad FET supports the 6638) to replace the USB-BSL. In opposition to using the USB-BSL for replacing itself.

  • launchpad does not support jtag, no rewiring will help.there are JTAG pins as TIPs on PCB but they are only fot inner purposes of device, not sure what it means but someone tryed already to use launchpad as jtag programmer with no success. another person says USB integrated MCUs from TI may contain both BSLs UART and USB but default is USB, and noone knows how to change it and even is this true or empty shoughts - topic on forum is dead or leads to shops with  JTAG-programmers...i think it will be only one option in my case and chipier to make JTAG programmer for this purpose by myself, in Russia all MCU related stuff costs great amount of money(depending on our salaryes), often double cost as it in USA and for me it's only hobby so spending another 100-150$ for programmer is too much)). if protocol is open documented,i've briefly looked some documents about programming TI microcontrollers and it seems making own programmer is possible..., i've already made POC (proof-of-cocept) parallel programmer and jtag programmer for atmel 8,32-bit. making another programmer will be a good riddle and challenge ))   one thing i can't understand is why this MCU does not start USB BSL correctly with 4 or 12 MHz resonator and pulled-up PUR,  currently i'm powering appropriate USB pin on MCU via 5-to-3.3 AMS117, i'm always getting "usb device not recognized".

  • Sergey Goncharov1 said:
    launchpad does not support jtag,

    It doesn't support 4-wire JTAG. However, SBW protocol is supported, which is a serialized JTAG. This is actually how the LaunchPad programs and debugs its taget MSPs. SWB has nothing to do with serial BSL (which uses an UART serial protocol and runs as CPU code)

    The F6638 JTAG supports both, 4-wire and SBW mode.

    Sergey Goncharov1 said:
    there are JTAG pins as TIPs on PCB but they are only fot inner purposes of device, not sure what it means

    IIRC, those are for programming the F1612 that contains the FET firmware. The 1612 doesn't support SBW, so the 4-wire JTAG pins are made available as test points. I guess, these are used for initial programming of the FET, as JTAG programming through test points is faster and easier than connecting to USB for using the BSL method. Especially in mass production.

    Sergey Goncharov1 said:
    another person says USB integrated MCUs from TI may contain both BSLs UART and USB

    May. Indeed. But not at the same time. And the production default is the USB BSL.

    Sergey Goncharov1 said:
    one thing i can't understand is why this MCU does not start USB BSL correctly with 4 or 12 MHz resonator and pulled-up PUR,

    Do you have a free sample CPU? The samples are often pre-production samples (maked XMS430 instead of MSP430). Those sometimes only contain bare silicon. That means that calibration values or even the BSL (if it is in flash and not mask rom) may be missing.
    If your MSP does not have a BSL at all, it would be no wonder that you cannot launch it.

**Attention** This is a public forum