Hi I have a program to send a word from the eval board over a serial port using UART. The program runs well using the JTAG emulator. But when I tried to bootload the program from the flash it does not work and the entire disassembly is shown filled with EEEE *illegal *opcode. I have run the example loader program (blink) and it runs pretty well from the flash ie., there is no problem with the flash programmer connection.I even tried using the ldf file as that of the loader program, still don't work. I am using BF533 and ST falsh link.Please help me finding the problem. #include<stdio.h> #include <cdefbf533.h void main(void) { unsigned char buffer; buffer=0x70; *pDMA7_PERIPHERAL_MAP=0x7000;//setting up the UART TX DMA regsiter *pUART_GCTL=0x1;//enabling the UART Clocks *pUART_LCR=0x0000;//Reset LCR regsiter *pUART_IER=0x0002;//enabling the receive and transmit buffer full interrupt *pDMA7_CONFIG=0x0000;//enabling autobuffer mode *pDMA7_START_ADDR=&buffer;//setting the pointer to the file as the starting address of the DMA *pDMA7_X_COUNT=1;//setting the count *pDMA7_X_MODIFY=0x1;//modifying register *pUART_LCR=0x0083;//enabling 8 bits,1stop bit,no parity *pUART_DLL=0x001D;//setting the baud rate *pUART_DLH=0x0000; *pDMA7_CONFIG=0x0001;//starting the DMA transfer } can anyone plz tell me why the PSD soft express software is used. Thanks in advance Reddy |
Booting from Flash
Started by ●March 24, 2004