Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

CCS 5.5 Debug session runs immediatly

Other Parts Discussed in Thread: MSP430F6636, MSP430F5529

Hello everyone,

I'm experiencing troubles with debug sessions for a certain project of mine:
once I start the debug session, the program runs immediately and does not execute.

I've seen some other threads concerning this topic, but nothing that suggests me a solution:

I'm running MSP430F6636 on a custom circuit board....

I've already accomplished SD Card writing with other programs on the board so hardware should not be a problem.

I've tried other "twin" Boards to get the same result....

update : I've tried the program on a msp430F5529 LP and got the same problem...

update 2: I've installed CCS 6, ran the same program on my custom board without any problems....
So it is a CCS v5.5 Issue is it not ?

I've  investigated further using an endless loop, to see at which point the phenomenon happens, and I Found out that i can go up to mounting the file system of the sd card, but as soon as I include opening a test file,
the debug session the debug session runs immediately....

Did somebody experienced the same issue(s)? Help or ideas where to look would be much appreciated.

The Project archive
2086.SD.zip

The Server log
8284.server.zip

Thanks
Cheers
Nessim

The main.c code:

#include "HAL/HAL.h"
#include "SD_Card/SD_Card.h"
#include <cstring>

int main()
{
	HAL_StopWatchdog();
	HAL_InitClocks();
	HAL_InitPorts();
	SD_Init();
	__enable_interrupt();
	// Wait on SD Card insertion.
	while ( ~ SD_AREG & SD_AFLAG_INSRT)
		;
	SD_MountFS();										// until here, the debug sessions starts normally
	SD_OpentFile("Abba.txt");
	while (1)
		;
	SD_WriteToFile("You can dance\rYou can jive\rHaving the time of your life");
	SD_CloseFile();
	if (SD_EREG)
	{
		// If no errors detected...
		GPIO_setOutputHighOnPin(GPIO_PORT_P5, GPIO_PIN5);
		GPIO_setOutputLowOnPin(GPIO_PORT_P5, GPIO_PIN3);
		while (1)
			;
	}
	else
	{
		GPIO_setOutputHighOnPin(GPIO_PORT_P5, GPIO_PIN3);
		GPIO_setOutputLowOnPin(GPIO_PORT_P5, GPIO_PIN5);
	}
	// Wait on sd card removal
	while (SD_AREG & SD_AFLAG_INSRT)
		;
	// wait on sd card insertion
	while ( ~ SD_AREG & SD_AFLAG_INSRT)
		;
	SD_MountFS();
	SD_OpentFile("AM.txt");
	SD_WriteToFile(
			"One night in Bangkok and the world's your oyster\rnot much between despair and ecstasy");
	SD_CloseFile();
	if (SD_EREG)
	{
		GPIO_setOutputHighOnPin(GPIO_PORT_P5, GPIO_PIN5);
		GPIO_setOutputLowOnPin(GPIO_PORT_P5, GPIO_PIN3);
		while (1)
			;
	}
	else
	{
		GPIO_setOutputHighOnPin(GPIO_PORT_P5, GPIO_PIN3);
		GPIO_setOutputLowOnPin(GPIO_PORT_P5, GPIO_PIN5);
	}
	// wait on sd card removal
	while (SD_AREG & SD_AFLAG_INSRT)
		;
	// wait on sd card insertion...
	while ( ~ SD_AREG & SD_AFLAG_INSRT)
		;
	SD_MountFS();
	SD_OpentFile("KG.txt");
	SD_WriteToFile("Get down on it!\rIf you really want it!");
	SD_CloseFile();
	if (SD_EREG)
	{
		GPIO_setOutputHighOnPin(GPIO_PORT_P5, GPIO_PIN5);
		GPIO_setOutputLowOnPin(GPIO_PORT_P5, GPIO_PIN3);
		while (1)
			;
	}
	else
	{
		GPIO_setOutputHighOnPin(GPIO_PORT_P5, GPIO_PIN3);
		GPIO_setOutputLowOnPin(GPIO_PORT_P5, GPIO_PIN5);
	}
	LPM0;
}

  • Nessim,

    I am able to reproduce this as well on 5529.  I thought maybe it was related to the fact that 5.5 and 6.0 use different compilers but even when I configure the project in CCSv5.5 to use the newer compiler I still get the same behaviour.  Thus it seems like a bug that has been fixed in the newer CCS.

    Do you need to stick with CCSv5.5 or is 6.0 an option?  

    John

  • Hello John,

    well happy to see that you reproduced it.

    I bought a full license some months ago for CCS 5, it would be a shame to have to buy it again....

    But CCS 6 is free at the moment right ? Meaning I can over 16 KB per project  ?

    Cheers

    Nessim

  • Nessim,

    If you bought CCSv5 within the past 12 months you will be able to upgrade your license to CCSv6 for free.  Basically when you buy CCS it comes with 12 months of subscription/maintenance service that gives you any major new updates.  YOu can go to www.ti.com/myregisteredsoftware then click on the manage button beside your license and there should be an upgrade license link.

    Regards,

    John