Correct .text origin

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2118 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-10-03 17:39:58 +00:00
parent bc305bdf6a
commit 00fde1b830
2 changed files with 32 additions and 8 deletions

View File

@ -1,9 +1,6 @@
README
^^^^^^
References:
^^^^^^^^^^
Development Environment
^^^^^^^^^^^^^^^^^^^^^^^
@ -122,11 +119,38 @@ DFU
^^^
The linker files in these projects assume that you will be loading code
using STMicro built in USB DFU loader. In this case, the code will not
be positioned at the beginning of FLASH (0x80000000) but will be offset
to 0x08030000. If you need to change that origin, you will need to
using STMicro built-in USB DFU loader. In this case, the code will not
be positioned at the beginning of FLASH (0x08000000) but will be offset
to 0x08003000. If you need to change that origin, you will need to
edit the file(s) ld.script for each configuration.
The DFU SE PC-based software is available from the STMicro website,
http://www.st.com. General usage instructions:
1. Convert the NuttX Intel Hex file (nuttx.ihx) into a special DFU
file (nuttx.dfu)... see below for details.
2. Connect the STM3210E-EVAL board to your computer using a USB
cable.
3. Start the DFU loader on the STM3210E-EVAL board. You do this by
resetting the board while holding the "Key" button. Windows should
recognize that the DFU loader has been installed.
3. Run the DFU SE program to load nutt.dfu into FLASH.
What if the DFU loader is not in FLASH? The loader code is available
inside of the Demo dirctory of the USBLib ZIP file that can be downloaded
from the STMicro Website. You can build it using RIDE (or other toolchains);
you will need a JTAG emulator to burn it into FLASH the first time.
In order to use STMicro's built-in DFU loader, you will have to get
the NuttX binary into a special format with a .dfu extension. The
DFU SE PC_based software installation includes a file "DFU File Manager"
conversion program that a file in Intel Hex format to the special DFU
format. When you successfully build NuttX, you will find a file called
nutt.ihx in the top-level directory. That is the file that you should
provide to the DFU File Manager. You will need to rename it to nuttx.hex
in order to find it with the DFU File Manager. You will end up with
a file called nuttx.dfu that you can use with the STMicro DFU SE program.
STM3210E-EVAL-specific Configuration Options
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -36,12 +36,12 @@
/* The STM32F103ZET6 has 512Kb of FLASH beginning at address 0x0800:0000 and
* 64Kb of SRAM beginning at address 0x2000:0000. Here we assume that the
* STM3210E-EVAL's DFU bootloader is being used. In that case, the corrct
* load .text load address is 0x08030000 (leaving 320Kb).
* load .text load address is 0x08003000 (leaving 464Kb).
*/
MEMORY
{
flash (rx) : ORIGIN = 0x08030000, LENGTH = 320K
flash (rx) : ORIGIN = 0x08003000, LENGTH = 464K
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
}