Setting SPI register SPI_DIN_MODE_REG and SPI_DIN_NUM_REG is not possible

stefan.nagel
Posts: 6
Joined: Fri Jul 14, 2023 7:15 am

Setting SPI register SPI_DIN_MODE_REG and SPI_DIN_NUM_REG is not possible

Postby stefan.nagel » Fri Nov 10, 2023 1:27 pm

In my code I would like to set the register to delay the MISO line on SPI3. Therefore I use the following code:

Code: Select all

    uint32_t test_mode = 0x00000001;
    uint32_t test_num = 0x00000001;


    uint32_t volatile * const p_din_mode_reg = (uint32_t *) 0x60025024;
    *p_din_mode_reg = test_mode;

    uint32_t volatile * const p_din_num_reg = (uint32_t *) 0x60025028;
    *p_din_num_reg = test_num;

        if(*p_din_num_reg != test_num)
    {
        ESP_LOGI(TAG, "p_din_num_reg: %4x", (unsigned int)*p_din_num_reg);
        return ESP_FAIL;
    }

    if(*p_din_mode_reg != test_mode)
    {
        ESP_LOGI(TAG, "p_din_mode_reg: %4x", (unsigned int)*p_din_mode_reg);
        return ESP_FAIL;
    }
I'm not able to write to these register. They stay 0x00000000 the whole time.

Also in the current ESP-IDF code this section is empty:
https://github.com/espressif/esp-idf/bl ... _ll.h#L864


Is it possible to write to these register?

Kind regards

Who is online

Users browsing this forum: No registered users and 62 guests