Other Parts Discussed in Thread: EK-LM3S811, LM3S811, TM4C123GH6ZRB
Hi,
I am using Stellaris LM4F232H5BB with IAR EWARM IDE and have a couple questions and hope that you could help since I could not find the answer from previous E2E forum posts. Here is my scenario:
1. My custom board firmware is functioning as it should. I want to use UART0 to program Stellaris CPU without JTAG.
2. My UART0 is working for main user interface with configuration: 115200, N-8-1 and no control flow.
3. I verified that Stellaris invoked the ROM UART bootloader per dk-lm3s811 boot_demo2.c:
//
// Call the boot loader so that it will listen for an update on the UART.
//
(*((void (*)(void))(*(unsigned long *)0x2c)))();
4. I am using TI built “sflash.exe” from Stellaris development package.
5. I used “sflash my.bin –c 5 –d” for downloading “my.bin” through COM5 and no auto baud. “my.bin” has a file size of 155344 (0x25ED0) bytes
6. I have a serial sniffer and the sniffer show sflash sent “0B 51 21 00 00 00 00 00 02 5E D0”. This is exactly what sflash should send from the sflash.c:
//
// Build up the download command and send it to the board.
//
g_ucBuffer[0] = COMMAND_DOWNLOAD;
g_ucBuffer[1] = (unsigned char)(ulTransferStart >> 24);
g_ucBuffer[2] = (unsigned char)(ulTransferStart >> 16);
g_ucBuffer[3] = (unsigned char)(ulTransferStart >> 8);
g_ucBuffer[4] = (unsigned char)ulTransferStart;
g_ucBuffer[5] = (unsigned char)(ulTransferLength>>24);
g_ucBuffer[6] = (unsigned char)(ulTransferLength>>16);
g_ucBuffer[7] = (unsigned char)(ulTransferLength>>8);
g_ucBuffer[8] = (unsigned char)ulTransferLength;
7. Sniffer shows, Stellaris returns 0x51.
My questions are:
8. Is 0x2c valid in item 3 for LM4F232H5BB?
9. From the dk package, I couldn’t get what 0x51 means. Any input?
Thanks,
Dennis Nguyen