English
Language : 

AN2675 Datasheet, PDF (20/24 Pages) STMicroelectronics – STR91xFA in-application programming
IAP using HTTP
AN2675
3.5
3.5.1
3.5.2
Running the IAP application
User project configuration
● The user application to be loaded must be built at address 0x80000 which is the
location of Bank0 if it has been remapped. There is no need to remap Bank0 and
Bank1 as this has already been done in the IAP software.
● In the file 91x_fmi.h, uncomment the line "#define Remap_Bank_1" to be compatible
with the bank remapping.
An example is provided with this application to show the project settings of a user program
which can be loaded in the STR91xFA internal Flash using IAP.
How to start IAP operation
At reset, the position of the joystick button selects if IAP operation is started or not:
● If the joystick button is pressed in, the IAP starts.
● Else, the system jumps to the user application stored in Bank0.
To use the IAP driver efficiently, please use the following procedure:
1. 1. Using the CAPS tool, remap the banks of the Flash memory like this:
Bank 1 at 0x00 and make it the boot bank at power up.
Bank 0 at 0x80000.
2. Using JTAG, load the IAP driver into Bank1.
3. Connect the STR912 board to a PC using a crossover Ethernet cable or through an
Ethernet switch.
4. If you are using a firewall application, you will need to disable it.
5. Press the reset button while holding the joystick button pressed in to start the IAP
process.
6. With an internet browser, connect to the board using the following address:
192.168.0.1. The page shown in Figure 15 should appear on the browser:
7. Select the directory of the binary file of the new firmware to upload and press the Send
File button.
8. When the transfer is terminated, the page in Figure 16 is displayed
9. If you want to execute the uploaded code, select Jump and validate. Or, if you want to
upload another file, select Back and validate.
20/24