Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: UNIFLASH, TM4C1294NCPDT,
Tool/software: Code Composer Studio
Dear TI community,
I am trying to flash an assembly program with the UniFlash standalone flash tool. The source code is given below.
.thumb
.cpu cortex-m4
.syntax unified
#define GPIO_PORT_CGC_R 0x400FE608
#define GPIO_PORTN0_DATA_R 0x40064004
#define GPIO_PORTN_DIR_R 0x40064400
#define GPIO_PORTN_DEN_R 0x4006451C
.section .text
.global main
main:
ldr R11, =GPIO_PORT_CGC_R
ldr R10, [R11]
ORR R10, #0x1000
STR R10, [R11]
NOP
NOP
NOP
NOP
ldr R11, =GPIO_PORTN_DIR_R
ldr R10, [R11]
ORR R10, #3
STR R10, [r11]
ldr R11, =GPIO_PORTN_DEN_R
ldr R10, [R11]
ORR R10, #3
STR R10, [R11]
ldr R11, =GPIO_PORTN_DATA_R
ldr R10, [R11]
ORR R10, #3
STR R10, [R11]
NOP
NOP
When I select the a,out that the GNU assembler generated as source file that should be flashed and press the "Load Image" button,
UniFlash says there was an error on the Debug Port. At the same time, it says the program is loaded succesfully (which is really strange in my eyes"
When I try to view the memory of the TM4C1294NCPDT it shows the bytes. However, if I want to look at the GPIO_PORTN_DATA_R it gives the following
And when I try to verify the image using the "Verify Image" button, it says it cannot load the file that has been selected.
which is extremely weird, since I am 100% sure the file is located in that directory and exist.
Does someone have a clue why UniFlash is behaving this way?
With kind regards,
Youri.





