NXP Semiconductors freescale TWR-S08PT60 Скачать руководство пользователя страница 8

 

TWRS08PT60LAB

 

TWR

S08PT60

 

Lab

 

Guide

 

Page

 

8

 

of

 

11

 

 

10

 

Lab

 

7

—Flash and EEPROM demo

 

This lab will show how to use Flash and EEPROM typical operational commands: Erase Verify All Blocks, 
Erase Verify Flash/EEPROM block, Erase Verify Flash/EEPROM section, Program EEPROM/Flash, Erase 
EEPROM/Flash sector, Erase EEPROM/Flash block, Erase all blocks. Follow steps below to play with this 
demo: 

1.

 

Make sure the latest P&E OSBDM Virtual Serial Toolkit is installed. Please refer to TWR-S08PT60 

Quick Start Guide for installation details 

2.

 

Make sure the board is powered with USB connection and the S08PT60_Flash_Lab code is 

downloaded into the board.  

3.

 

Open P&E Terminal Utility, configure properties as below followed by clicking on 

Open Serial Port

Port: USB COM; Baud: 9600; Parity: None; Bits: 8 

4.

 

Press and release SW4 (RESET) button, the welcome message and the commands list will be 

printed on Terminal. 

5.

 

Enter 

help

 in the command line beginning with 

“CMD>”.

 The command list will be printed on 

Terminal. 

6.

 

Enter the command 

ev_fb fc00

 to erase verify (blank check) the whole flash block containing 

address 0xfc00, where 

fc00

 is the address in hex in the flash block. The following message will be 

shown as a result of the command: 

“EraseVerify

 

flash

 

block

 

failed

 

(i.e.,

 

flash

 

is

 

not

 

blank)!”

. This is 

correct because the flash block contains code that is running. 

7.

 

Enter the command 

ev_eep 3100

 to erase verify (blank check) the whole EEPROM block 

containing address 0x3100. The following message will be shown as a result of this command

“EraseVerify

 

EEPROM

 

block

 

success

 

(EEPROM

 

is

 

blank)!”

. This is correct because the EEPROM block 

has not been programmed. 

8.

 

Enter the command 

ev_fs fc00 10

 to erase verify (blank check) the flash section starting from 

0xfc00 with size of 10 longwords. The following message will be shown as a result of the command: 

“EraseVerify

 

flash

 

section

 

success

 

(flash

 

section

 

is

 

blank)!”

  This is correct because this flash section has 

not been programmed. 

9.

 

Enter the command 

ev_fs 3200 100

 to erase verify (blank check) the flash section starting from 

0x3200 with size of 100 longwords. The following message will be shown as a result of the 
command: 

“EraseVerify

 

flash

 

section

 

failed

 

(i.e.,

 

flash

 

section

 

is

 

not

 

blank)!”

 

 This is correct because this 

flash section has been programmed with the LAB code. 

10.

 

Enter the command 

ev_eeps 3100 100

 to erase verify (blank check) the EEPROM section starting 

from 0x3100 with size of 100 bytes. The following message will be shown as a result of the 
command: 

“EraseVerify

 

EEPROM

 

section

 

success

 

(EEPROM

 

section

 

is

 

blank)!”

  This is correct because 

this EEPROM section has not been programmed. 

11.

 

Enter the command 

ev_all

 to erase verify (blank check) all blocks including the flash block and 

EEPROM block. The following message will be shown as a result of the command: 

“EraseVerify

 

all

 

Содержание freescale TWR-S08PT60

Страница 1: ...Freescale Semiconductor Inc TWRS08PT60LAB TWR S08PT60 Lab Guide Rev 1 0...

Страница 2: ...re Requirements 3 3 Default Jumper Settings 3 4 Lab 1 Touch Sensing Interface TSI with low power demo 5 5 Lab 2 Potentiometer demo 5 6 Lab 3 Accelerometer demo 6 7 Lab 4 UART loop demo 6 8 Lab 5 IR de...

Страница 3: ...h the standalone Flash EEPROM lab TWR S08PT60_flash_lab as well as the BLDC demo TWR S08PT60_bldc_demo 2 Software Requirements Compiler linker and debugger CodeWarrior 10 1 or newer with S08PT60 servi...

Страница 4: ...3 Accelerometer default address J12 open Accelerometer INT1 J15 open Accelerometer INT2 J16 1 2 OSBDM to onboard PT60 BKGD J17 2 3 External clock EXTAL J18 2 3 External clock XTAL J20 2 3 TWRPI to PT...

Страница 5: ...wake up MCU and restore normal running Press and release SW2 to enter potentiometer demo 5 If any touch pad is touched the corresponding LED will be toggled and if no touch for 5 seconds the microcont...

Страница 6: ...W3 The following messages will be shown on the terminal Test UART if LED flashes it indicates error Press and release SW3 to enter IR demo Wait for a few seconds it will print UART test result UART co...

Страница 7: ...r to the board 4 Switch the demo mode from Lab 1 to Lab 5 by following the SW2 and SW3 steps in previous labs 5 Press and release the button labelled SW3 the following messages will be shown on the te...

Страница 8: ...h block contains code that is running 7 Enter the command ev_eep 3100 to erase verify blank check the whole EEPROM block containing address 0x3100 The following message will be shown as a result of th...

Страница 9: ...lash section is not blank This is correct because this flash section has been programmed in Step 13 16 Enter the command ers_eeps 3100 to erase the EEPROM sector at address 0x3100 The following messag...

Страница 10: ...ite www freescale com tower The following steps show how to work with this demo 1 Download S08PT60_BLDC_demo code to the board via OSBDM 2 Disconnect the USB cable from PC to turn off power to the boa...

Страница 11: ...sensor 8 Press and release SW2 to stop motor spinning 9 Disconnect the power supply from P2 of APMOTOR56F800E Learn More For more information about Freescale products please visit www freescale com 8b...

Отзывы: