- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Summary
This example project shows how to use an unconfigured SCB block as UART in the bootloadable project and as SPI master during bootloading process. This method can be used when all the available SCB blocks are used in the bootloadable project for UART communication and wants to implement an external memory (SPI) bootloader. This project will configure the SCB block for UART communication initially and re-configure it as SPI master when bootloader starts. Already available “NOR Flash Bootloader” project is modified to use an un-configured SCB block.
Changes made to the already available “NOR Flash Bootloader” project is explained below. Please refer the documentation for “NOR Flash Bootloader” for more details about how external memory bootloader project works.
Requirements
Design Tool: PSoC Creator 4.3
Programming language: C
Associated devices: All PSoC4 BLE devices
Required hardware: This project is tested with CY8CKIT-042-BLE-A Bluetooth® Low Energy 4.2 Compliant Pioneer Kit and S25FL064L Serial NOR flash.
Connections
SCB SPI connections between Flash and PSOC
MOSI | P0[0] |
MISO | P0[1] |
SCLK | P0[3] |
CS | P0[2] |
SCB UART connections
RX | P0[0] |
TX | P0[1] |
Dedicated UART Connections
TX | P1[5] |
PSoC Creator Schematic
Output
SCB block will be configured as UART when the bootloadable starts and print a message in UART terminal saying that, SCB is successfully configured for UART communication.
Message from dedicated UART block
Message from SCB configured as UART
When bootloader starts, the unconfigured SCB block will be re-configured as SPI master. Immediately after starting the SCB block as SPI master, device ID is read from flash to verify that SCB block is successfully configured as SPI master. This project is tested with S25FL064L and the device ID for this flash device is 0x01, 0x60 and 0x17.
Message after SCB is configured as SPI master.
- Labels:
-
PSoC 345 LP