Hi,
I want to use SPI on board imx8 QM MEK with Android 13.
Because the board does not have spare pins for SPI, I want to utilize flash to use FlexSPI. I have some questions.
1. if I want connect STM32 with board imx8QM via SPI. Does board imx8 have spare pins of SPI?
2. If the board does not have spare pins of SPI. Can I read data from Flash via FlexSPI? If yes, how can I do that?
Hi @builinhhh,
Hi @builinhhh
Hi @builinhhh,
Hi @Sanket_Parekh , thank you very much for your very enthusiastic supports.
I run "make menuconfig" and Enable Flex SPI config. Then "make"
But it has some errors.
As a matter of fact, I really hasn't known How to build the project. After I turn a few code, I usually run "imx.make.sh" to rebuild all. It's really really complicated.
Can you teach me how to make?
and this code bellow is error I met when I make after make menuconfig.
drivers/net/phy/mscc/mscc_main.c: In function ‘vsc8514_validate_inband_aneg’:
drivers/net/phy/mscc/mscc_main.c:2195:9: error: ‘PHY_INBAND_ANEG_OFF’ undeclared (first use in this function)
2195 | return PHY_INBAND_ANEG_OFF | PHY_INBAND_ANEG_ON;
| ^~~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2195:9: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/phy/mscc/mscc_main.c:2195:31: error: ‘PHY_INBAND_ANEG_ON’ undeclared (first use in this function)
2195 | return PHY_INBAND_ANEG_OFF | PHY_INBAND_ANEG_ON;
| ^~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c: At top level:
drivers/net/phy/mscc/mscc_main.c:2416:3: error: ‘struct phy_driver’ has no member named ‘validate_inband_aneg’
2416 | .validate_inband_aneg = vsc8514_validate_inband_aneg,
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2416:26: error: initialization of ‘int (*)(struct phy_device *, struct ethtool_tunable *, void *)’ from incompatible pointer type ‘int (*)(struct phy_device *, phy_interface_t)’ {aka ‘int (*)(struct phy_device *, enum <anonymous>)’} [-Werror=incompatible-pointer-types]
2416 | .validate_inband_aneg = vsc8514_validate_inband_aneg,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2416:26: note: (near initialization for ‘vsc85xx_driver[2].get_tunable’)
drivers/net/phy/mscc/mscc_main.c:2417:3: error: ‘struct phy_driver’ has no member named ‘config_inband_aneg’
2417 | .config_inband_aneg = vsc8514_config_inband_aneg,
| ^~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2417:24: error: initialization of ‘int (*)(struct phy_device *, struct ethtool_tunable *, const void *)’ from incompatible pointer type ‘int (*)(struct phy_device *, bool)’ {aka ‘int (*)(struct phy_device *, _Bool)’} [-Werror=incompatible-pointer-types]
2417 | .config_inband_aneg = vsc8514_config_inband_aneg,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2417:24: note: (near initialization for ‘vsc85xx_driver[2].set_tunable’)
drivers/net/phy/mscc/mscc_main.c: In function ‘vsc8514_validate_inband_aneg’:
drivers/net/phy/mscc/mscc_main.c:2196:1: error: control reaches end of non-void function [-Werror=return-type]
2196 | }
| ^
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:287: drivers/net/phy/mscc/mscc_main.o] Error 1
make[3]: *** [scripts/Makefile.build:549: drivers/net/phy/mscc] Error 2
make[2]: *** [scripts/Makefile.build:549: drivers/net/phy] Error 2
make[1]: *** [scripts/Makefile.build:549: drivers/net] Error 2
make: *** [Makefile:1944: drivers] Error 2
Hi @builinhhh,
My project is develope a security smartphone using imx 8MQ. Hardware is designed by third party.
Now, because hardware hasn't completed, so I used i.MX 8M EVK kit temporary.
We intend build base on Android 13.1.2.0 with kernel 5.15.84.
First, I want communicate between i.MX 8MQ and STM32 via SPI.
I built successfully source code android for imx8mq and flash image to board.
Then, I want test code by helloworld loadable kernel module. Can you send me source code of helloworld kernel module and Makefile?
After that, because in imx8 MQ EVK kit and imx8 QM MEK kit do not have spare pins for SPI, I intend test SPI by Flash because FLASH connected i.MX 8 by FLEX SPI.
After your instructions, I enabled Flex SPI by make menuconfig and make. Then I flash image by uuu follow Android User's guide. But it hasn't any change.
This my problems. Can you help me?
Hi @builinhhh,