Hello,
I have been developing a Custom Bootstrap Loader for the MSP430F5328 using Code Composer 6.0.1 and TIs compiler v4.3.3. I have followed the instructions posted on http://processors.wiki.ti.com/index.php/Custom_MSP430_BSL and tested using the suggestions listed on SLA450C. I am using UART to communicate to the device and have modified the BSL430_PI_USCIA.c and BSL_Device_file.h to accommodate my use. I have not modified the Low_Level_Init.asm file, but have added a function to turn on LEDs when entering the main bootloader sequences (Active Low). When testing the file and removing the Low_level_init.asm the file works as expected. I first flash the bootloader and modify the MSP430 properties to flash to the appropriate Zarea sections. When I add my application code, it seems like I never enter the bootloader section.
My main applications contains a function call to ((void (*)(void))0x1000)(); Yet , based on the unlit LEDs and unresponsive scripter, my program halts without entering the main function call in BSL430_Command_interpreter.c Are there any additional modifications required to make the bootloader function properly?
I greatly appreciate your assistance.
void main(void) { P5DIR |= (LED0|LED1); P5OUT &= (~(LED0|LED1)); // Reversed since they are Anodes unsigned char eventFlags = 0; volatile int i, ii; BSL430_API_RAM_Clear(); // Moved from BSL430_API_init() into independent function BSL430_API_init(); PI_init(); while (1) { eventFlags = PI_receivePacket(); if (eventFlags & DATA_RECEIVED) { interpretCommand(); } } }