TMPM4G9  V1.0.0.0
Flash_Write.h File Reference

ISP_BOOT Flash_Write(PG2-PG7,Block1-Block15) Sample Application. More...

#include "stdio.h"
#include "system_TMPM4Gx.h"
#include "TMPM4Gx.h"
#include "txz_uart.h"
#include "txz_t32a.h"

Go to the source code of this file.

Macros

#define DATA_LEN   (1 + 2 + 128 + 2) /* Number of bytes per block in application transfer. */
 
#define SOH   0x01 /* Header of received data. : HOST¨TARGET */
 
#define ACK   0x06 /* Acknowledgment.(Transmission request / Reception complete) : TARGET¨HOST */
 
#define NAK   0x15 /* Request for retransmission. : TARGET¨HOST */
 
#define EOT   0x04 /* Transfer end. : HOST¨TARGET */
 
#define WRITE_BG_ADDR   (0x00002000UL) /* Write to FLASH from PG2 (address 0x00002000). */
 
#define WRITE_SIZE   128 /* Write size.(Adopted 128-bytes of XMODEM/CRC standard.) */
 
#define FLASH_CMD_A0   0xA0
 

Functions

void Get_RDY_Status (void)
 Get Flash Status "Ready". More...
 
void Get_BSY_Status (void)
 Get Flash Status "Busy". More...
 
void SendData (uint8_t *pData, uint32_t nLen)
 
uint32_t RecvData (uint8_t *pData, uint32_t nLen)
 
void Select_AREA0 (void)
 AREA-0 selection. More...
 
void Deselect_AREA0 (void)
 AREA-0 release. More...
 

Detailed Description

ISP_BOOT Flash_Write(PG2-PG7,Block1-Block15) Sample Application.

Version
V1.1.0.0 $Date:: 2018-11-29

DO NOT USE THIS SOFTWARE WITHOUT THE SOFTWARE LISENCE AGREEMENT.

Copyright(C) Toshiba Electronic Device Solutions Corporation 2019

Macro Definition Documentation

§ ACK

#define ACK   0x06 /* Acknowledgment.(Transmission request / Reception complete) : TARGET¨HOST */

§ DATA_LEN

#define DATA_LEN   (1 + 2 + 128 + 2) /* Number of bytes per block in application transfer. */

§ EOT

#define EOT   0x04 /* Transfer end. : HOST¨TARGET */

§ FLASH_CMD_A0

#define FLASH_CMD_A0   0xA0

§ NAK

#define NAK   0x15 /* Request for retransmission. : TARGET¨HOST */

§ SOH

#define SOH   0x01 /* Header of received data. : HOST¨TARGET */

§ WRITE_BG_ADDR

#define WRITE_BG_ADDR   (0x00002000UL) /* Write to FLASH from PG2 (address 0x00002000). */

§ WRITE_SIZE

#define WRITE_SIZE   128 /* Write size.(Adopted 128-bytes of XMODEM/CRC standard.) */

Function Documentation

§ Deselect_AREA0()

void Deselect_AREA0 ( void  )

AREA-0 release.

Parameters
-
Return values
-
Note
-

§ Get_BSY_Status()

void Get_BSY_Status ( void  )

Get Flash Status "Busy".

Parameters
-
Return values
-
Note
-

§ Get_RDY_Status()

void Get_RDY_Status ( void  )

Get Flash Status "Ready".

Parameters
-
Return values
-
Note
-

§ RecvData()

uint32_t RecvData ( uint8_t *  pData,
uint32_t  nLen 
)

§ Select_AREA0()

void Select_AREA0 ( void  )

AREA-0 selection.

Parameters
-
Return values
-
Note
-

§ SendData()

void SendData ( uint8_t *  pData,
uint32_t  nLen 
)