MEC172xEVB ASSY6906

Overview

The MEC172xEVB_ASSY6906 kit is a future development platform to evaluate the Microchip MEC172X series microcontrollers. This board needs to be mated with part number MEC1723 176WFBA SOLDER DC ASSY 6915(cpu board) in order to operate. MEC172x and MEC152x SPI image formats are not compatible with each other.

Hardware

  • MEC1723NB0SZ ARM Cortex-M4 Processor

  • 416 KB RAM and 128 KB boot ROM

  • Keyboard interface

  • ADC & GPIO headers

  • UART0 and UART1

  • FAN0, FAN1, FAN2 headers

  • FAN PWM interface

  • JTAG/SWD, ETM and MCHP Trace ports

  • PECI interface 3.0

  • I2C voltage translator

  • 10 SMBUS headers

  • 4 SGPIO headers

  • VCI interface

  • 2 independent Hardware Driven PS/2 Ports

  • eSPI header

  • 3 Breathing/Blinking LEDs

  • 2 Sockets for SPI NOR chips

  • One reset and VCC_PWRDGD pushbuttons

  • One external PCA9555 I/O port with jumper selectable I2C address.

  • One external LTC2489 delta-sigma ADC with jumper selectable I2C address.

  • Board power jumper selectable from +5V 2.1mm/5.5mm barrel connector or USB Micro A connector.

For more information about the SOC’s please see MEC172x Reference Manual 1

Supported Features

The mec172xevb_assy6906 board configuration supports the following hardware features:

Interface

Controller

Driver/Component

NVIC

on-chip

nested vector interrupt controller

SYSTICK

on-chip

systick

UART

on-chip

serial port

GPIO

on-chip

gpio

I2C

on-chip

i2c

PINMUX

on-chip

pinmux

PS/2

on-chip

ps2

KSCAN

on-chip

kscan

TACH

on-chip

tachometer

RPMFAN

on-chip

Fan speed controller

Other hardware features are not currently supported by Zephyr (at the moment)

The default configuration can be found in the boards/arm/mec172xevb_assy6906/mec172xevb_assy6906_defconfig Kconfig file.

Connections and IOs

This evaluation board kit is comprised of the following HW blocks:

System Clock

The MEC1723 MCU is configured to use the 96Mhz internal oscillator with the on-chip PLL to generate a resulting EC clock rate of 12 MHz. See Processor clock control register in chapter 4 “4.0 POWER, CLOCKS, and RESETS” of the data sheet in the references at the end of this document.

Serial Port

UART1 is configured for serial logs.

Jumper settings

Please follow the jumper settings below to properly demo this board. Advanced users may deviate from this recommendation.

Jumper setting for MEC172x EVB Assy 6906 Rev A1p0

Boot-ROM Straps.

These jumpers configure MEC1501 Boot-ROM straps.

JP93 (CMP_STRAP)

JP11 (CR_STRAP)

JP46 (VTR2_STRAP)

JP96 (BSS_STRAP)

2-3

1-2

2-3

1-2

JP96 1-2 pulls SHD SPI CS0# up to VTR2. MEC172x Boot-ROM samples SHD SPI CS0# and if high, it loads code from SHD SPI.

Peripheral Routing Jumpers

Each column of the following table illustrates how to enable UART1, SWD, PVT SPI, SHD SPI and LED0-2 respectively.

JP48 (UART1)

JP9 (UART1)

JP9 (SWD)

JP38 (PVT SPI)

JP98 (SHD SPI)

JP41 (LED0-2)

1-2

2-3

2-3

2-3

1-2

4-5

4-5

5-6

5-6

3-4

7-8

8-9

8-9

8-9

5-6

10-11

10-11

11-12

11-12

14-15

14-15

17-18

20-21

Note

For UART1 make sure JP39 have jumpers connected 1-2, 3-4.

To receive UART1 serial output, please refer to the picture below to make sure that JP9 configured for UART1 output.

Jumper settings for MEC172x 176WFBGA Socket DC Assy 6915 Rev B1p0

The jumper configuration explained above covers the base board. The ASSY 6915 MEC1723 CPU board provides capability for an optional, external 32KHz clock source. The card includes a 32KHz crystal oscillator. The card can also be configured to use an external 50% duty cycle 32KHz source on the XTAL2/32KHZ_IN pin. Note, firmware must set the MEC172x clock enable register to select the external source matching the jumper settings. If using the MEC15xx internal silicon oscillator then the 32K jumper settings are don’t cares. JP1 is for scoping test clock outputs. Please refer to the schematic in reference section below.

Parallel 32KHz crystal configuration

JP2

JP3

1-2

2-3

External 32KHz 50% duty cycle configuration

JP2

JP3

NC

1-2

Jumper settings for MEC1723 176WFBGA Socket DC Assy 6915 Rev B1p0

The MEC1723 ASSY 6915 CPU card does not include an onboard external 32K crystal or oscillator. The one jumper block JP1 is for scoping test clock outputs not for configuration. Please refer to schematic in reference section below.

Programming and Debugging

Setup

  1. If you use Dediprog SF100 programmer, then setup it.

    Windows version can be found at the SF100 Product page 7.

    Linux version source code can be found at SF100 Linux GitHub 6. Follow the SF100 Linux manual 8 to complete setup of the SF100 programmer. For Linux please make sure that you copied 60-dediprog.rules from the SF100Linux folder to the /etc/udev/rules.s (or rules.d) then restart service using:

    $ udevadm control --reload
    

    Add directory with program dpcmd (on Linux) or dpcmd.exe (on Windows) to your PATH.

  2. Clone the MEC172x SPI Image Gen 5 repository or download the files within that directory.

  3. Make the image generation available for Zephyr, by making the tool searchable by path, or by setting an environment variable MEC172X_SPI_GEN, for example:

    export MEC172X_SPI_GEN=<path to tool>/mec172x_spi_gen_lin_x86_64
    

    Note that the tools for Linux and Windows have different file names.

  4. If needed, a custom SPI image configuration file can be specified to override the default one.

    export MEC172X_SPI_CFG=custom_spi_cfg.txt
    

Wiring

  1. Connect the SPI Dongle ASSY 6791 to J34 in the EVB.

  2. Connect programmer to the header J6 on the Assy6791 board, it will flash the SPI NOR chip U3 Make sure that your programmer’s offset is 0x0. For programming you can use Dediprog SF100 or a similar tool for flashing SPI chips.

    Note

    Remember that SPI MISO/MOSI are swapped on Dediprog headers! Use separate wires to connect Dediprog pins with pins on the Assy6791 SPI board. Wiring connection is described in the table below.

    Dediprog Connector

    Assy6791 J6 Connector

    VCC

    1

    GND

    2

    CS

    3

    CLK

    4

    MISO

    6

    MOSI

    5

  3. Connect UART1 port of the MEC17xxEVB_ASSY_6906 board to your host computer using the RS232 cable.

  4. Apply power to the board via a micro-USB cable. Configure this option by using a jumper between JP88 7-8.

  5. Final wiring for the board should look like this:

Building

  1. Build Hello World application as you would normally do.

  2. The file spi_image.bin will be created if the build system can find the image generation tool. This binary image can be used to flash the SPI chip.

Flashing

  1. Run your favorite terminal program to listen for output. Under Linux the terminal should be /dev/ttyUSB0. Do not close it.

    For example:

    $ minicom -D /dev/ttyUSB0 -o
    

    The -o option tells minicom not to send the modem initialization string. Connection should be configured as follows:

    • Speed: 115200

    • Data: 8 bits

    • Parity: None

    • Stop bits: 1

  2. Flash your board using west from the second terminal window. Split first and second terminal windows to view both of them.

    $ west flash
    

    Note

    When west process started press Reset button and do not release it till the whole west process will not be finished successfully.

    Note

    If you dont’t want to press Reset button every time, you can disconnect SPI Dongle ASSY 6791 from the EVB during the west flash programming. Then connect it back to the J34 header and apply power to the EVB. Result will be the same.

  3. You should see "Hello World! mec172xevb_assy6906" in the first terminal window. If you don’t see this message, press the Reset button and the message should appear.

Debugging

This board comes with a Cortex ETM port which facilitates tracing and debugging using a single physical connection. In addition, it comes with sockets for JTAG only sessions.

Troubleshooting

  1. In case you don’t see your application running, please make sure LED7, LED8, and LED1 are lit. If one of these is off, then check the power-related jumpers again.

  2. If you can’t program the board using Dediprog, disconnect the Assy6791 from the main board Assy6853 and try again.

  3. If Dediprog can’t detect the onboard flash, press the board’s Reset button and try again.

References

1

https://github.com/MicrochipTech/CPGZephyrDocs/blob/master/MEC172x/MEC172x-Data-Sheet.pdf

2

https://github.com/MicrochipTech/CPGZephyrDocs/blob/master/MEC172x/MEC172X-EVB-Assy_6906-A1p0-SCH.pdf

3

https://github.com/MicrochipTech/CPGZephyrDocs/blob/master/MEC172x/MEC172X-176WFBGA-Socket-DC-Assy6915-Rev-B-SCH.pdf

4

https://github.com/MicrochipTech/CPGZephyrDocs/blob/master/MEC1501/SPI%20Dongles%20and%20Aardvark%20Interposer%20Assy%206791%20Rev%20A1p1%20-%20SCH.pdf

5

https://github.com/MicrochipTech/CPGZephyrDocs/tree/master/MEC172x/SPI_image_gen

6

https://github.com/DediProgSW/SF100Linux

7

https://www.dediprog.com/product/SF100

8

https://www.dediprog.com/download/save/727.pdf