We are trying to pair “MM8108-EKH05 V2” and ESP32-P4.
Yes, we know this board for stm32 solely. But what are the proper manipulations needed to be done so ESP32-P4 could connect to mm8108 on this board?
The way we try it is as follows:
removed SPI zero resistors that seems were going to stm32
unplugged all current sensor jumpers
wired +3.3v, GND, AND GPIO’s connected to MIKROBUS like this:
CONFIG_MM_RESET_N => RST
CONFIG_MM_WAKE => PWM
CONFIG_MM_BUSY => AN
CONFIG_MM_SPI_SCK => SCK
CONFIG_MM_SPI_MOSI => MOSI
CONFIG_MM_SPI_MISO => MISO
CONFIG_MM_SPI_CS => CS
CONFIG_MM_SPI_IRQ => INT
+3.3v to ESP32-P4
GND to ESP32-P4
no other power/wires connected
No luck so far. Getting:
E 60 ev morse_trns_reset[746] Morse Chip Reset Unsuccessful
E 60 ev mmdrv_init[235] Transport init failed
What else needs to be done? Do we need to supply some other power? Maybe solder/unsolder some resistors? Do we need to adjust SPI settings somehow in ESP32-P4?
Also do you expect “pin numbers” as N of GPIO{N} or physical pins numbers on chip? That’s not really clear from naming. However tried both, no luck.
This is not supported (as you’ve identified), but some comments:
wired +3.3v, GND, AND GPIO’s connected to MIKROBUS like this:
The MICROBUS is on a different SPI bus, so this won’t work. You would need to connect to the SPI that the MM chip talks on.
If you reaaaaally want to use the EKH05, your best bet would be to connect via the through hole test points, but you’re going to need to take care you manage your spi lines well. Look up best practices for running high speed SPI over fly-wires.
We will go with own board and while it is cooking, what are chances you will add 4-bit SDIO to ESP32 land? Unlike USB, SDIO is relatively easy to add. That will bump speeds, reduce latency, reduce CPU load and can even free gpio’s if wired through/instead of sdcard slot. If it needs 1.8v, that’s pretty doable with esp LDO interface. While current 1-bit SPI is a bit below expectations. Would be really nice of you.