-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added and integrated spi_obi_slave peripheral to x-heep #597
base: main
Are you sure you want to change the base?
Conversation
properly now
spi_wait_for_ready(spi); | ||
|
||
const uint32_t send_cmd_word = spi_create_command((spi_command_t){ | ||
.len = 4, // 4 Bytes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that if you want to write N bytes you have to pass to the function N-1, look at the examples
|
||
// Set up segment parameters -> send commands | ||
const uint32_t send_cmd_byte = spi_create_command((spi_command_t){ | ||
.len = 1, // 1 Byte (The SPI SLAVE IP can only take one CMD byte at a time) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that if you want to write N bytes you have to pass to the function N-1, look at the examples
…ntly issue with dummy cycle and the fifo where the tx fifo needs two spi master clock cycles to trigger which requires at least two dummy cycles
…c function doesn't work properly
… spi host was filled up and data didn't get sent out
👍 |
… finished) fixed and changed test structure to make it very convenient
The obi part is missing the byte enable (be) signal