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.

MSP432P401R System_printf crash

Other Parts Discussed in Thread: ENERGIA

Hi to everyone!

I'm just starting with TI.

I own a MSP432P401R following the getting started guide I've installed CCS(os x), imported one of TI RTOS example. It compiles ok but after debugging it crashes on:

    System_printf("Starting the I2C example\nSystem provider is set to SysMin."
                  " Halt the target to view any SysMin contents in ROV.\n");
    /* SysMin will only print to the console when you call flush or exit */
    System_flush();


Thank you for your help!

  • Hi,

    Can you provide me with which example you downloaded and are using from TI? I would be happy to look into your issue for you.

    Thanks,
    Michael Arriete
  • It crashes for any of the example.

    1. I've downloaded the TI-RTO" for MSP43x

    2. I've imported MSP432 Family->MSP432O401R->Driver Examples->MPS-EXP432P401R Launchpad->TI..->GPIO Examples-> GPIO Interrupt.

    The project compiles, but when I debug it it crashes:

    No source available for "C$$IO$$() at /Users/.../Documents/workspace_cc_02_tests/gpiointerrupt_MSP432P401R/Debug/gpiointerrupt_MSP432P401R.out:{3} 0x350e{4}"

    In the disassembly I have this:

    It crashes for any of the example.
    
    1. I've downloaded the TI-RTO" for MSP43x
    2. I've imported MSP432 Family->MSP432O401R->Driver Examples->MPS-EXP432P401R Launchpad->TI..->GPIO Examples-> GPIO Interrupt.
    
    The project compiles, but when I debug it it crashes:
    No source available for "C$$IO$$() at /Users/.../Documents/workspace_cc_02_tests/gpiointerrupt_MSP432P401R/Debug/gpiointerrupt_MSP432P401R.out:{3} 0x350e{4}" 

    In the disassembly I have this: 
              __TI_writemsg():
    000034e0:   B5D0                push       {r4, r6, r7, lr}
    000034e2:   461E                mov        r6, r3
    000034e4:   4603                mov        r3, r0
     72          _CIOBUF_[0] = length;
    000034e6:   4817                ldr        r0, [pc, #0x5c]
     82          for (i = 0; i < 8; i++)      PACKCHAR(*parm++, p, i);
    000034e8:   2708                movs       r7, #8
     72          _CIOBUF_[0] = length;
    000034ea:   6006                str        r6, [r0]
    000034ec:   4604                mov        r4, r0
     77          *p++ = command;
    000034ee:   7103                strb       r3, [r0, #4]
     82          for (i = 0; i < 8; i++)      PACKCHAR(*parm++, p, i);
              $C$L1:
    000034f0:   F8113B01            ldrb       r3, [r1], #1
    000034f4:   1E7F                subs       r7, r7, #1
    000034f6:   7163                strb       r3, [r4, #5]
    000034f8:   F1040401            add.w      r4, r4, #1
    000034fc:   D1F8                bne        $C$L1
    000034fe:   B136                cbz        r6, #0x350e
     83          for (i = 0; i < length; i++) PACKCHAR(*data++, p, i+8);
              $C$L2:
    00003500:   F8121B01            ldrb       r1, [r2], #1
    00003504:   1E76                subs       r6, r6, #1
    00003506:   7341                strb       r1, [r0, #0xd]
    00003508:   F1000001            add.w      r0, r0, #1
    0000350c:   D1F8                bne        $C$L2
              $C$L3, C$$IO$$():
    0000350e:   BF00                nop        
    00003510:   BDD0                pop        {r4, r6, r7, pc}
              __TI_readmsg():
    00003512:   4684                mov        r12, r0

  • Hi,

    Any official response to this?

    thank you!
  • I installed the most recent version of TI-RTOS and ran the same example code specified above and did not run into any errors or crashes while debugging. Which version of TI-RTOS are you using?

    Regards,
    Michael Arriete
  • TI-RTOS:
    2.12.01.33

    Code Composer Studio Version:
    6.1.1.00027

    LaunchPad:
    MSP432P401R

    OS X El Capitan:
    10.11

    Do I need an external debugger?

    Thank you for you assistance
  • You don't need an external debugger to get this to work in debug mode. There may be something that you have to change within the .cfg file associated with your project. If the program is getting stuck with the system_printf function, I would check to make sure you have an adequate heap size allocated for the support of the function.

    You could also try adding the following lines to the gpiointerrupt_msp432.cfg file by right clicking the file in the project folder (within CCS) and opening with Text Editor:

    var System = xdc.useModule('xdc.runtime.System');
    var SysMin = xdc.useModule('xdc.runtime.SysMin');
    System.SupportProxy = SysMin;

    Let me know if this corrects the issue!

    Thanks,

    Michael Arriete

  • Yesterday I've deleted the FTDI driver( I think it was installed for Energia..), reinstalled CCS. Now it works.

    No I don't know if it was a driver conflict or something else but now it works like it should.

    I can print data to console :D


    Michael than you for your help.


**Attention** This is a public forum