⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 本程序是基于NETOS操作系统的
💻
字号:
Flash ROM Write Application

This application is used to write to Flash ROM on
the NET+Works development board.  This version is designed to
be used from within the debugger, or loaded to RAM and executed
by the bootloader.  It cannot execute from flash ROM.

This example should work on all development boards.

To update the contents of Flash ROM, do the following:

1.  Build this application (naftpapp).
2.  Power up the development board and the ICE.
3.  Start the debugger and download the application to the
    board.
4.  Run the application.
5.  Use the Windows FTP client to transfer the new image to
    flash.  When asked for a username and password, use 'root'
    for the username, and then specify the root password (the
    default is 'Netsilicon').  Use the bin command to set
    binary mode.  Use the put command the transfer the new
    image.  Then end the session with the quit command.
    
This application uses the new Flash API from NET+OS 5 and requires
certain buffer sizes for optimal flash writing performance.  The 
BUFFERSIZE constant should be a multiple of the largest flash sector
size to to avoid erasing a sector more than once.

For example, the standard NET+50 development board uses AM29LV800BB
Flash chips, where the largest flash sector size is 64K and the size
of the smaller sectors add up to 64K.

If the NET+50 board is configured in 16 bit mode, the recommended
values for BUFFERSIZE are 64K, 128K and so on.  If the NET+50 board
is configured in 32 bit mode, the flash sector sizes are doubled and
the recommended values for BUFFERSIZE are 128K, 256K and so on.

The value of BUFFERSIZE is set to 128K to provide optimal flash
writing performance in both 16 and 32 bit modes.


The following files are provided with this application:

appconf.h           sets application configuration settings
.\32b\image.bld     used to build the big endian Green Hills version of the
                    application.  The build script creates a version that
                    can be debugged with Multi, and the file image.bin 
                    which can be written into a ROM that uses the bootloader.
makefile            Make file for the GNU toolset.
project.bld         
readme              this file
root.c              contains the applicationStart() function, that
                    creates an application thread
naftpapp.c          contains the RAM based FTP application code
naftpapp_connect.c  contains the DigiConnect version of the RAM based FTP
                    application code
project.bld         contains the generic project build script

In addition, the following files in the BSP directory are built
as part of this application:

reset.s         contains the reset code
appconf_api.c   contains run time access to the application configuration


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -