TMPM4G9
V1.0.0.0
|
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... | |
ISP_BOOT Flash_Write(PG2-PG7,Block1-Block15) Sample Application.
DO NOT USE THIS SOFTWARE WITHOUT THE SOFTWARE LISENCE AGREEMENT.
Copyright(C) Toshiba Electronic Device Solutions Corporation 2019
#define ACK 0x06 /* Acknowledgment.(Transmission request / Reception complete) : TARGET¨HOST */ |
#define DATA_LEN (1 + 2 + 128 + 2) /* Number of bytes per block in application transfer. */ |
#define EOT 0x04 /* Transfer end. : HOST¨TARGET */ |
#define FLASH_CMD_A0 0xA0 |
#define NAK 0x15 /* Request for retransmission. : TARGET¨HOST */ |
#define SOH 0x01 /* Header of received data. : 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.) */ |
void Deselect_AREA0 | ( | void | ) |
AREA-0 release.
- |
- |
void Get_BSY_Status | ( | void | ) |
Get Flash Status "Busy".
- |
- |
void Get_RDY_Status | ( | void | ) |
Get Flash Status "Ready".
- |
- |
uint32_t RecvData | ( | uint8_t * | pData, |
uint32_t | nLen | ||
) |
void Select_AREA0 | ( | void | ) |
AREA-0 selection.
- |
- |
void SendData | ( | uint8_t * | pData, |
uint32_t | nLen | ||
) |