Other Parts Discussed in Thread: TMDSCNCD28379D,
Tool/software: Code Composer Studio
Hello,I'm doing some preliminary tests with the TIDM-1000 development kit. I'm using a TMDSCNCD28379D controlCARD. By following the document TIDUCJ0G I've set up the project pfc3phvienna_F2837x and I am able to debug the code from Code Composer Studio 10 without problems. However, I'm not able to boot the code from flash: if I power cycle the board, the diagnostics LEDs on the controlCARD stay off and also the current drain indicates that the code does not run. The diagnostics LEDs should be switched on in the main() function, therefore apparently the execution does not even get to main().
I believe that the controlCARD is configured correctly: I've loaded the sample project led_ex1_blinky and it boots fine from flash.
I suppose there is some section in the pfc3phvienna_F2837x project that does not get copied correctly from flash to RAM. The initialization is done in device.c in the function Device_init(void), see code below. Obviously _FLASH is defined.
Do you have any idea? Thank you!
L.
#ifdef _FLASH
//
// Copy time critical code and flash setup code to RAM. This includes the
// following functions: InitFlash();
//
// The RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart symbols
// are created by the linker. Refer to the device .cmd file.
//
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
//
// Call Flash Initialization to setup flash waitstates. This function must
// reside in RAM.
//
Flash_initModule(FLASH0CTRL_BASE, FLASH0ECC_BASE, DEVICE_FLASH_WAITSTATES);
// now copy any additional code that needs to be copied from flash to ram
memcpy(&isrcodefuncsRunStart, &isrcodefuncsLoadStart,(size_t)&isrcodefuncsLoadSize);
#endif