CYW920829M2EVK-02 BSP
Peripheral Default BSP Settings
Resource Parameter Value Remarks
UART Flow control No flow control
Data format 8N1
Baud rate 115200

Note:

The following pins needs to be connected via 0 ohm resistors on CYW9BTM2BASE3

I2S

  • Default P0.4, P3.2 is connected to RGB LED, UART_RX via R83, R95 remove these and install R84, R96 to use I2S_MCLK
  • Default P0.5, P3.3 is connected to USER_BTN1, UART_TX via R86, R98 remove these and install R85, R97 to use I2S_TX_SCK
  • Default P1.0, P1.4 is connected to USER_BTN2, D2 via R87, R91 remove it and install R88, R92 to use I2S_TX_WS
  • Default P1.1, P1.4 is connected to USER_LED1, USER_BTN2 via R90, R94 remove these and install R89, R93 to use I2S_TX_DATA

SPI

  • Default P1.0 is connected to USER_BTN2 via R87 remove it and install R104 to use SPI_CS
  • Default P1.1 is connected to USER_LED1 via R90 remove it and install R105 to use SPI_CLK
  • Default D4 is connected to SWDCK via R100 remove it and install R101 to use SPI_MISO
  • Default D5 is connected to SWDIO via R102 remove it and install R103 to use SPI_MOSI

LPO

  • Default P5.0 is connected to CAN_RX via R99 remove it and install R55 to use LPO_OUT

IMU

  • Remove R117 and install R48 to use CS and INT1 pin of IMU

The following pins needs to be connected via 0 ohm resistors on CYW920829M2IPA2

  • Default R3 is connected at position BC to use TX10, for TX0 connect R3 at position AC

UART function

If cy_retarget_io_init function is used UART receive does not function as required, it is recommended to use the cy_retarget_io_init_fc function. Syntax: cy_retarget_io_init_fc(CYBSP_DEBUG_UART_TX, CYBSP_DEBUG_UART_RX, CYBSP_DEBUG_UART_CTS,CYBSP_DEBUG_UART_RTS,CY_RETARGET_IO_BAUDRATE);

Security Provisioning Settings

This board supports enhanced security features which can be configured as part of development. For details about exactly what is available and how to use it, see the Secure Boot SDK User Guide. Configuring these settings makes use of the CySecureTools Python package. CYW20829 specific details are available in the README_CYW20829.md file.

When using CySecureTools to initialize the application, it will generate json files for each possible mode. Some of those modes require information about how to access external memory if it is available. These settings are specific to the external memory attached to your board. For this board, the following settings should be used. Note, a description of what each of the settings means is provided at the end.

CYW920829M2EVK-02 Specific External Memory Provisioning Settings

    "smif_config":
    {
        "smif_configuration": {
            "description": "SMIF Configuration",
            "applicable_conf": "SFDP 1.5, QER_1, QER_2, QER_3, QER_4, QER_5, QER_6, Non-SFDP",
            "value": "QER_1"
        },
        "chip_select": {
            "description": "Chip Select",
            "applicable_conf": "CS0, CS1",
            "value": "CS0"
        },
        "data_width": {
            "description": "Data Width",
            "applicable_conf": "1X, 2X, 4X, 8X",
            "value": "4X"
        },
        "data_select": {
            "description": "Data Select",
            "applicable_conf": "SEL0, SEL1, SEL2, SEL3",
            "value": "SEL0"
        },
        "addressing_mode": {
            "description": "Addressing Mode",
            "applicable_conf": "3-byte or 4-byte",
            "value": "4-byte"
        }
    },

Getting Started

To get started with the no secure policy, the following commands can be run:
$ cysecuretools set-ocd –name openocd –path <Path to ModusToolbox™ tools install>/openocd
$ cysecuretools -t cyw20829 init
Update the SMIF config settings in the policy/policy_no_secure.json file
$ cysecuretools -t cyw20829 -p policy/policy_no_secure.json provision-device
$ cysecuretools -t cyw20829 -p policy/policy_reprovisioning_no_secure.json reprovision-device

External Memory Provisioning Settings

smif_configuration:

This defines how information about the memory is discovered.
Valid options are:

  • "SFDP 1.5" - Use standard SFDP (Serial Flash Discoverable Parameter).
  • "QER_1" - Use standard SFDP with Quad Enable Requirements 1.
  • "QER_2" - Use standard SFDP with Quad Enable Requirements 2.
  • "QER_3" - Use standard SFDP with Quad Enable Requirements 3.
  • "QER_4" - Use standard SFDP with Quad Enable Requirements 4.
  • "QER_5" - Use standard SFDP with Quad Enable Requirements 5.
  • "QER_6" - Use standard SFDP with Quad Enable Requirements 6.
  • "Non-SFDP" - SFDP is not available. Custom memory support is needed.

chip_select:

This specifies which chip select signal is used to talk to the external memory.
Valid options are:

  • "CS0" - ChipSelect pin 0 is used to select the device.
  • "CS1" - ChipSelect pin 1 is used to select the device.

data_width:

This defines the number of data pins which are used simultaneously to transfer data to/from the device.
Valid options are:

  • "1X" - 1 IO pin is used for communication.
  • "2X" - 2 IO pins are used for communication.
  • "4X" - 4 IO pins are used for communication.
  • "8X" - 8 IO pins are used for communication.

data_select:

This setting controls which specific data pins are used for communication with the external memory device.
Valid options are:

Option Single SPI Dual SPI Quad SPI Octal SPI
SEL0 data[0]=SI data[0]=IO0 data[0]=IO0 data[0]=IO0
data[1]=SO data[1]=IO1 ... ...
data[3]=IO3 data[7]=IO7
SEL1 data[2]=SI data[2]=IO0 ILLEGAL ILLEGAL
data[3]=SO data[3]=IO1
SEL2 data[4]=SI data[4]=IO0 data[4]=IO0 ILLEGAL
data[5]=SO data[5]=IO1 ...
data[7]=IO3
SEL3 data[6]=SI data[6]=IO0 ILLEGAL ILLEGAL
data[7]=SO data[7]=IO1

addressing_mode:

This defines the number of bytes used to specify addresses when communicating with the external memory.
Valid options are:

  • "3-byte" - 3 bytes are used on each command to specify the address.
  • "4-byte" - 4 bytes are used on each command to specify the address.

© Cypress Semiconductor Corporation, 2020-2022.