Search found 6 matches
- Sun Dec 01, 2024 4:51 pm
- Forum: Hardware
- Topic: ESP32C3 SPI2 crash
- Replies: 0
- Views: 99
ESP32C3 SPI2 crash
When I try to write a value to the register, the controller crashes.. Was I wrong? uint8_t spi_write_cmd( uint16_t uiCmd ) { // set uiCmd and 7 = bitleng REG_WRITE( SPI_USER2_REG, ( uiCmd ) | ( 7 << 28 ) ); } spi_write_cmd( 0x01 ); //Transfer Type: Wr_BUF, CMD STATE = 1bit mode, ADDR STATE= 1bit mod...
- Sun Dec 01, 2024 10:09 am
- Forum: ESP32 Arduino
- Topic: Esp32c3 and spi2 date version problem
- Replies: 3
- Views: 307
Re: Esp32c3 and spi2 date version problem
perfect, thank you.
It was really because the Spi2 unit was in a reset state, which according to the data sheet it shouldn't be in a reset state
It was really because the Spi2 unit was in a reset state, which according to the data sheet it shouldn't be in a reset state
- Sun Dec 01, 2024 9:15 am
- Forum: ESP32 Arduino
- Topic: Esp32c3 and spi2 date version problem
- Replies: 3
- Views: 307
Re: Esp32c3 and spi2 date version problem
you mean the "SYSTEM_SPI2_CLK_EN" Bit? (see Pic.)
it is enabled..
it is enabled..
- Sun Dec 01, 2024 9:05 am
- Forum: ESP32 Arduino
- Topic: ESP 32 Pin re-mapping
- Replies: 3
- Views: 15510
Re: ESP 32 Pin re-mapping
i try to connect gpio2 to gpio5 (only for testing) but its still working, what make i wrong? #define pin_number 2 #define io_signal_out CPU_GPIO_OUT5_IDX //Connect the pin to the GPIO matrix. PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[pin_number], PIN_FUNC_GPIO); //Set the direction. GPIO_MODE_INPUT always ma...
- Fri Nov 29, 2024 1:46 pm
- Forum: ESP32 Arduino
- Topic: Esp32c3 and spi2 date version problem
- Replies: 3
- Views: 307
Esp32c3 and spi2 date version problem
Hello,
Can someone explain to me why I can't read a register from the SPI2 controller? No matter which register is read, a 0 is always returned. I read the date register from the gpio controller and the value matches.
anyone have an idea?
Can someone explain to me why I can't read a register from the SPI2 controller? No matter which register is read, a 0 is always returned. I read the date register from the gpio controller and the value matches.
anyone have an idea?
- Fri Oct 11, 2024 3:06 pm
- Forum: ESP32 Arduino
- Topic: ESP32C3 > GPIO > Struct
- Replies: 0
- Views: 577
ESP32C3 > GPIO > Struct
Hello Bit Friends, can someone explain to me why I can't get the LED on GPIO 8 to live? //Mapping Address //GPIO 0x6000_4000 to 0x6000_4FFF #include <stdint.h> #include <stdio.h> #define GPIO_BASE 0x60004000ul typedef struct { // mapped @GPIO_BASE uint32_t Bt_Select_Reg; uint32_t Out_Reg; uint32_t O...