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.

Webench/MSP-EXP432P401R: MSP432 Launchpad wont download via TI XDS

Part Number: MSP-EXP432P401R

Tool/software: Webench

I have just started working with the MSP432 Launchpad. I was able to compile and download the "Out of Box" example. I have started writing my own code starting with the UART so I can output debug message. I got the UART working and then I start playing with the main clock. I changed it to 48MHz and now I cannot download anything. I tried changing it back to 3MHz and I tried downloading the "Out of Box" again.

I am using IAR Workbench 7 Kickstart. I don't have any compile errors, it starts the debug/download then I get the foloowing in my debug log:

Fri Dec 23, 2016 12:03:09: IAR Embedded Workbench 7.80.2 (armproc.dll) 
Fri Dec 23, 2016 12:03:09: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\arm\config\debugger\TexasInstruments\MSP432P401R.dmac 
Fri Dec 23, 2016 12:03:09: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\arm\config\flashloader\TexasInstruments\FlashMSP432P4.mac 
Fri Dec 23, 2016 12:03:09: Connecting to TI XDS110 ( Probe no: M4321005 ) COM[4/3] 
Fri Dec 23, 2016 12:03:09: Checking security status... 
Fri Dec 23, 2016 12:03:09: Device is not secure 
Fri Dec 23, 2016 12:03:09: TI XDS ARM, device revision: 0x00000001, big endian: false, cache: false, board revision: 0x00000000, driver revision: 0x0B020200 
Fri Dec 23, 2016 12:03:10: Initial reset was performed 
Fri Dec 23, 2016 12:03:10: Watchdog disabled 
Fri Dec 23, 2016 12:03:10: Your XMS432P401R material is no longer supported. We recommend you moving to production-quality MSP432P401R/M silicon by ordering samples at www.ti.com/product/MSP432P401R 
Fri Dec 23, 2016 12:03:10: Unloaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\arm\config\flashloader\TexasInstruments\FlashMSP432P4.mac 
Fri Dec 23, 2016 12:03:10: IAR Embedded Workbench 7.80.2 (armproc.dll)

Any help would be appreciated!

Brett

  • Brett,

    The posting has been moved for you.

  • Ok, SO I have tried using another computer. I now get an error message:

    "Tue Dec 27, 2016 09:39:15: Fatal error: Failed to connect to the XDS emulator (connect ICEPick)... (Error -122 @ 0x0) A bad parameter value was detected within a function. It is likely a problem with `SC_ARGS' in SMG_call(). (Emulation package 6.0.407.6) Session aborted! "

    I have also tried updating the firmware on the XDS1100 emulator. I was able to update/rollback to variouse firmware versions, but I still recieved the same error message when I try downloading to the MSP432 device.

    BTW, Thank you Britt for moving the thread.
  • BUMP

    I have since tried programming with a Blackhawk USB100v2-ARM JTAG Emulator and I still get the same error message.

    Any help/suggestions would be great!

    Thank you,
    Brett
  • Brett,
    When you changed the frequency to 48Mhz did you make any additional changes to support 48Mhz operation (Vcore=1, Flash wait state = 1 or 2 if you are using the revision B silicon - black launchpad)? You may need to perform a factory reset to get the device back into a working condition.

    The error message states that you have a piece of silicon that is no longer supported. You may want to look into getting a new launch-pad with the latest material.


    Regards,
    Chris
  • Hi Chris,

    I am using a Rev 2 Launchpad (red solder mask), and I did not make any additional changes to support 48MHz. I started with the sample code from "430BOOST-SENSE1_CapTouch_MSP432P401R" which has the frequency set to 3MHz. When I got my UART working I started playing around and turn the frequency up. My initHardware() routine is the following:

    void initHardware(void){
      //Set P1.0 to output direction
      GPIO_setAsOutputPin(
                          GPIO_PORT_P1,
                          GPIO_PIN0
                            );
      GPIO_setOutputHighOnPin(GPIO_PORT_P1,GPIO_PIN0);
      
      /* Initialize main clock to 3MHz */
      MAP_CS_setDCOCenteredFrequency(CS_DCO_FREQUENCY_3);
      MAP_CS_initClockSignal(CS_MCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 );
      MAP_CS_initClockSignal(CS_HSMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 );
      MAP_CS_initClockSignal(CS_SMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 );
      
      
      /* Selecting P1.2 and P1.3 in UART mode */
      MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P1,
                                                     GPIO_PIN2 | GPIO_PIN3, GPIO_PRIMARY_MODULE_FUNCTION);
      
      
      /* Configuring UART Module */
      MAP_UART_initModule(EUSCI_A0_BASE, &uartConfig);
      /* Enable UART module */
      MAP_UART_enableModule(EUSCI_A0_BASE);
      
    }

    I will try a factory reset . I found this page explaining the process with CCS 

    http://www.davitrenou.com/en/launchpad-msp-exp432p401r-demarrage/

    Is it possible to do this in IAR Workbench?

    Thank you!

  • Ok I performed a factory reset using CCS7. I am still not able to program the device with IAR though. I have not used CCS very much but I was able to import an example project (Blink LED) and program the device with CCS7.

    Seems link I don't have the target configured correctly in IAR or something. I am not able to program the device in IAR using known good projects.
  • Hey Brett,

    Couple of things:
    Factory reset (CCS) : e2e.ti.com/.../1854733

    Setting Vcore and flash wait states for > 24Mhz operation:
    e2e.ti.com/.../2071064

    I am not aware of an IAR method of factory reset, so using CCS is appropriate (e2e.ti.com/.../493777 ).

    I will see if I can recreate on my side.

    Chris
  • Thank you Chris! I was able to do a factory reset and I have been able to program with CCS. IAR still gives me the same error though.
  • Brett,
    After the factory reset, IAR still gives an error? Or does it still have an error with the change to 48Mhz that you described earlier?

    Thanks,
    Chris
  • Hi Chris,

    I am not sure what the problem was, but it seemed to boil down to user error. I continued to get the same error with IAR, so I started using CCS. I ordered another dev kit from Digikey, but they were backordered. Three weeks later it came in and I was not able to flash the second dev kit with IAR. 

    I worked from home a few days last week and I was able to flash both kits with IAR on my home computer. My home computer is where all the problems started (changing the clock without changing the core voltage). Monday I reinstalled IAR on my work computer and now IAR is running smoothly. 

    Thank you very much for your help. The factory reset did the trick. Still not sure what I did to IAR.

    ~Brett

**Attention** This is a public forum