mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 16:14:34 +02:00
usj: bringup on esp32h2
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@@ -24,7 +24,7 @@ PROVIDE ( esp_rom_efuse_mac_address_crc8 = esp_crc8 );
|
|||||||
PROVIDE ( esp_rom_efuse_is_secure_boot_enabled = ets_efuse_secure_boot_enabled );
|
PROVIDE ( esp_rom_efuse_is_secure_boot_enabled = ets_efuse_secure_boot_enabled );
|
||||||
|
|
||||||
PROVIDE ( esp_rom_uart_flush_tx = uart_tx_flush );
|
PROVIDE ( esp_rom_uart_flush_tx = uart_tx_flush );
|
||||||
PROVIDE ( esp_rom_uart_tx_one_char = uart_tx_one_char );
|
PROVIDE ( esp_rom_uart_tx_one_char = uart_tx_one_char2 );
|
||||||
PROVIDE ( esp_rom_uart_tx_wait_idle = uart_tx_wait_idle );
|
PROVIDE ( esp_rom_uart_tx_wait_idle = uart_tx_wait_idle );
|
||||||
PROVIDE ( esp_rom_uart_rx_one_char = uart_rx_one_char );
|
PROVIDE ( esp_rom_uart_rx_one_char = uart_rx_one_char );
|
||||||
PROVIDE ( esp_rom_uart_rx_string = UartRxString );
|
PROVIDE ( esp_rom_uart_rx_string = UartRxString );
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@@ -24,7 +24,7 @@ PROVIDE ( esp_rom_efuse_mac_address_crc8 = esp_crc8 );
|
|||||||
PROVIDE ( esp_rom_efuse_is_secure_boot_enabled = ets_efuse_secure_boot_enabled );
|
PROVIDE ( esp_rom_efuse_is_secure_boot_enabled = ets_efuse_secure_boot_enabled );
|
||||||
|
|
||||||
PROVIDE ( esp_rom_uart_flush_tx = uart_tx_flush );
|
PROVIDE ( esp_rom_uart_flush_tx = uart_tx_flush );
|
||||||
PROVIDE ( esp_rom_uart_tx_one_char = uart_tx_one_char );
|
PROVIDE ( esp_rom_uart_tx_one_char = uart_tx_one_char2 );
|
||||||
PROVIDE ( esp_rom_uart_tx_wait_idle = uart_tx_wait_idle );
|
PROVIDE ( esp_rom_uart_tx_wait_idle = uart_tx_wait_idle );
|
||||||
PROVIDE ( esp_rom_uart_rx_one_char = uart_rx_one_char );
|
PROVIDE ( esp_rom_uart_rx_one_char = uart_rx_one_char );
|
||||||
PROVIDE ( esp_rom_uart_rx_string = UartRxString );
|
PROVIDE ( esp_rom_uart_rx_string = UartRxString );
|
||||||
|
34
components/hal/esp32h2/include/hal/usb_phy_ll.h
Normal file
34
components/hal/esp32h2/include/hal/usb_phy_ll.h
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "soc/usb_serial_jtag_struct.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Configures the internal PHY for USB_Serial_JTAG
|
||||||
|
*
|
||||||
|
* @param hw Start address of the USB Serial_JTAG registers
|
||||||
|
*/
|
||||||
|
static inline void usb_phy_ll_int_jtag_enable(usb_serial_jtag_dev_t *hw)
|
||||||
|
{
|
||||||
|
// USB_Serial_JTAG use internal PHY
|
||||||
|
hw->conf0.phy_sel = 0;
|
||||||
|
// Disable software control USB D+ D- pullup pulldown (Device FS: dp_pullup = 1)
|
||||||
|
hw->conf0.pad_pull_override = 0;
|
||||||
|
// Enable USB D+ pullup
|
||||||
|
hw->conf0.dp_pullup = 1;
|
||||||
|
// Enable USB pad function
|
||||||
|
hw->conf0.usb_pad_enable = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@@ -23,6 +23,10 @@ config SOC_IEEE802154_BLE_ONLY
|
|||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config SOC_USB_SERIAL_JTAG_SUPPORTED
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
config SOC_EFUSE_KEY_PURPOSE_FIELD
|
config SOC_EFUSE_KEY_PURPOSE_FIELD
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
// #define SOC_IEEE802154_SUPPORTED 1 // TODO: IDF-6577
|
// #define SOC_IEEE802154_SUPPORTED 1 // TODO: IDF-6577
|
||||||
#define SOC_GPTIMER_SUPPORTED 1
|
#define SOC_GPTIMER_SUPPORTED 1
|
||||||
#define SOC_IEEE802154_BLE_ONLY 1
|
#define SOC_IEEE802154_BLE_ONLY 1
|
||||||
// #define SOC_USB_SERIAL_JTAG_SUPPORTED 1 // TODO: IDF-6239
|
#define SOC_USB_SERIAL_JTAG_SUPPORTED 1
|
||||||
// #define SOC_TEMP_SENSOR_SUPPORTED 1 // TODO: IDF-6229
|
// #define SOC_TEMP_SENSOR_SUPPORTED 1 // TODO: IDF-6229
|
||||||
// #define SOC_SUPPORTS_SECURE_DL_MODE 1 // TODO: IDF-6281
|
// #define SOC_SUPPORTS_SECURE_DL_MODE 1 // TODO: IDF-6281
|
||||||
//#define SOC_RISCV_COPROC_SUPPORTED 1 // TODO: IDF-6272
|
//#define SOC_RISCV_COPROC_SUPPORTED 1 // TODO: IDF-6272
|
||||||
|
@@ -28,7 +28,6 @@ api-guides/startup
|
|||||||
api-guides/RF_calibration
|
api-guides/RF_calibration
|
||||||
api-guides/blufi
|
api-guides/blufi
|
||||||
api-guides/coexist
|
api-guides/coexist
|
||||||
api-guides/usb-serial-jtag-console
|
|
||||||
api-guides/wifi
|
api-guides/wifi
|
||||||
api-guides/usb-otg-console
|
api-guides/usb-otg-console
|
||||||
api-guides/wireshark-user-guide
|
api-guides/wireshark-user-guide
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
Configure {IDF_TARGET_NAME} built-in JTAG Interface
|
Configure {IDF_TARGET_NAME} built-in JTAG Interface
|
||||||
===================================================
|
===================================================
|
||||||
|
|
||||||
{IDF_TARGET_JTAG_PIN_Dneg:default="Not Updated!", esp32c3="GPIO18", esp32c6="GPIO12", esp32s3="GPIO19"}
|
{IDF_TARGET_JTAG_PIN_Dneg:default="Not Updated!", esp32c3="GPIO18", esp32c6="GPIO12", esp32s3="GPIO19", esp32h2="GPIO26"}
|
||||||
{IDF_TARGET_JTAG_PIN_Dpos:default="Not Updated!", esp32c3="GPIO19", esp32c6="GPIO13", esp32s3="GPIO20"}
|
{IDF_TARGET_JTAG_PIN_Dpos:default="Not Updated!", esp32c3="GPIO19", esp32c6="GPIO13", esp32s3="GPIO20", esp32h2="GPIO27"}
|
||||||
|
|
||||||
{IDF_TARGET_NAME} has a built-in JTAG circuitry and can be debugged without any additional chip. Only an USB cable connected to the D+/D- pins is necessary. The necessary connections are shown in the following section.
|
{IDF_TARGET_NAME} has a built-in JTAG circuitry and can be debugged without any additional chip. Only an USB cable connected to the D+/D- pins is necessary. The necessary connections are shown in the following section.
|
||||||
|
|
||||||
|
@@ -13,8 +13,8 @@ Note that, in contrast with the USB OTG peripheral in some Espressif chips, the
|
|||||||
Hardware Requirements
|
Hardware Requirements
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
{IDF_TARGET_USB_DP_GPIO:default="Not Updated!",esp32c3="19",esp32s3="20", esp32c6="13"}
|
{IDF_TARGET_USB_DP_GPIO:default="Not Updated!",esp32c3="19",esp32s3="20", esp32c6="13", esp32h2="27"}
|
||||||
{IDF_TARGET_USB_DM_GPIO:default="Not Updated!",esp32c3="18",esp32s3="19", esp32c6="12"}
|
{IDF_TARGET_USB_DM_GPIO:default="Not Updated!",esp32c3="18",esp32s3="19", esp32c6="12", esp32h2="26"}
|
||||||
|
|
||||||
Connect {IDF_TARGET_NAME} to the USB port as follows:
|
Connect {IDF_TARGET_NAME} to the USB port as follows:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user