(english version scroll down please)

Mecrisp Stelaris fuer PsoC 5LP CY8C5868AXI von Cypress, 
adaptiert auf das Eva-Board CY8CKIT-050



Einleitung:
Die vorliegende Portierung beinhaltet Mecrisp-FORTH fuer den PsoC des CY8CKIT-050 out of the box. 
Der FORTH Interpreter bietet die Moeglichkeit die Hardwarefunktionen des PSoC durch Aufruf der API's interaktiv zur Ausfuehrung zu bringen und Applikationen in FORTH zu erstellen.

Fuer die Inbetriebnahme von blinky werden benoetigt:

     - Hexfile UART_RxTx01.hex
     - blinky.txt
     - Evaluation Board CY8C5868AXI von Cypress (div. Distributoren)
     - USB->Seriell Kabel z.B. Ugreen USB auf RS232 Seriell Adapter (div. Distributoren)
     - Terminal Programm z.B.  Tera Term (kostenloser Download)
     - PSoC-Programmer http://www.cypress.com/products/psoc-programming-solutions
     - Alternativ: die Installation von PSoC-Creator enthaelt den PSoC-Programmer und ist separat nutzbar (Empfehlung)
       PSoC-Creator 3.3 or higher http://www.cypress.com/products/psoc-creator-integrated-design-environment-ide
     - PC mit Windows 64Bit, 2 x USB


Fuer die Inbetriebnahme der kompletten Entwicklungsumgebung von PSoC-5LP / Mecrisp-FORTH werden benoetigt:

     - Sourcecode Mecrisp fuer cy8c5868axi
     - Projektfile: UART_RxTx01.cywrk (im Sourcecode von Mecrisp enthalten)
     - Evaluation Board CY8C5868AXI von Cypress (div. Distributoren)
     - USB->Seriell Kabel z.B. Ugreen USB auf RS232 Seriell Adapter (div. Distributoren)
     - Terminal Programm z.B.  Tera Term (kostenloser Download)
     - PSoC-Creator 3.3 or higher http://www.cypress.com/products/psoc-creator-integrated-design-environment-ide
     - PC mit Windows 64Bit, 2 x USB

	
Inbetriebnahme blinky:
 
1. mecrisp-stelaris-2.4.0 oder hoeher nach C:\FORTH\Mecrisp\ kopieren:

C:\FORTH\Mecrisp\mecrisp-stellaris-2.4.0


2. Die Projekt-Directory UART_RxTx01.cydsn aus ..\mecrisp-stellaris-2.2.0\cy8c5868axi\ nach C:\Cypress\ kopieren:
	
C:\Cypress\UART_RxTx01.cydsn


3. Eva-Board nach CY8CKIT-050_PSoC 5LP DVK Kit_Guide.pdf wie in CY8CKIT-050-Start.jpg dargestellt in Betrieb nehmen. Die Steckverbindungen fuer die UART sind nach CY8CKIT-050-UART-connect.png bzw. CY8CKIT-050-UART-connect.jpg herzustellen. 


4. Das Terminal-Programm installieren und anpassen:

Setup Terminal Programm with the following settings
      - Baudrate       : 57600 bits
      - Data bits      : 8
      - Parity         : None
      - Stop bits      : 1
      - Flow control   : Hardware

5. PSoC-Programmer oder PSoC-Creator (Empfehlung) installieren


6. UART_RxTx01.hex mit PSoC-Programmer ins Flash schreiben


7. Terminal-Programm starten. 

Nach dem Starten von FORTH soll folgender Text angezeigt werden:

'Mecrisp-Stellaris 2.2.0 by Matthias Koch ported at CY8C5868AXI by Klaus Zobawa 2017'     


8. blinky.txt uerber da Terminal laden


9. blinky1, blinky2 oder Treppauf-Treppab aufrufen, mit belibiger Taste beenden

     
	
Inbetriebnahme vollstaendige Entwicklungsumgebung:

1. mecrisp-stelaris-2.4.0 oder hoeher nach C:\FORTH\Mecrisp\ kopieren:

C:\FORTH\Mecrisp\mecrisp-stellaris-2.4.0


2. Die Projekt-Directory UART_RxTx01.cydsn aus ..\mecrisp-stellaris-2.2.0\cy8c5868axi\ nach C:\Cypress\ kopieren:
	
C:\Cypress\UART_RxTx01.cydsn


3. Eva-Board nach CY8CKIT-050_PSoC 5LP DVK Kit_Guide.pdf wie in CY8CKIT-050-Start.jpg dargestellt in Betrieb nehmen. Die Steckverbindungen fuer die UART sind nach CY8CKIT-050-UART-connect.png bzw. CY8CKIT-050-UART-connect.jpg herzustellen. 


4. Das Terminal-Programm installieren und anpassen:

Setup Terminal Programm with the following settings
      - Baudrate       : 57600 bits
      - Data bits      : 8
      - Parity         : None
      - Stop bits      : 1
      - Flow control   : Hardware


5. PSoC-Creator installieren und starten. Unter Examples and Kits das Eva-Board installieren.


6. Unter Recent Projects mit Open Existing Project  UART_RxTx01.cywrk oeffnen und anklicken.


7.  Unter Build mit Clean und Build UART_RxTx01 ein neues image generieren und unter Debug mit Program den
PsoC auf dem Eva-Board programmieren. Nach korrektem Abschluss leuchtet LED3.


8. Terminal-Programm starten. 

Nach dem Starten von FORTH soll folgender Text angezeigt werden:

'Mecrisp-Stellaris 2.2.0 by Matthias Koch ported at CY8C5868AXI by Klaus Zobawa 2017'

Ab hier steht das Mecrisp-Stelaris FORTH zur Verfuegung

Beispiel Eingabe:

LEDon()  \ schaltet LED4 an
LEDoff() \ schaltet LED4 aus

Beispiel-Sourcecode:

Blinky.txt


9. Software Anpassungen:

Saemtliche von PSoC-Creator zur Verfuegung gestellten API's koennen ueber HAL.s dem FORTH-System bekannt gemacht werden. Beispiele sind HAL.s zu entnehmen. 







English version:

Mecrisp Stelaris for PsoC 5LP CY8C5868AXI from Cypress,
adapted to the Eva board CY8CKIT-050

Introduction:
This port includes mecrisp-FORTH for the PsoC of the CY8CKIT-050 out of the box.
The FORTH interpreter offers the possibility to interactively execute the hardware functions of the PSoC by calling the APIs and to create applications in FORTH.

For the commissioning of blinky you need:

     - Hexfile UART_RxTx01.hex
     - blinky.txt
     - Evaluation Board CY8C5868AXI from Cypress (div. Distributors)
     - USB-> serial cable e.g. Ugreen USB to RS232 serial adapter (various distributors)
     - Terminal program e.g. Tera Term (free download)
     - PSoC Programmer http://www.cypress.com/products/psoc-programming-solutions
     - Alternatively: the installation of PSoC-Creator contains the PSoC-Programmer and can be used separately (recommendation)
       PSoC Creator 3.3 or higher http://www.cypress.com/products/psoc-creator-integrated-design-environment-ide
     - PC with Windows 64Bit, 2 x USB


For the commissioning of the complete development environment from PSoC-5LP / Mecrisp-FORTH you will need:

     - Sourcecode mecrisp for cy8c5868axi
     - Project file: UART_RxTx01.cywrk (included in the source code of Mecrisp)
     - Evaluation Board CY8C5868AXI from Cypress (div. Distributors)
     - USB-> serial cable e.g. Ugreen USB to RS232 serial adapter (various distributors)
     - Terminal program e.g. Tera Term (free download)
     - PSoC Creator 3.3 or higher http://www.cypress.com/products/psoc-creator-integrated-design-environment-ide
     - PC with Windows 64Bit, 2 x USB


Commissioning blinky:
 
1. Copy mecrisp-stelaris-2.4.0 or higher to C: \ FORTH \ Mecrisp \:

C: \ FORTH \ Mecrisp \ mecrisp-stellaris-2.4.0


2. Copy the project directory UART_RxTx01.cydsn from .. \ mecrisp-stellaris-2.2.0 \ cy8c5868axi \ to C: \ Cypress \:

C: \ Cypress \ UART_RxTx01.cydsn


3. Start Eva-Board according to CY8CKIT-050_PSoC 5LP DVK Kit_Guide.pdf as shown in CY8CKIT-050-Start.jpg. The plug-in connections for the UART must be made in accordance with CY8CKIT-050-UART-connect.png or CY8CKIT-050-UART-connect.jpg.


4. Install and customize the terminal program:

Setup Terminal Program with the following settings
      - Baud rate: 57600 bits
      - Data bits: 8
      - Parity: None
      - Stop bits: 1
      - Flow control: Hardware

5. Install PSoC Programmer or PSoC Creator (recommendation)


6. Write UART_RxTx01.hex to Flash with PSoC-Programmer


7. Start terminal program.

After starting FORTH the following text should be displayed:

'Mecrisp-Stellaris 2.2.0 by Matthias Koch ported at CY8C5868AXI by Klaus Zobawa 2017'


8. Load blinky.txt via terminal


9. Call blinky1, blinky2 or Treppauf-Treppab, any key stop it

     

Commissioning complete development environment:

1. Copy mecrisp-stelaris-2.4.0 or higher to C: \ FORTH \ Mecrisp \:

C: \ FORTH \ Mecrisp \ mecrisp-stellaris-2.4.0


2. Copy the project directory UART_RxTx01.cydsn from .. \ mecrisp-stellaris-2.2.0 \ cy8c5868axi \ to C: \ Cypress \:

C: \ Cypress \ UART_RxTx01.cydsn


3. Start Eva-Board according to CY8CKIT-050_PSoC 5LP DVK Kit_Guide.pdf as shown in CY8CKIT-050-Start.jpg. The plug-in connections for the UART must be made in accordance with CY8CKIT-050-UART-connect.png or CY8CKIT-050-UART-connect.jpg.


4. Install and customize the terminal program:

Setup Terminal Program with the following settings
      - Baud rate: 57600 bits
      - Data bits: 8
      - Parity: None
      - Stop bits: 1
      - Flow control: Hardware


5. Install and start PSoC-Creator. Install the Eva board under Examples and Kits.


6. Open Recent Projects with Open Existing Project UART_RxTx01.cywrk and click.


7. Under Build with Clean and Build UART_RxTx01 generate a new image and debug with the program
Program PsoC on the Eve board. After correct completion, LED3 lights up.


8. Start terminal program.

After starting FORTH the following text should be displayed:

'Mecrisp-Stellaris 2.2.0 by Matthias Koch ported at CY8C5868AXI by Klaus Zobawa 2017'

From here the Mecrisp-Stelaris FORTH is available

Example input:

LEDon () turns on LED4
LEDoff () switches LED4 off

Example source code:

Blinky.txt


9. Software adjustments:

All of the APIs provided by PSoC Creator can be introduced to the FORTH system via HAL.s. Examples can be found in HAL.s.