cancel
Showing results for 
Search instead for 
Did you mean: 

STM3210E-EVAL Demo project and Keil MDK

pipiluxixi1
Associate II
Posted on December 29, 2008 at 01:18

STM3210E-EVAL Demo project and Keil MDK

5 REPLIES 5
pipiluxixi1
Associate II
Posted on May 17, 2011 at 12:57

Hi,

Can anyone help me?

I bought a STM3210E-EVAl board recently. I use Keil MDK(version 3.22) to compile the demo project(STM3210E-EVAL_Demo.Uv2, under the directory um0549\Demo\project\RVMDK, unziped from um0549.zip downloaded from www.st.com). And I use DfuSe tools to convert the Hex file to DFU file and download it to the board, reset the system, but nothing happened. The use of DfuSe is correct since everything is OK when I download the STM3210E-EVAL_Demo_V1.1.2.dfu contained in um0549.zip.

I just turned from Keil 8051 tools and 51MCU to STM32 and Keil MDK. Can anyone tell me how to make the demo project run correctly. This is my first step to STM32.

Thanks.

16-32micros
Associate III
Posted on May 17, 2011 at 12:57

Hi,

You can follow the steps in Section 3:Demonstration programming using the DFU

in the Demo Manual

http://www.st.com/stonline/products/literature/um/14703.pdf

. Note : There are two different DFU files to load ( one for the data {should take a while} and the other one for the program)

Cheers,

STOne-32.

pipiluxixi1
Associate II
Posted on May 17, 2011 at 12:57

I follow the steps and download those two files to the board. There is no problem when I download the image files contaied in the ..\um0549\images directory, which is provided by ST. My problem is, when I use Keil MDK to compile the demo project contaied in the ..um0549\Demo\project\RVMDK directory, get the HEX file, convert it to DFU file by DfuSe file manager. I think this the the program file and download it to the internal flash by DfuSe Demo. Reset the system, but there is nothing displayed on LCD.

I find that the DFU file converted from the compiled HEX file is about 53KB but DfuSe demonstrates that only about 41KB successfully downloaded.

Is there any problem when I convert HEX file to Dfu file?

PS. There is no problem when I download the same HEX file through UART。

16-32micros
Associate III
Posted on May 17, 2011 at 12:57

Dear pipiluxixi1,

By a simple computation 53-41 = 12Kbytes, I suspect that you have to move your Linker inside Keil/µVision to start at address 0x0 + 12Kbytes as defined in the IAP App Note

http://www.st.com/stonline/products/support/micro/files/an2557.zip

the First 12Kbytes are reserved for the DFU Bootloader in your case.

Note :

1) You have also to move your Vector table at this new offset also.

Cheers,

STOne-32.

pipiluxixi1
Associate II
Posted on May 17, 2011 at 12:57

Hi, STOne-32

Thank you very much for your answer.

Just like what you have said, it is because the DFU firmware itself occupies the same address space as the STM3210E-EVAL demo application image build by MDK.

When I set MDK linker and locate the demo application program to 0x08003000 and move the Vector Table to 0x08003000, the program runs normally as expected.

Best regards,

pipiluxixi1