Other Parts Discussed in Thread: EK-TM4C1294XL
Hi all:
I am using ek-TM4C1294xl boards and program in TI-rtos/NDK environment. Now I try to place two programs and one monitor program in the flash like below post.
e2e.ti.com/.../317657
I hope monitor program can decide (maybe check from eeprom value) which program (old or new version programs) need to run.
Now I test one program and one monitor program in the flash at first. The step are:
1. Download uartecho_TivaTM4c1294NCPDT program in the flash program address 0x30000
2. Download monitor program in the flash program address 0x0. Monitor program likes below:
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_gpio.h"
#include "inc/hw_flash.h"
#include "inc/hw_i2c.h"
#include "inc/hw_memmap.h"
#include "inc/hw_nvic.h"
#include "inc/hw_ssi.h"
#include "inc/hw_sysctl.h"
#include "inc/hw_types.h"
#include "inc/hw_uart.h"
#include "driverlib/uart.h"
#include "driverlib/rom.h"
int main(void) {
HWREG(NVIC_VTABLE) = 0x00030000;
__asm(" ldr r1, [r0]\n"
" mov sp, r1");
__asm(" ldr r0, [r0, #4]\n"
" bx r0\n");
}
But after these steps and reset the board. I can't control uart function. Maybe some errors happen. Could some body give me suggestions?
Sincerely,
Joey