JON95Git / zephyr-spi-directly

A simple example of how to control the SPI directly in Zephyr RTOS
4 stars 1 forks source link

Error while compiling the project. #1

Open Oliver0804 opened 8 months ago

Oliver0804 commented 8 months ago

Can you share the development environment and SDK settings you have configured? thx.

JON95Git commented 8 months ago

@Oliver0804 I used Zephyr vanilla, notice it was 2 years ago, many changes are made on Zephyr project. Can you share the errors you are facing? Maybe I can help with that.

Oliver0804 commented 8 months ago

`

include <zephyr/kernel.h>

include <zephyr/device.h>

include <zephyr/drivers/gpio.h>

include <zephyr/drivers/spi.h>

include

include

define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL

include <zephyr/logging/log.h>

printk("Device SPI not ready, aborting test"); `

I just made corresponding modifications to include with the new architecture of the Zephyr SDK 2.2.0. However, the serial output still indicates "SPI Not ready."

*** Booting Zephyr OS build c0689b16ff12 *** Device SPI not ready, aborting test***

So I want to confirm which version you're using to determine if this issue might be caused by the version.

截圖 2024-03-24 凌晨12 24 13

ZXZCNPOWER commented 5 months ago

Hi Oliver and JON, May I know if you have changed anything to compile/build this code? I have these errors when I try to build it.

BuildError_0620