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.

MSP430F5501: MSP430 jumping out of BSL mode

Part Number: MSP430F5501


I use MSP430F5501 for many years. We built new batch of boards this month. After programming MSP430, it executes program. On previous boards, the command to jump to BSL works perfectly but in this new batch it cannot stay in BSL mode. I see USB is disconnect after sending jump to BSL command but it cannot stay in BSL mode and enumerates again. It is running my program again. Through my program debug interface i check JTAG and BSL lock. It is set to jump to 0xFFFF and 0x1000 respectively. I have no communication problem and the board has no other external connection during this test.

After much debug and not finding a cause, i thought i will check on this forum. Is there any change in MSP430F5501 that can result in such issue? Is there any external condition that can cause MSP430 not to stay in BSL mode? RST pin is pulled up to Vcc with 47K and 2.2nF connected to ground.

Please help!

  • Hi Go

    You use the software invoke of set the PC to 0x1000 in the program, right?

    How do you download the application code ? JTAG or BSL?

    How about a use a blank device to use the BSL?

  • Hello Gary,

    Yes,i use the software invoke of set PC to 0x1000 in my program.

    I downloaded the application code through USB with MSP430 in BSL mode. 

    I successfully programmed few blank device through USB/BSL but none can return to BSL in the latest batch. Same program can return to BSL in previous batches. Gerber and placement are identical.

    My thoughts: Blank device can be programmed mean that there is soldering or component problem. This indicate that there may be change in MSP430F5501. One more doubt: In this batch vendor used package MSP430F5501IRGZT. Previous batch used MSP430F5501IRGZR which is not in stock. Vendor said both are identical and I did not spot any difference.

    Best wishes

    Go

  • Hello Gary, I compared Hardware and firmware revision of old and new batch of MSP430F5501 by reading memory contents

    Old is 0x12, 0x12

    New is 0x15, 0x14

  • Hi Go

    What's the supply voltage do you used in VCC? 

  • Hi Gary,

    Vcc is 3.3V from VUSB. I used recommended 220nF capacitor. Worst case external load for Vcc in my application is 1.5mA peak pulse. I disconnected external load for test.

    Thank you

    Best wishes

    Go

  • Hi Go

    Have you try the BSL hardware invoke(pull up the PUR pin when power up) with the problemed device?

    Dose the problemed device failed every time when use the software invoke?

  • Hello Gary,

    I tried with PUR pin pull up to external 3.3V Vcc. It still fail to enter BSL. 

    Is there a known condition that cause software invoke of BSL to end with reset? MPS430 is disconnected from USB with software invoke of BSL but cannot stay in BSL mode.

    Best wishes,

    Go

  • Hi Go

    What's the device versions of the old and new? Are they both Rev F? We have four version of devices before C, D, E and F. The F is latest version.

    Your problem can summary like this:

    When device is blank,  there is no problem. But when you download your application code, the BSL can't work both hardware invoke or software invoke with any device any time, right?

  • Hello Gary,

    Your problem summary is right.

    How do i get device version? I read TLV record Hardware and firmware revision of old and new batch of MSP430F5501 by reading memory contents

    Old is 0x12, 0x12

    New is 0x15, 0x14

    Can you find device version from this information?

    Best wishes

    Go

  • The device version is on the top of the device. I can see it.

    Can you download other demo code from TI like GPIO toggle project to see if BSL works?

  • Hello Gary,

    Top marking on old devices: M430 F5501 TI 16K C DTDV G4 and M430 F5501 12K C C6EE G4

    Top marking on new device: M430 F5501 TI 73K F DC98 G4

    I will try download other demo project later today.

    Best wishes

    Go

  • Hello Gary,

    I programmed demo code and it cannot return to ROM with command that execute call to BSL.

    If i lock BSL 0x17FE/FF = 0x1000, then it cannot return to ROM even if i connect PUR to VUSB.

    If i do not lock BSL, then it can return to ROM only if i connect PUR to VUSB.

    I damaged many boards now. How can i make call to BSL work? I disabled all interrupt before call BSL. I read that NMI could cause problem. Do you have suggestion?

    In version C call to BSL works correctly. This problem is only in version F.

    Best wishes

    Go

  • Part Number: MSP430F5501

    Hello

    I have problem when using MSP430F5501 Revision F but Revision C works perfectly.

    How to order MSP430F5501 Revision C?

    Thank you

    Go

  • Part Number: MSP430F5501

    Hello

    I have problem when using MSP430F5501 Revision F but Revision C works perfectly.

    How to order MSP430F5501 Revision C?

    Thank you

    Go

  • Hello Gary,

    Can you help me?

    Thanks

    Go

  • Hi Go

    Sorry for the late response

    Please try to reset the USB module before you jump from software to BSL

    // configuration of USB module
    USBKEYPID = 0x9628; // set KEY and PID to 0x9628 -> access to configuration registers enabled

     USBPWRCTL = 0; // Workaround for USB9
     __no_operation(); // for workaround USB9
    USBPWRCTL = VUSBEN + SLDOEN + SLDOAON /*+ VBOFFIE + VBONIE*/; // keep primary and secondary LDO (3.3 and 1.8 V) enabled

  • Hello Gary,

    Thank you. I tried the code but it made no difference. Do you have other suggestion?

    Best wishes

    Go

  • Have you locked the JTAG? If not, could you read out the data from 0x1000 to 0x17FF?

  • Hello Gary,

    I don't get easy access to JTAG on my board. But i read BSL area from my test program. I attach data 0x1000-0x17FF

    05 3C 41 3C FF 3F FF 3F 00 08 88 39 B2 40 80 5A 5C 01 32 C2 31 40 00 34 B0 13 56 17 FF 3F 06 00
    FF 09 01 A1 01 85 3F 95 3F 75 08 25 01 15 01 09 01 81 02 85 3F 95 3F 75 08 25 01 15 01 09 01 91
    02 C0 09 02 29 00 01 01 00 80 32 09 04 00 00 02 03 00 00 00 09 21 01 01 00 01 22 24 00 07 05 81
    03 40 00 01 07 05 01 03 40 00 01 FF 0F 05 0F 03 11 02 17 01 12 01 00 02 00 00 00 08 47 20 00 02
    09 01 00 00 00 01 3D 90 AD DE 04 20 3E 90 EF BE 01 20 03 3C 0C 43 0D 43 10 01 3C 41 3D 41 10 01
    0C 43 B2 D0 03 80 82 01 B2 40 28 96 00 09 B2 D0 00 01 04 09 A2 B2 02 09 0A 20 B2 93 FE FF 08 20
    3B 40 2C 01 1B 83 FE 23 B2 B2 08 09 01 24 2C D3 B2 C0 00 01 04 09 C2 43 28 96 10 01 F2 B0 0F 00
    84 23 09 20 C2 93 84 23 03 34 5E 42 20 09 0B 3C 5E 42 22 09 08 3C C2 93 84 23 03 34 5E 42 C8 23
    02 3C 5E 42 88 23 7E F2 C2 4E 60 24 5E 42 60 24 42 19 4E 10 C2 4E 60 24 B0 13 E2 17 3C 40 60 24
    80 00 A6 17 F2 43 02 24 C2 43 10 24 C2 43 21 09 10 01 C2 93 82 23 11 20 5E 42 84 23 7E F0 0F 00
    0A 24 5E 93 0E 20 C2 93 84 23 03 34 F2 D2 C8 23 02 3C F2 D2 88 23 80 00 24 11 F2 D2 20 09 F2 D2
    22 09 10 01 C2 93 80 23 04 34 1F 43 D2 D3 3C 09 03 3C 0F 43 D2 C3 3C 09 5E 42 80 23 7E B0 60 00
    8F 20 5D 42 81 23 4D 83 80 24 5D 83 6B 24 6D 83 67 24 6D 83 45 24 5D 83 09 24 6D 83 52 24 5D 83
    46 24 5D 83 33 24 5D 83 54 24 7A 3C 1F B3 78 28 5E 42 83 23 5E 83 08 24 5E 83 0F 24 7E 80 1F 00
    1C 24 5E 83 13 24 6C 3C C2 43 23 09 F2 40 12 00 02 24 3C 40 74 10 80 00 A6 17 C2 43 23 09 F2 40
    29 00 02 24 3C 40 42 10 80 00 A6 17 F2 40 24 00 02 24 3C 40 1E 10 80 00 A6 17 C2 43 23 09 F2 40
    09 00 02 24 3C 40 54 10 80 00 A6 17 1F B3 48 28 B0 13 E2 17 C2 43 60 24 D2 42 01 24 61 24 3A 3C
    F2 D2 22 09 D2 42 82 23 3F 09 80 00 24 11 F2 D2 22 09 D2 42 82 23 00 24 B0 13 24 11 D2 43 12 24
    10 01 C2 43 23 09 D2 43 02 24 3C 40 00 24 80 00 A6 17 F2 D2 22 09 D2 42 84 23 01 24 80 00 24 11
    80 00 32 11 5E 42 84 23 7E F0 0F 00 0C 24 5E 93 1B 20 C2 93 84 23 04 34 F2 F0 D7 00 C8 23 03 3C
    F2 F0 D7 00 88 23 80 00 24 11 7E 90 80 00 03 20 B0 13 E2 17 43 3F 7E 90 82 00 02 20 80 00 DC 10
    F2 D2 20 09 F2 D2 22 09 10 01 21 83 32 C2 03 43 B2 40 02 1C 5A 24 B2 40 17 24 5C 24 C2 43 0E 24
    C2 43 11 24 B2 40 28 96 00 09 82 43 08 09 03 43 B2 40 40 18 08 09 B2 40 80 00 04 09 B0 13 D8 17
    C2 43 12 24 F2 40 A5 00 21 01 5E 42 20 01 3E F0 03 00 0F 4E 3F D0 00 44 82 4F 24 01 B0 13 C8 17
    4F 4E 8F 10 82 DF 24 01 B0 13 C8 17 C2 4E 20 01 0F DE 3F D0 00 44 82 4F 26 01 92 B3 2C 01 FD 2B
    92 C3 2C 01 1E 53 2E 92 E4 2B C2 43 21 01 F2 D0 0C 00 4A 02 B2 C0 00 01 6C 01 05 3C B2 F0 F4 FF
    6E 01 A2 C3 02 01 1E 42 6E 01 7E B0 09 00 F6 23 B2 40 20 00 66 01 B2 40 53 02 68 01 B2 40 00 02
    6A 01 B2 40 20 02 C0 03 B1 40 2C 01 00 00 0C 3C B2 40 00 51 CE 03 92 B3 CE 03 FD 2B A2 D2 C0 03
    2F 41 3F 53 81 4F 00 00 81 93 00 00 F1 23 B2 C0 00 40 CE 03 1F 42 DE 03 3F 90 96 08 03 28 3F 40
    0F 05 0E 3C 3F 90 C5 04 03 28 3F 40 0F 03 08 3C 3F 90 DD 02 03 2C 3F 40 17 01 02 3C 3F 40 11 02
    82 4F 14 24 82 43 60 01 B2 40 F3 10 64 01 B2 40 40 00 62 01 B2 40 44 02 68 01 B2 B2 08 09 06 28
    B0 13 78 16 B0 13 8C 14 A2 D3 02 09 21 53 10 01 5E 42 3E 09 2E B2 02 28 80 00 BA 16 A2 B3 08 09
    0C 28 B0 13 D8 17 B0 13 78 16 B0 13 8C 14 B2 F0 F9 FF 08 09 A2 D3 02 09 10 01 A2 B2 08 09 06 28
    B0 13 D8 17 B2 40 04 A5 20 01 10 01 D2 B3 30 09 10 28 F2 D0 10 00 3C 09 C2 43 23 09 D2 93 10 24
    03 20 B0 13 76 15 02 3C F2 D2 20 09 D2 C3 30 09 10 01 4E 93 02 34 80 00 8C 14 3E B0 40 00 0B 28
    D2 43 11 24 F2 D0 10 00 3C 09 F2 C0 40 00 3E 09 82 43 10 09 10 01 3E B0 20 00 07 28 B0 13 78 16
    F2 F0 9F 00 3E 09 C2 43 11 24 10 01 C2 43 12 24 C2 43 11 24 C2 43 00 24 C2 43 01 24 C2 43 3C 09
    F2 43 02 24 F2 43 04 24 C2 43 10 24 7E 40 80 00 C2 4E 21 09 C2 4E 23 09 F2 40 8C 00 20 09 F2 40
    8C 00 22 09 F2 40 03 00 2F 09 F2 40 03 00 2E 09 C2 4E C8 23 F2 40 10 00 C9 23 C2 4E CA 23 C2 4E
    CE 23 F2 40 40 00 CF 23 C2 4E 88 23 C2 43 89 23 C2 43 8A 23 F2 40 40 00 8F 23 F2 40 40 00 3C 09
    C2 43 3E 09 C2 CE 3E 09 10 01 1B 15 1F 42 5A 24 5B 4F 03 00 0A 43 5E 4F 01 00 5C 4F 02 00 8C 10
    0C DE 0D 4B 6E 4F 7E 80 11 00 0C 24 7E 80 06 00 12 24 6E 82 1A 20 2F 52 1E 42 5E 24 2E 82 B0 13
    D4 15 17 3C 1F 53 0C 4F B0 13 26 16 4C 93 09 24 7C 40 05 00 0C 3C B2 90 A5 A5 56 24 04 20 B0 13
    EC 17 4C 43 04 3C 6C 42 02 3C 7C 40 07 00 B0 13 82 17 1A 17 10 01 5E 42 02 24 7E 93 28 24 7E 90
    09 00 03 28 7F 42 7E 82 09 3C 7E 92 02 2C 4F 4E 07 3C 7F 42 D2 93 0E 24 03 20 4E 43 5D 43 02 3C
    7E 43 4D 43 C2 4D 10 24 C2 4E 02 24 4F 93 0C 24 3E 40 78 23 4D 4F 1C 42 06 24 EE 4C 00 00 92 53
    06 24 1E 53 7D 53 F7 23 C2 4F 21 09 10 01 C2 43 10 24 10 01 5B 15 0A 4F 4B 43 08 4C 09 4D 08 5E
    09 63 0D 99 03 28 1C 20 0C 98 1A 2C 6E 4A B2 90 A5 A5 56 24 0C 20 4B 43 1D 15 0F 16 CF 4E 00 00
    1D 15 0F 16 66 4F 4E 96 03 24 5B 43 01 3C 6B 42 1A 53 1C 53 0D 63 0D 99 E9 2B 02 20 0C 98 E6 2B
    4C 4B 56 17 10 01 1B 15 0D 43 3A 40 E0 FF 0B 4C 3B 50 20 00 7E 4A 7F 4C 0E EF 0D DE 0C 9B FA 23
    0D 93 05 20 B2 40 A5 A5 56 24 4C 43 13 3C 92 42 58 24 44 01 1F 42 58 24 3F 50 06 00 82 4F 40 01
    C2 43 E0 FF 1F 42 58 24 3F 50 10 00 82 4F 44 01 7C 40 05 00 1A 17 10 01 21 83 81 43 00 00 B2 40
    28 96 00 09 92 42 14 24 12 09 B2 40 00 03 10 09 82 43 14 09 3F 40 4C 01 3F 53 FE 2F 2F 41 0E 4F
    1E 53 81 4E 00 00 3F 90 E9 03 05 2C 82 93 14 09 EF 23 92 D3 02 09 21 53 10 01 F2 D0 10 00 3C 09
    F2 40 80 00 23 09 03 3C F2 F0 FA 00 3E 09 C2 43 10 24 82 43 60 24 B0 13 64 11 34 40 80 00 82 C4
    20 09 82 C4 22 09 E2 C2 3E 09 82 D4 20 09 82 D4 22 09 D2 B3 3E 09 E8 2F 10 01 C2 43 8A 23 B0 13
    F0 13 D2 93 12 24 FB 23 C2 93 11 24 F8 23 C2 93 8A 23 F5 37 F2 B0 7F 00 8A 23 F1 27 5F 42 01 1C
    82 4F 5E 24 5C 43 10 01 7E 40 3F 00 C2 93 CA 23 0F 34 C2 4E 80 1C 3F 40 81 1C 0D 4C 0D 5E FF 4C
    00 00 1F 53 0C 9D FB 23 F2 40 40 00 CA 23 01 3C 4E 43 4C 4E 10 01 0F 41 3F 50 00 DC 8F 43 FE 23
    2F 83 FC 23 82 43 56 24 B2 40 00 A5 58 24 B0 13 AA 12 B0 13 FA 16 5C B3 FC 2B B0 13 0A 15 F9 3F
    03 43 1F 42 5C 24 FF 40 3B 00 00 00 1F 42 5C 24 CF 4C 01 00 E2 43 16 24 3C 40 16 24 B0 13 28 17
    4C 93 FA 27 10 01 82 4C 06 24 1E 42 86 23 5F 42 02 24 0F 9E 04 28 C2 4E 02 24 4E 43 01 3C 5E 43
    C2 4E 0E 24 80 00 76 15 B2 B0 10 00 2C 01 FC 2B B2 C0 10 00 2C 01 10 01 3F 40 DF 2E 3F 53 FE 2F
    10 01 C2 43 23 09 E2 43 02 24 10 01 1D 15 10 01 FF FF A0 10 A5 3C 5A C3 FF FF 00 10 AA AA AA AA
    
    Best wishes

    Go

  • Hello Gary,

    Are you able to find how to fix?

    Best wishes

    Go

  • Hi

    That seems you have locked JTAG. Could you have a try to power the VCC by external 3V3?

  • Hello Gary,

    Could JTAG lock affect jump to BSL? I erased last row of program from my running program and when i reconnect USB it started in BSL even though JTAG lock.

    Kindly let me know if it is safe to connect external Vcc continuously when i have MSP430 output Vcc on. Otherwise I have to cut PCB trace.

    Best

    Go

  • Hi Go

    You should turn of the internal 3v3 LDO.

**Attention** This is a public forum