Tools/SAME70: SPI Master example code #58
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This code is a working example of SPI Master for the SAME70 on the SAME70 Xplained Ultra dev board.
Description (tell us what you changes or added or removed please)
Code for reference and experimentation only.
Tried getting SPI to work using the examples given in ATMEL start but didn't have any luck. The examples are all very complicated and lengthy. SAM has chip select peripherals NPCS0 through 3, and those examples all use NPCS0, however our dev boards do not expose the NPCS0 pin, so I believe that's where my issues stemmed from. I found an example project here which is more manual and simple. Made some modifications and managed to get something back from the MRAM on requesting the device ID.
How to test (if any tests done)
Just hooked up the pins to a logic analyzer and MRAM
Checklist