I'm using the LM4F132 and can't establish the communication between the bootloader (Uart 0) and the LM Flash Programmer. When the LM Flash Programmer tries to communicate with my target, I get the following error message: "Failed to establish communication with the board. To program using the serial port, the board must be programmed with the serial flash loader or a properly configured bootloader".
I'm using the following settings for the Flash Programmer:
Program Address Offset: 0x1000
COM5; Baud Rate 115200
transfer size 76
Auto Baud Support disabled
I'm following some hints posted in this forum and the code examples boot_demo1, boot_demo2 and boot_serial provided in dk-tm4c123g, trying to incorporate the use of the bootloader into the very beginning of my application (based on uC/OS-III). By now, I just want to use the ROM bootloader as follows:
MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);
MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
MAP_GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
MAP_UARTConfigSetExpClk(UART0_BASE, get_cpu_clock_frequency(), 115200,
(UART_CONFIG_PAR_NONE | UART_CONFIG_STOP_ONE |
UART_CONFIG_WLEN_8));
MAP_UARTEnable(UART0_BASE);
MAP_SysTickIntDisable();
MAP_SysTickDisable();
HWREG(NVIC_DIS0) = 0xffffffff;
HWREG(NVIC_DIS1) = 0xffffffff;
ROM_UpdateUART(); //or (*((void (*)(void))(*(uint32_t *)0x2c)))();
Besides that, I'm also using the LM4F232H5QD.icf file provided with IAR with no changes. As I could understand from this file, the flash/ROM initial address is set to 0x00000000. Am I right? 4251.LM4F232H5QD.zip
Could you guys help me out?
Thanks in advance,
Fernando