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; }