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.

TIVA Launchpad code downloading failure

Other Parts Discussed in Thread: TM4C123GH6PM, LMFLASHPROGRAMMER

As a beginner, I start working on TIVA launchpad and install CCS 5.5 in my window 7 OS. As I have upload the example lab code 1 (i.e. toggling the LED) resume button in the debug session doesn't work. Another thing is that when I upload the code, the green LED still glows during the uploading of the code ( that seems like there might be some issues either in my Launchpad or in my  CCS setting as it should be off during uploading the code). I searched these issues on web but didn't get any solution. I also checked my debug configuration and its also in debug mode.

Is its my launchpad issue or there is some setting mistake in my CCS installation. I already spend a whole day to check out this issue but didn't get any solution.

Kindly Help!!

Thanks,

SHASWAT

  • Hello Shashwat,

    "Resume" button does not work is a generic issue description. Please describe the issue more comprehensively.

    1. Does the Lab-1 work as expected?

    2. When you stop and resume then it does not work?

    3, Are you using TM4C123 or TM4C129 LaunchPad?

    Regards

    Amit

  • Hi Amit,

    1) Lab 1 doesn't seems like work. I noticed this after changing the bit to glow the other LED but it's not working.

    2) The issue with the resume button is that I am not able to get the active resume button. It remains inactive even after downloading the flash. As I have seen in MSP430 launchpad that after downloading the code it becomes active to run the code. But in this case it remains inactive so how can I run the code.

     3) I am using TM4C123GH6PM  Launchpad.

    Thanks,

    Shaswat 

  • Hello Shashwat,

    I would require you to post the Lab-1 CCS project that you have as it seems from your post that you have modified it.

    Regards

    Amit

  • Hi Amit,

    Here is the code-)

    int main(void) {
    	// Please note – after a POR, the controller starts with PIOSC 16 MHz clock
    	// Enable and Configure GPIO here - SysCtlPeripheralEnable function
    	SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
    
    	// Configure pin 1 as output
    	GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1);
    
    	// while() function here
    	while(1) {
    		        // Turn on the LED
    		        GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1,1<<1);
    		        // Delay for some time
    		        SysCtlDelay(5333333);
    		        // Turn off the LED
    		        GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1,0<<1);
    		        // Delay for some time
    		        SysCtlDelay(5333333);
    	}
    
    }
    

  • Hi,

       I think you have CCS settings, not set properly. I am not familiar with the lab files for Tiva Launchpad. But, there should be a section there that discuses how to set CCS for your Tiva Launchpad.

    -kel

  • Hello Markel,

    I made all those setting that are mentioned in the PDF file before using the launchpad. I already cross-verified it and that's fine. Now what I found next that after downloading the code I clicked on  the dissembly and it shows "No source available for 0xffffffe" and at every memory map location it shows invalid target memory access..

    If its in my CCS installation issue then Is there any other IDE that works with my launchpad?

  • Hello Shashwat,

    I have already asked for the full CCS project. Just the source code (and as KEL mentioned) is not sufficient.

    Regards

    Amit

  • Hello Amit,

    Here is the reference code,

    #include <stdint.h>
    #include <stdbool.h>
    
    #include "inc/hw_memmap.h"
    #include "inc/hw_ints.h"
    #include "inc/hw_types.h"
    
    #include "driverlib/gpio.h"
    #include "driverlib/pin_map.h"
    #include "driverlib/sysctl.h"
    
    
    int main(void) {
    	// Please note – after a POR, the controller starts with PIOSC 16 MHz clock
    	// Enable and Configure GPIO here - SysCtlPeripheralEnable function
    	SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
    
    	// Configure pin 1 as output
    	GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1);
    
    	// while() function here
    	while(1) {
    		        // Turn on the LED
    		        GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1,1<<1);
    		        // Delay for some time
    		        SysCtlDelay(5333333);
    		        // Turn off the LED
    		        GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1,0<<1);
    		        // Delay for some time
    		        SysCtlDelay(5333333);
    	}
    
    }
    

  • Hello Shaswat,

    When I asked for the CCS project, I do not mean just the C File. It means the entire directory in the workspace with all the files.

    Anyways, I ran the code on my setup with my CCS project and the RED blinks as expected. I am able to Pause and Resume the code and view the disassembly.

    Most probably your launchpad is locked. You can use the LMFlashProgrammer to unlock the device. Please do go through the steps to do so

    1. Press Reset and Plug the USB cable

    2. Run the unlock sequence in LMFlashProgrammer

    3. Release the Reset

    4. Power cycle the launchpad.

    If the issue persists then send me entire project and not just one file.

    Regards

    Amit

  • 7608.TIVA.rar

    Hi Amit ,

    I tried with the LMFlashProgrammer but still its not working.

    I have uploaded the entire workspace project File. Kindly check.

    TIVA.rar
  • Hello Shaswat,

    The tm4c123gh6pm.cmd has been excluded from build. Please note that this file contains the information on code/data placement in the uC.

    I saw the same issue as you and when I included this file back, the code started working.

    How to include it back

    Right Click on this File -> There would be a menu item "Exclude from Build" with a tick in front of it. Just click it again to include it back in build.

    Regards

    Amit

  • Hi Amit,

    Thanks a Ton. It works fine as I was expected.

    But onw more thing to know for the knowledge purpose that how this file has been excluded from the directory. Is there any CCS setting mistake or it is by default configuration??  I am a newbie in arm micro-controller so is there code examples available for tiva launchpad, like code examples available for MSP430 launchpad. 

    Regards,

    Shaswat