Netcruzer Library API  V2.03
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
nz_xflashDefsSbc66.h File Reference

External Flash Defines for SBC66 range of boards. More...

Go to the source code of this file.

Data Structures

union  _FIRMWARE_STATE
 
struct  _FIRMWARE_INFO
 

Macros

#define MEM_VECTORS_START   0x00000000
 
#define MEM_VECTORS_END   0x00000400
 
#define XFLASH_USERSPACE_START   0x00820000
 
#define XFLASH_USERSPACE_END   0x00900000
 
#define XFLASH_FIRMWAREA_INFO_ADR   0
 
#define XFLASH_FIRMWAREA_ADR   0x1000
 
#define XFLASH_FIRMWAREA_CONFIG   0x40000
 
#define XFLASH_FIRMWAREB_INFO_ADR   0x42000
 
#define XFLASH_FIRMWAREB_ADR   0x43000
 
#define XFLASH_FIRMWAREB_CONFIG   0x82000
 
#define XFLASH_MODIFIED_CONFIG   0x84000
 
#define XFLASH_FIRMWAREB_OFFSET_FROMA   (XFLASH_FIRMWAREB_INFO_ADR - XFLASH_FIRMWAREA_INFO_ADR)
 
#define XFLASH_FIRMWARE_SIZE_IN_SECTORS   63
 
#define XFLASH_FIRMWARE_CONFIG_SIZE_IN_SECTORS   2
 
#define XFLASH_SECTOR_SIZE   4096
 
#define XFLASH_USER_SPACE_ADR   0x86000
 
#define FIRMWARE_STATE_NEW   0b11111111
 
#define FIRMWARE_STATE_CURRENT   0b11111110
 
#define FIRMWARE_STATE_PREVIOUS   0b11111100
 
#define FIRMWARE_STATE_RESTORED   0b11111000
 
#define FIRMWARE_STATE_FAULTY   0b11110000
 
#define FIRMWARE_INFO_MAGIC_NUMBER   0x536A
 

Typedefs

typedef union _FIRMWARE_STATE FIRMWARE_STATE
 
typedef struct _FIRMWARE_INFO FIRMWARE_INFO
 

Detailed Description

External Flash Defines for SBC66 range of boards.

Author
Modtronix Engineering
Dependencies:
none
Compiler:
MPLAB XC16

Description

Code for using and configuring I/O ports

Software License Agreement

The software supplied herewith is owned by Modtronix Engineering, and is protected under applicable copyright laws. The software supplied herewith is intended and supplied to you, the Company customer, for use solely and exclusively on products manufactured by Modtronix Engineering. The code may be modified and can be used free of charge for commercial and non commercial applications. All rights are reserved. Any use in violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil liability for the breach of the terms and conditions of this license.

THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

File History

2013-11-20, David H. (DH):

  • Initial version

Typedef Documentation

typedef struct _FIRMWARE_INFO FIRMWARE_INFO

There are two copies of the firmware in Flash, FirmwareA and FirmwareB. Both have an associated "Firmware Info" sector.

The FirmwareA and FirmwareB both have a Firmware Info structure. 0x0 - 0x7f contains information on the Firmware. 0x80 - 0xfff contains the default configuation data for the firmware (external EEPROM).

!!!!! IMPORTANT !!!!! Ensure this structure is NOT larger than 128 bytes

Gives the current state of FirmwareA and FirmwareB. Possible conditions are: