Open MichaelXlivnenko opened 9 months ago
@ESP-Coco could you please help take a look
@MichaelXlivnenko Do you have more detailed LOG? I need to observe a step that detects a problem.
Did you mean LOG output in console or signals output?
Full STM32 LOG, you can change deugLevel to 4(https://github.com/espressif/esp-at/blob/master/examples/at_spi_master/sdspi/STM32/Inc/port.h#L48)
10:27:55.666 -> V sdspi_transaction: CMD0 10:27:55.666 -> V sdspi_transaction: r1 = 0x00 hw_cmd.r[0]=0xffffffff
It is an output if I change debug level to 4
Answers checklist.
General issue report
HI,
I'm trying to port SDSPI example to STM32L4, but it doesn't work.
As you noted in README, I was starting with checking that hardware works well. First that I do - upload ESP-AT to ESP32 as slave(using the latest version of core, esp-idf v.5.0.2 and ESP-WROOM-32 devkit). Then I upload ESP example from SDSPI folder and all works fine.("AT" command return "OK")
Then I tried with STM32F103ZE dev board to check the STM32 example before porting and it doesn't work.
The connection is next:
STM32 ---> ESP32 SCLK (PA5) ---> CLK(GPIO14) MOSI (PA7) ---> CMD(GPIO15) MISO (PA6) ---> DAT0(GPIO2) GPIO_INT (PA0) ---> DAT1(GPIO4) CS (PA4) ---> DAT3(GPIO13)
All lines excluding CLK is pulled-up with 10 kOhms resistors. Project was build using STM32CubeIDE from .ioc config file from example and all code is copied from example.
Debug console oputput:
and then all is stucked
This is the datagramma of all lines after reset:![image](https://github.com/espressif/esp-at/assets/11066850/21e37df5-0e82-4d58-b060-7e2ce8e5d2f8)