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/LAUNCHXL2-RM57L: Power-on problem stuck on sci-debug

Part Number: LAUNCHXL2-RM57L
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello,

I am working on a project based on "HALCoGen Ethernet Driver and lwIP" example project. Everything is working on debug mode but when i try to power on board without connected computer,Program get stuck.

If a reset board, working correct.I try to power on external 5v jack then connect usb to pc. Board print out "." character for about 5 minutes then boot.if i reset board with reset buton, board boot correctly.

Thanks.

/** @file HL_sys_main.c 
*   @brief Application main file
*   @date 20.May.2014
*   @version 04.00.00
*
*   This file contains an empty main function,
*   which can be used for the application.
*/

/* (c) Texas Instruments 2009-2013, All rights reserved. */

/* USER CODE BEGIN (0) */
/* USER CODE END */

/* Include Files */

#include "HL_sys_common.h"
#include "HL_system.h"

/* USER CODE BEGIN (1) */
extern void EMAC_LwIP_Main (uint8_t * emacAddress);
/* USER CODE END */

/** @fn void main(void)
*   @brief Application main function
*   @note This function is empty by default.
*
*   This function is called after startup.
*   The user can use this function to implement the application.
*/

/* USER CODE BEGIN (2) */
/* USER CODE END */

uint8	emacAddress[6U] = 	{0x00U, 0x08U, 0xEEU, 0x03U, 0xA6U, 0x6CU};
uint32 	emacPhyAddress	=	1U;
uint8 ip_addr[4];

void main(void)
{
/* USER CODE BEGIN (3) */
	sciInit();
	EMAC_LwIP_Main(emacAddress);
/* USER CODE END */
}

/* USER CODE BEGIN (4) */
/* USER CODE END */

  • Hello Bilal,

    Does you code wait for a input on the terminal? There are no difference between PORRST and nRST in this demo code. I just did a test with the demo project, and didn't see the issue you got. I tried both nRST, PORRST buttons, and did the same test with power-cycling the HDK board (unplug/plug the power supply).
  • hello,
    there is no wait in code. i just build demo code and upload the board.is there any configuration on halcoden or ccs about this ?

    my halcoden driver enable tab is:

  • Looked at the lwip demo code, it outputs many characters to terminal through SCI. Can you check at which statement the CPU get stuck?
  • i cannot check because debug mode is not connected when self run hercules board. When i run on CCS debug mode there is no problem. Is there any debug mode when board run without usb connected?
  • You can connect the debugger to a Hercules part after it starts running code in standalone mode.

    You can do this even with the on-board XDS110 debugger (USB connection) but you need to make sure your CCS setup doesn't 'reset on connect' and then you need to launch the debugger through the target configuration file  (don't use the debugger icon or 'debug as' because you don't want to download and reprogram the part you just want to connect the debugger to it after it is already running).


    If you need help on the mechanics of doing this you can check with the CCS forum but basically you've got all you need.