SBK-M4KN development board

SBK-M4KN development board for Toshiba TMPM4KNFYAFG MCU.

Overview

The TMPM4KNFYAFG is ARM® Cortex®-M4 based microcontroller. TMPM4KNFYAFG have peripheral functions which are suitable for motor and inverter control as AD Converter (ADC), Motor control circuit (A-PMD), Vector Engine (A-VE+), and Encoder input (A-ENC). This product has compatible function with existing products and attain low current consumption. This microcontroller can be widely used for home appliances and industrial equipment.

Based on an ARM Cortex-M4 core, with a maximum operating frequency of 160 MHz, the TMPM4KNFYAFG incorporates 256 Kbyte of flash memory and 24 Kbyte SRAM required for secure communications control.

TMPM4KN Features

  • TMPM4KNFYAFG in LQFP100 package
    • ARM®32-bit Cortex®-M4 CPU, 160 MHz max CPU frequency
    • 24KB RAM
    • 256KB Flash
    • TSPI (2)
    • I2C (1)
    • UART (4)
    • PWM (4)
    • 12bit ADC (11)
    • A-PMD(3)
    • A-VE+(1)
    • GPIO (87)

SBK-M4KN Feature

  • Compatible with a wide range of commercially available shields
  • Power option
    • USB-UART
    • DAP-USB
  • 4 Push Switch
  • 6 LED
  • 1 Variable resistor
  • Built-in USB drag 'n' drop FLASH programmer

Pin Layout

J9 Pin Header

https://os.mbed.com/media/uploads/deepakshreshti/esp-sbk-m4kn_j9.png

J10 Pin Header

https://os.mbed.com/media/uploads/deepakshreshti/esp-sbk-m4kn_j10.png

Arduino Pin Header

https://os.mbed.com/media/uploads/deepakshreshti/esp-sbk-m4kn_arduino.png

PWM PinsUART PinsI2C PinsLED PinsSwitch Pins
PF4CONSOLE_TX = PC0SDA = PD3LED1 = PB0SW1 = PG3
PU2CONSOLE_RX= PC1SCL = PD4LED2 = PB2SW2 = PG4
PC2LED3 = PB4SW3 = PG5
PN1LED4 = PV0SW4 = PG6
LED5 = PV1
LED6 = PB6
Arduino I/O PinsArduino Analog PinsArduino PWM Pins
D0 = PF7A0 = PM2-
D1 = PF6A1 = PM1
D2 = PD4A2 = PM0
D3 = PD5A3 = PL3
D4 = PC6A4 = PL1
D5 = PC7A5 = NC
D6 = PA0
D7 = PC3
D8 = PD0
D9 = PD1
D10 = PG1
D11 = PG5
D12 = PG4
D13 = PG6
D14 = PC0
D15 = PC1
General Purpose Input / Output
PA0, PA1, PA2, PA3, PA4
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7
PC0, PC1, PC2, PC3, PC4, PC5, PC6, PC7
PD0, PD1, PD2, PD3, PD4, PD5
PE0, PE1, PE2, PE3, PE4, PE5, PE6, PE7
PF0, PF1, PF2, PF3, PF4, PF5, PF6, PF7
PG0, PG1, PG2, PG3, PG4, PG5, PG6
PH0, PH1
PJ0, PJ1, PJ2, PJ3, PJ4, PJ5
PK0, PK1, PK2, PK3, PK4
PL0, PL1, PL2, PL3, PL4, PL5, PL6, PL7
PM0, PM1, PM2
PN0, PN1, PN2
PU0, PU1, PU2, PU3, PU4, PU5, PU6, PU7
PV0, PV1

On Board UART Usage Setting

To use DAP-UART it is necessary to move switch SW5 to position "MBD". To use USB-UART, move switch SW5 to position "USB"

https://os.mbed.com/media/uploads/deepakshreshti/esp-sbk-m4kn_sw5.png

Technical Reference

Schematics

Data Sheet

Interface Firmware (I/F)

Please update the interface firmware in the following way when upgrading, or if it has been deleted for some reasons.

  1. Download Flash programmer tool Flash Programmer_M366_202112.zip to program I/F firmware.
  2. Download ESP-SBK-M4KN I/F Firmware tmpm366_tmpm4kn_stk_firmware_v0254.hex

To update I/F firmware, old firmware needs to be erased before updating the firmware.

Mandatory On Board Jumper Settings

  1. Short JP6 to supply power to board
    https://os.mbed.com/media/uploads/deepakshreshti/esp-sbk-m4kn_jp6.png
  2. Short JP1 to enable DAP and short JP4 to enable SWD https://os.mbed.com/media/uploads/deepakshreshti/esp-sbk-m4kn_jp1_jp4.png

How to erase and program I/F firmware

  1. Short JP2
    https://os.mbed.com/media/uploads/deepakshreshti/esp-sbk-m4kn_jp2.png
  2. Connect PC to USB1 on SBK-M4KN by micro USB cable
    https://os.mbed.com/media/uploads/deepakshreshti/esp-sbk-m4kn_usb1.png
  3. Start up Flash Programmer
    Click FlashProgIT.exe on your PC.
    When you use the flash programmer, you need to agree "SOFTWARE LICENSE AGREEMENT"
  4. Select [Device] tab
  5. Select Series "TX03 Series"
  6. Select Device "TMPM366FY" and push Apply button on Device tab.
  7. Select [Object File] tab and browse the downloaded ESP-SBK-M4KN Firmware
  8. Select "USB" at Communication tab and push OK button.
  9. Select [Edit]-[Chip Erase] from the menu bar.
    (If you meet password error, select [Setup] -[ Password] from the menu bar and select "Device is Blank" )
    (If you meet command error, reconnect USB cable and try [Edit]-[Chip Erase] again
  10. Once erase is completed, Select [Edit] - [Erase/Program] from the menu bar.
    (If you meet password error, select [Setup] -[ Password] from the menu bar and select "Device is Blank" )
    (If you meet command error, reconnect USB cable and try [Edit]-[Erase/Program] again
  11. Remove jumper on JP2
  12. Reconnect USB cable
    DAPLink drive will appear if I/F firmware is programmed successfully

Known issues

Warning

The latest version of "mbedls" is not able to detect the board.
The workaround is to mock the detection of the board:

mbedls --mock 7020:TMPM4KN

 Buy Now


You need to log in to post a discussion