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.

MSP430FR5994: download firmware through Crypto_Bootloader into launchpad MSP-E430fr5994 using eZ-FET on board?

Part Number: MSP430FR5994


Hi!

My task: to download firmware through Crypto_Bootloader into launchpad MSP-E430fr5994 using eZ-FET on board.

  1. I compiled the code IAR.

    #include "msp430.h"
    
    int main( void )
    {
        // Stop watchdog timer to prevent time out reset
        WDTCTL = WDTPW + WDTHOLD;
      
        // P1.0 is output low by default
        P1OUT &= ~BIT0;
        
        P1DIR |= BIT0;
        P5REN |= BIT5;
        P5OUT |= BIT5;
        
    
        // Configure clocks
        CSCTL0_H = CSKEY >> 8;                    // Unlock CS registers
        CSCTL1 = DCOFSEL_6;                       // Set DCO = 8MHz
        CSCTL2 = SELA__VLOCLK | SELS__DCOCLK | SELM__DCOCLK;// Set ACLK=VLO SMCLK=DCO
        CSCTL3 = DIVA__1 | DIVS__1 | DIVM__1;     // Set all dividers
        CSCTL0_H = 0;                             // Lock CS registers
    
        // Disable the GPIO power-on default high-impedance mode to activate
        // previously configured port settings
        PM5CTL0 &= ~LOCKLPM5;
       
      //  TA0CCTL0 = CCIE;                          // TACCR0 interrupt enabled
      //  TA0CCR0 = 4000;
      //  TA0CTL = TASSEL__ACLK | MC__UP;          // ACKL, UP mode
    
       while(1)
       {
          //  __bis_SR_register(LPM3_bits + GIE);       // Enter LPM3 w/ interrupt
          //  __no_operation();  
                           // For debugger
         __delay_cycles(6000000); 
         P1OUT ^= BIT0;
            if (!(P5IN & BIT5))
                            {
                                __disable_interrupt();
                                 ((void (*)())0xFF08)(0xC0DE);	// Jump to CryptoBSL
                               //  ((void (*)())0x1000)(); // jump to BSL
                            }
            
       }
    }

     

  2. Got this code for MSPFlasher_1.3.14.

  3. I unified the received code with the code from C: \ TI \ msp430 \ CryptoBootloader_1_00_00_01 \ BSL_Images \ FR59xx \ CryptoBootloader_005856B5.txt

    and got the following code.

    @4000
    31 40 00 2C B0 13 0C 40 B0 13 6E 40 B2 40 80 5A
    5C 01 D2 C3 02 02 D2 D3 04 02 F2 D0 20 00 46 02
    F2 D0 20 00 42 02 F2 40 A5 00 61 01 B2 40 0C 00
    62 01 B2 40 33 01 64 01 82 43 66 01 C2 43 61 01
    92 C3 30 01 3F 40 EE 49 03 43 2E 43 3F 53 3E 63
    FD 2F D2 E3 02 02 F2 B0 20 00 40 02 F3 2F 32 C2
    03 43 3C 40 DE C0 B0 13 08 FF EC 3F 03 43 80 00
    76 40 FF 3F 03 43 80 00 72 40 
    @F000
    C0 00 00 10 00 0F 3F E0 FF FF 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 
    @F032
    31 40 00 20 B0 13 3E F6 0C 93 06 24 3C 40 00 1C
    3D 40 04 00 B0 13 24 FD B0 13 E0 F6 B0 13 D2 FD
    B0 13 08 F1 82 4C A8 05 5D 93 03 20 2F D3 82 4F
    A0 05 F2 43 A1 05 10 01 7C 40 05 00 B2 40 00 A5
    20 01 92 C3 30 01 F2 90 55 00 BC FF 05 24 B2 B0
    10 00 80 01 0F 2C 10 01 E2 C3 04 02 E2 D3 06 02
    E2 D3 02 02 00 3C 3F 40 4B 01 3F 53 FE 2F E2 B3
    00 02 01 2C 4C 43 10 01 B0 13 68 FD B0 13 1C F1
    B2 40 AA 00 0A F0 B2 43 08 F0 3E 40 C0 FF 0F 43
    1F 15 0D 16 BD 43 00 00 2E 53 0F 63 03 20 3E 90
    FE FF F6 2B B0 13 12 F1 B0 13 46 FC B0 13 08 F1
    B2 40 73 33 A8 05 F2 43 A1 05 82 43 0A F0 82 4F
    A0 05 B2 40 53 33 A8 05 F2 43 A1 05 92 42 08 1C
    04 1C 4C 43 10 01 1F 42 06 1C 82 4F A0 05 10 01
    B0 13 0A F2 F2 43 A1 05 10 01 B0 13 20 F2 FA 3F
    03 43 0A 12 B0 13 74 F1 07 20 4A 43 B0 13 74 F9
    4C 93 03 24 5A 43 01 3C 6A 42 4C 4A 3A 41 10 01
    5B 15 06 4C 07 4D 08 4F 08 5E 38 53 3E 53 0A 4E
    0B 43 6E 48 0C 4A 0D 4B 0C 56 0D 67 B0 13 24 F1
    38 53 4C 93 04 20 3A 53 3B 63 0B 93 F2 37 56 17
    10 01 B2 90 A5 A5 04 1C 10 01 5B 15 0E 12 0F 12
    08 4C 09 4D 47 43 1E 41 02 00 0A 4C 0B 4D 0A 5E
    0B 63 3A 53 3B 63 0B 9D 2F 28 02 20 0A 9C 2C 28
    06 4F 0F 4A 0F 8C 06 5F B0 13 74 F1 1C 20 0C 4A
    0D 4B B0 13 12 FC 6C 93 16 24 3A 93 06 20 0B 93
    04 20 1E 42 08 F0 8E 10 0B 3C 3A 90 FE FF 05 20
    0B 93 03 20 1E 42 08 F0 03 3C 1B 15 0F 16 6E 4F
    C6 4E 00 00 01 3C 67 42 3A 53 3B 63 36 53 0B 99
    03 28 DA 23 0A 98 D8 2F 4C 47 21 52 56 17 10 01
    B0 13 0A F2 2E 3F 03 43 92 42 06 1C A0 05 B2 40
    53 33 A8 05 10 01 B0 13 20 F2 23 3F 03 43 92 42
    06 1C A0 05 B2 40 73 33 A8 05 10 01 B0 13 12 F1
    4C 43 10 01 B0 13 74 F1 02 24 6C 42 10 01 4C 43
    10 01 5C 3F 03 43 0A 12 C2 43 22 1D 0C 43 0E 43
    01 3C 1C 43 92 B3 DC 05 FD 2B 92 C3 DC 05 1F 42
    CC 05 0C 93 09 20 7F 90 80 00 F3 27 B0 13 B6 FD
    B2 40 51 00 CE 05 70 3C 1C 93 05 20 4F 4F 82 4F
    16 1C 2C 43 E7 3F 2C 93 1A 20 4F 4F 8F 10 82 DF
    16 1C 82 93 16 1C 06 20 B0 13 B6 FD B2 40 53 00
    CE 05 5A 3C B2 90 05 01 16 1C 06 28 B0 13 B6 FD
    B2 40 54 00 CE 05 50 3C 3C 40 03 00 56 3C 1A 42
    16 1C 0D 4A 3D 50 03 00 0C 9D 03 20 4E 4F 1C 53
    C1 3F 0D 4A 2D 52 0C 9D 42 20 4F 4F 8F 10 0E DF
    B2 43 54 01 0A 93 06 24 1F 42 12 1C F2 4F 52 01
    3A 53 FC 23 82 9E 54 01 2A 20 1F 42 12 1C 6E 4F
    7E F0 F0 00 7E 90 50 00 1B 20 FF 90 52 00 00 00
    9B 23 5C 4F 01 00 4E 4C 6E 83 7E 90 05 00 06 28
    B0 13 B6 FD B2 40 56 00 CE 05 8E 3F B0 13 B6 FD
    82 43 CE 05 D2 B3 CA 05 FD 2F B0 13 DE F9 84 3F
    B0 13 B6 FD 82 43 CE 05 D2 43 22 1D 11 3C B0 13
    B6 FD B2 40 52 00 CE 05 E2 43 22 1D 09 3C 1D 42
    12 1C 0D 5C CD 4F FD FF 1C 53 C2 93 22 1D 72 27
    5C 42 22 1D 3A 41 10 01 0F 4C 2F 53 5E 4C 01 00
    7D 90 10 00 1B 20 6D 4C 4D 83 03 24 6D 83 0C 24
    15 3C 5E 92 1D F0 12 28 3D 40 0D F0 B0 13 C4 F3
    C2 4E 1D F0 4C 43 10 01 5E 92 2E F0 07 28 3D 40
    1E F0 B0 13 C4 F3 C2 4E 2E F0 F4 3F 7C 40 05 00
    10 01 0C 4F 3C 50 10 00 FD 4F 00 00 FD 4F 01 00
    FD 4F 02 00 FD 4F 03 00 2D 52 0F 9C F5 23 10 01
    3D 50 E0 FF 0F 4D 0E 4C 3D 40 1E F0 B0 13 92 FD
    02 24 4C 43 10 01 E2 3F 03 43 0A 12 4F 43 5E 4C
    12 00 5A 4C 11 00 8A 10 0A DE 5D 4C 14 00 5E 4C
    13 00 8E 10 0E DD DC 92 2F F0 10 00 05 28 1D 42
    00 1C 1D 53 0A 9D 03 24 7F 40 05 00 04 3C 82 4A
    00 1C 82 4E 02 1C 4C 4F 3A 41 10 01 0A 12 4A 4C
    B0 13 18 F2 92 93 00 1C 03 20 F2 40 A0 00 30 F0
    92 92 02 1C 00 1C 08 20 C2 43 30 F0 82 43 00 1C
    82 43 02 1C C2 4A 2F F0 B0 13 02 F2 3A 41 10 01
    3D 50 E0 FF 0F 4D 0E 4C 3D 40 0D F0 B0 13 92 FD
    02 24 4C 43 10 01 9A 3F 03 43 7B 15 31 80 30 00
    08 4C 09 4D 06 4E 04 4F 0A 41 3A 50 10 00 37 40
    10 00 0E 47 0D 43 0C 4A B0 13 12 FD F1 40 39 00
    10 00 3E 40 0D 00 0D 46 1D 53 0C 4A 1C 53 B0 13
    36 FD 0F 44 8F 10 C1 4F 1E 00 C1 44 1F 00 D6 43
    00 00 2E 43 0D 43 0C 46 3C 50 0E 00 B0 13 12 FD
    0B 41 3B 50 20 00 0E 47 0D 43 0C 4B B0 13 12 FD
    0E 47 0D 48 0D 54 0C 4B B0 13 36 FD 0F 47 0E 46
    0D 49 0C 4B B0 13 DE FD 0F 44 0E 46 0D 49 0C 48
    B0 13 DE FD 0D 49 0C 4A B0 13 DA FD 06 43 04 93
    1B 24 05 44 05 97 03 28 0E 49 0D 48 0C 3C 0E 47
    0D 43 0C 41 B0 13 12 FD 0E 45 0D 48 0C 41 B0 13
    36 FD 0E 49 0D 41 0C 4A B0 13 A4 FC 06 57 35 50
    F0 FF 08 57 06 94 E6 2B 4E 47 0D 4A 0C 4B B0 13
    8A FC 4C 93 02 20 4C 43 02 3C 7C 40 05 00 31 50
    30 00 74 17 10 01 21 83 1E 42 0E 1C 0E 93 07 20
    7C 90 80 00 57 24 F2 40 51 00 18 1C 45 3C 1E 93
    06 20 4C 4C 82 4C 16 1C A2 43 0E 1C 4D 3C 2E 93
    17 20 4C 4C 8C 10 82 DC 16 1C 82 93 16 1C 04 20
    F2 40 53 00 18 1C 07 3C B2 90 05 01 16 1C 3A 28
    F2 40 54 00 18 1C 92 43 0C 1C E2 43 22 1D 32 3C
    1D 42 16 1C 0F 4D 3F 50 03 00 0E 9F 04 20 4C 4C
    81 4C 00 00 27 3C 0F 4D 2F 52 0E 9F 21 20 4C 4C
    8C 10 81 DC 00 00 2F 41 B2 43 54 01 0D 93 06 24
    1E 42 12 1C F2 4E 52 01 3D 53 FC 23 82 9F 54 01
    08 24 F2 40 52 00 18 1C 92 43 0C 1C E2 43 22 1D
    0B 3C C2 43 18 1C 92 43 0C 1C D2 43 22 1D 04 3C
    CE 4C 21 1D 92 53 0E 1C 21 53 10 01 B2 40 80 5A
    5C 01 B2 40 00 A5 A0 05 B2 40 00 0F A6 05 B2 40
    00 10 A4 05 B2 40 01 A5 06 1C B0 13 AC FD F2 90
    0A 00 0C F0 04 20 B2 90 DE C0 0A 1C 1A 24 B0 13
    6A F0 4C 93 16 24 F2 90 A0 00 30 F0 12 24 B2 93
    08 F0 0F 24 B0 13 1C F1 F2 40 0A 00 0C F0 5D 43
    3C 40 57 37 B0 13 52 F0 1E 42 08 F0 0F 43 B0 13
    E2 FD 4D 43 3C 40 73 33 B0 13 52 F0 C2 43 0C F0
    B0 13 AC FD 3F 40 00 1C 04 3C BF 40 FF 3F 00 00
    2F 53 0E 41 0F 91 F9 2B B2 40 01 A5 06 1C B2 90
    AA 00 0A F0 02 20 B0 13 AA F0 0C 43 10 01 32 C2
    03 43 B0 13 FE FC B0 13 A0 FD B0 13 6C F7 0A 3C
    B0 13 BE FD 2E 42 3C 40 B8 FF 0D 43 B0 13 F6 F7
    B0 13 44 F2 B0 13 E8 FC 5C B3 FC 2B 1C 42 12 1C
    6E 4C 7E 80 15 00 0B 24 6E 82 EA 27 7E 80 0C 00
    19 24 7E 80 0B 00 11 24 5E 83 0B 24 17 3C B0 13
    AA F0 B0 13 58 FD CF 4C 01 00 2C 43 B0 13 D2 FC
    E1 3F 1C 53 B0 13 18 FB DD 3F 4D 43 1C 53 B0 13
    FC F8 D8 3F B2 40 04 A5 20 01 D4 3F B0 13 58 FD
    FF 40 07 00 01 00 E9 3F 03 43 B2 40 00 A5 60 01
    B2 40 46 00 62 01 82 43 66 01 B2 D0 33 00 64 01
    F2 43 61 01 B2 40 24 1D 12 1C 5E 42 42 1A C2 4E
    23 1D 5E 93 20 20 82 43 0C 1C 82 43 0E 1C 82 43
    10 1C F2 F0 3F 00 0A 02 F2 D0 C0 00 0C 02 92 43
    40 06 B2 40 00 07 40 06 5F 42 43 1A 3F D0 00 04
    82 4F 54 06 92 C3 40 06 B2 D0 0F 00 6A 06 B2 40
    1C 1C 14 1C 10 01 4E 93 0C 20 92 D3 C0 05 B2 D0
    80 C0 C0 05 B0 13 84 FD B0 13 36 FA B2 40 24 1D
    14 1C 10 01 7B 15 0A 4C 0B 4D 08 4C 09 4D 08 5E
    09 63 44 43 37 40 14 1C 0B 3C FF 40 3B 00 00 00
    2F 47 CF 4C 01 00 2C 43 B0 13 D2 FC 0A 56 0B 63
    0B 99 03 28 29 20 0A 98 27 2C 44 93 25 20 B0 13
    CC FD 3C 53 0D 43 0E 48 0F 49 0E 8A 0F 7B 0D 9F
    03 28 07 20 0C 9E 05 2C B0 13 CC FD 06 4C 36 53
    02 3C 06 48 06 8A 2F 47 1F 53 0E 46 0C 4A 0D 4B
    B0 13 7C F1 44 4C 4C 93 2F 47 CF 23 FF 40 3A 00
    00 00 0C 46 1C 53 D0 3F 74 17 10 01 1E 42 0C 1C
    FE 40 80 00 18 1C 1E 53 CE 4C 18 1C 1E 53 0F 4C
    8F 10 CE 4F 18 1C 1E 53 B2 43 54 01 0C 93 0D 24
    1F 42 14 1C 0D 4E 3D 50 18 1C E2 4F 52 01 FD 4F
    00 00 1E 53 1D 53 3C 53 F8 23 DE 42 54 01 18 1C
    1E 53 DE 42 55 01 18 1C 1E 53 0D 43 0C 43 10 3C
    1D 43 1F 42 6E 06 3F 80 06 00 FA 27 3F 80 12 00
    07 20 0D 93 F6 27 5F 4C 18 1C 82 4F 4E 06 1C 53
    0C 9E EF 2B 82 43 0C 1C 10 01 5B 15 0B 4C 4A 4D
    B0 13 BE FD 1D 42 16 1C 3D 53 0C 4B B0 13 72 F4
    4C 93 02 24 4A 93 07 24 0C 4B B0 13 FC F3 4C 93
    05 24 4A 93 03 20 B0 13 76 FD 1F 3C B0 13 36 F2
    4C 93 11 20 0F 4B 3F 50 1A 00 1E 42 16 1C 3E 50
    D5 FF 5D 4B 19 00 56 4B 17 00 5C 4B 18 00 8C 10
    0C D6 B0 13 42 F1 4A 93 02 20 B0 13 76 FD B0 13
    2E F2 5C 4B 10 00 B0 13 3E F4 B0 13 44 F2 56 17
    10 01 3B 15 0A 4C 0B 4D 48 4E B0 13 12 FC 6C 93
    03 20 7C 40 05 00 28 3C 5C 93 02 20 B0 13 1C F1
    4C 43 3A 93 07 20 0B 93 05 20 1F 42 08 F0 7F F3
    88 10 09 3C 3A 90 FE FF 0A 20 0B 93 08 20 1F 42
    08 F0 3F F0 00 FF 08 DF 82 48 08 F0 0B 3C 1B 15
    0F 16 CF 48 00 00 1B 15 0F 16 6E 4F 48 9E 02 24
    7C 40 05 00 B0 13 12 F1 38 17 10 01 92 D3 C0 05
    B2 D0 80 C0 C0 05 6C 83 09 24 5C 83 0A 24 5C 83
    0F 24 5C 83 14 24 5C 83 18 24 1C 3C B0 13 84 FD
    19 3C B2 40 1A 00 C6 05 B2 40 01 B6 C8 05 12 3C
    B2 40 0D 00 C6 05 B2 40 01 84 C8 05 0B 3C B2 42
    C6 05 B2 40 A1 F7 C8 05 05 3C A2 42 C6 05 B2 40
    51 55 C8 05 F2 F0 FC 00 0B 02 F2 D0 03 00 0D 02
    92 C3 C0 05 10 01 7B 15 31 80 10 00 08 4C 09 4D
    06 4E 0A 4F 4B 4F 07 43 0F 93 25 24 04 41 3E 40
    10 00 0D 46 0C 44 B0 13 36 FD 0D 49 0C 44 B0 13
    B0 FA 7B 90 11 00 09 28 7E 40 10 00 0D 44 0C 48
    B0 13 48 FD 7B 50 F0 00 05 3C 4E 4B 0D 44 0C 48
    B0 13 48 FD 0C 46 B0 13 70 FC 37 50 10 00 38 50
    10 00 07 9A DC 2B 31 50 10 00 74 17 10 01 82 43
    C0 09 0F 4D 3F 50 10 00 F2 4D C6 09 F2 4D C6 09
    F2 4D C6 09 F2 4D C6 09 0D 9F F6 23 92 B3 C4 09
    FD 2F 0F 4C 0E 4C 3E 50 10 00 F2 4F C8 09 F2 4F
    C8 09 F2 4F C8 09 F2 4F C8 09 0F 9E F6 23 92 B3
    C4 09 FD 2F 0F 4C 3F 50 10 00 3E 40 CA 09 EC 4E
    00 00 EC 4E 01 00 EC 4E 02 00 EC 4E 03 00 2C 52
    0C 9F F5 23 10 01 1B 15 0A 4C B0 13 BE FD 1D 42
    16 1C 3D 53 0C 4A B0 13 E2 F3 4B 4C 4C 93 13 20
    B0 13 36 F2 4B 4C 4C 93 0C 20 B0 13 18 F2 1D 42
    16 1C 3D 50 DD FF 3A 50 10 00 0C 4A B0 13 7A F3
    4B 4C B0 13 2E F2 B0 13 58 FD CF 4B 01 00 2C 43
    B0 13 D2 FC B0 13 44 F2 1A 17 10 01 B0 13 B6 FD
    B2 40 80 00 CE 05 4E 4C B0 13 B6 FD 82 4E CE 05
    0F 4C 8F 10 7F F3 B0 13 B4 FB B2 43 54 01 0C 93
    0A 24 1E 42 14 1C E2 4E 52 01 6F 4E B0 13 B4 FB
    1E 53 3C 53 F8 23 5F 42 54 01 B0 13 B4 FB 5F 42
    55 01 A2 B3 DC 05 FD 2B 82 4F CE 05 10 01 C2 43
    22 1D 04 3C 82 43 10 1C 82 43 0E 1C 1F 42 6E 06
    3F 80 06 00 F7 27 3F 80 10 00 03 24 2F 83 0B 24
    04 3C 1C 42 4C 06 B0 13 78 F5 C2 93 22 1D EE 27
    5C 42 22 1D 10 01 1F 42 10 1C 1F 92 0C 1C E6 2F
    5F 4F 18 1C 82 4F 4E 06 92 53 10 1C DF 3F 03 43
    0A 12 4A 43 3E 40 00 F0 0F 43 0D 93 02 20 0C 9E
    0E 28 3E 40 FF FF 0F 9D 0A 28 02 20 0E 9C 07 28
    3E 40 80 FF 0C 8E 0D 73 4A 73 7A E3 6A 53 4C 4A
    3A 41 10 01 9D 14 CC 01 34 43 35 43 36 43 37 43
    38 43 39 43 3A 43 3B 43 81 01 00 40 8D 00 00 44
    7B 15 00 18 41 9D FC 23 C1 0C 94 16 10 01 5F 4C
    0F 00 5E 4C 0E 00 8E 10 0E DF 1E 53 CC 4E 0F 00
    8E 10 CC 4E 0E 00 10 01 0A 12 4F 43 4E 93 06 24
    4E 4E 7A 4C 7A ED 4F DA 3E 53 FB 23 4C 4F 3A 41
    10 01 1B 15 0A 4C 0B 4E 7E 40 10 00 B0 13 48 FD
    0D 4B B0 13 C6 FD 1A 17 10 01 0A 12 21 83 0A 4C
    81 4A 00 00 0D 41 5C 43 B0 13 E6 FD F9 3F 03 43
    D2 93 23 1D 02 20 80 00 7E F8 C2 93 23 1D 02 20
    B0 13 6E FB 10 01 D2 93 23 1D 02 20 80 00 C0 FB
    C2 93 23 1D 02 20 B0 13 48 F2 10 01 F2 40 A5 00
    21 01 92 C3 30 01 C2 43 21 01 82 43 04 1C 10 01
    0F 4C 04 3C CF 4D 00 00 1F 53 3E 53 0E 93 FA 23
    10 01 0F 4C 0F 5D 03 3C CC 43 00 00 1C 53 0C 9F
    FB 23 10 01 0F 4C 04 3C FF 4D 00 00 1F 53 3E 53
    0E 93 FA 23 10 01 4E 93 05 24 FC ED 00 00 1C 53
    7E 53 FB 23 10 01 1F 42 14 1C FF 40 3B 00 00 00
    1F 42 14 1C 10 01 92 42 04 1C 08 1C B2 40 A5 A5
    04 1C 10 01 B0 13 58 FD CF 4C 01 00 2C 43 80 00
    D2 FC B2 40 34 00 C6 05 B2 40 11 49 C8 05 10 01
    3C 50 10 00 B0 13 8C F4 7C 90 05 00 10 01 82 43
    00 1C 82 43 02 1C 4C 43 10 01 4D 43 3C 40 53 33
    80 00 52 F0 A2 B3 DC 05 FD 2B 10 01 B0 13 68 FD
    4C 43 10 01 0C 4A 80 00 B0 FA 3C 40 04 01 10 01
    80 00 D6 FD 80 00 BC FC 80 00 B0 FA 80 00 48 FA
    1F 15 10 01 10 01 
    @FF08
    82 4C 0A 1C B2 40 04 A5 20 01 10 01 
    @FF84
    55 55 
    @FF88
    AA AA 00 0F 
    @FFB8
    00 58 56 B5 00 00 00
    @FFDE
    12 44 
    @FFEA
    0C 44 
    @FFFE
    00 40 
    q

     

I Did it for understanding that in the firmware there is both my program and Crypto_Bootloader.

    1. After that I successfully recorded the prefabricated firmware on the chip.

    2. I run Crypto_Bootloader and I see flashing p1.0.

    3. аI press P5.5 waiting for Jump to CryptoBSL (at the time of pressing the diode goes out, when I stop pressing, it starts flashing again) and then I run > BSL-Scripter.exe script.txt

      MODE Crypto FRxx UART COM11

TX_BSL_VERSION

I do not see the answer from Crypto_Bootloader and I understand that it did not start.

6. b. I try to start the built-in Bootloader by the following method.

I change the program as follows:

// ((void (*)())0xFF08)(0xC0DE); // Jump to CryptoBSL

((void (*)())0x1000)(); // jump to BSL

I press P5.5

I run > BSL-Scripter.exe script.txt

MODE FRxx UART 9600

COM11

TX_BSL_VERSION

I get the answer from Bootloader: 0x51 Header incorrect. The packet did not begin with the required value of 0x80.


  • Hello Andrey,

    From looking at the screen shot you have, the CMD Terminal has the following command being issued:
    COM11Rxx UART 9600
    which would be an incorrect command. The line above that's commented out should be used instead:
    Mode Crypto FRxx UART COM11
  •  Hello Jace,

    thanks for the answer.

    I again did the point:

    Write down the firmware on the chip with the change address to the loader. ((void (*) ()) 0xFF08) (0xC0DE);

    I run MSP-E430fr5994 and I see blinking p1.0.

    I press P5.5 waiting for Jump to CryptoBSL (at the time of pressing the diode goes out, when I stop pressing, it starts blinking again) and then I run> BSL-Scripter.exe script.txt

    MODE Crypto FRxx UART COM11

    TX_BSL_VERSION

    I do not see the answer from Crypto_Bootloader and I understand that it did not start.

    The previous screenshot of which you were talking was created for the non-Crypto mode. Where to receive the response 0x51.

    But I did not make a screenshot for the Crypto mode. Below I attach a screenshot. I want to draw your attention to the fact that the LED continues to flash periodically after pressing P5.5.

    Probably there is no correct ((void (*) ()) 0xFF08) (0xC0DE); // Jump to CryptoBSL

  • Hi Andrey,

    The Crypto-Bootloader forces a BOR reset when you jump from application:

    #pragma location="BSL430_ENTRY_FUNCTION"
    __root void BSL430_ExternalJumptoBSL(uint16_t password)
    {
        BSL_PasswordToApp = password;
        PMMCTL0 = PMMPW | PMMSWBOR;      // Force a BOR 
    }

    So, you are basically jumping back to your application after reset.

    I haven't properly tried this, but try leaving the reset vector pointing to the Crypto-Bootloader:

    @FFFE
    32 F0 
    

    Then, force the BSL430_User_Reset to your application:

    @F000
    C0 00 00 10 00 0F 3F E0 00 44 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00

    
    

    It's also important to mention that the binary was built for FR5969, not FR5994. 

    From a quick look, I think the code should be compatible (looking at the pins and address of peripherals), but if you see any abnormal behavior, then you should probably re-build the image for the right derivative.

    Regards,

    Luis R

  • Hi Luis.
    Thanks for your help. Thanks to your answer, I realized my mistake.
    I rewrote the loader for chip msp430fr5994. Now I see the logic of work Crypto Bootloader. It's much easier.
    I still have a question for you: how can I force Crypto Bootloader to carry out BSL430_User_Reset?
    In the document slau657.pdf Figure 2. I cannot understand the BSL430_User_Reset call conditions.
    Jump to User Application
    PC = @BSL430_User_Reset .
    And I would like to clarify. Are you not indicated by mistake the value 0044 to @ F008 (the user program starts at address 4000. (0040))?
  • Hi Andrey,

    Andrey Kostin said:
    I still have a question for you: how can I force Crypto Bootloader to carry out BSL430_User_Reset?

    After reset, the bootloader will call the application (BSL430_User_Reset) when the Crypto-Bootloader is not invoked. Basically, it needs to meet all the following conditions: 

    • The application software didn't attempt to jump to the bootloader (i.e. by forcing a BOR with the password C0DE)
    • No Bootloader hardware entry is detected
    • The application reset vector is NOT blank
    • A previous bootloader session wasn't interrupted

    Andrey Kostin said:
    And I would like to clarify. Are you not indicated by mistake the value 0044 to @ F008 (the user program starts at address 4000. (0040))?

    You are correct. In your particular case, the address is 0x4000

    @FFFE
    00 40

     

    By the way, the BSL430_User_Reset is typically blank assuming that the bootloader will be burnt to the device first, and then the bootloader will be used to load the first application. The approach you are using is totally valid, but I just want to clarify that the application reset vector will depend on the application and can change after every build unless the address is fixed in linker.

    Regards,
    Luis R

**Attention** This is a public forum