Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@BrendanKelly84213
Copy link
Contributor

@BrendanKelly84213 BrendanKelly84213 commented Sep 28, 2025

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

image

Checklist

  • [ x] Code Compiles
  • [x ] Did you add any comments
  • [ x] Did you test it at all ?! Good Boy/Girl

This code is a working example of SPI Master for the SAME70 on the
SAME70 Xplained Ultra dev board.
Clock has to be less than 100000Hz! This still needs refactoring Hence
WIP
@BrendanKelly84213 BrendanKelly84213 force-pushed the tools/SAME70_SPIMasterExample branch from c8bd1cf to 3530e49 Compare September 28, 2025 23:14
@BrendanKelly84213 BrendanKelly84213 marked this pull request as ready for review October 1, 2025 23:34
Copy link
Member

@silvehh silvehh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing that pops out to me

great job as always brendan!

@BrendanKelly84213 BrendanKelly84213 force-pushed the tools/SAME70_SPIMasterExample branch from c497461 to 66aea40 Compare October 2, 2025 21:25
@BrendanKelly84213 BrendanKelly84213 force-pushed the tools/SAME70_SPIMasterExample branch from 66aea40 to aeb5c3c Compare October 4, 2025 18:43
@BrendanKelly84213 BrendanKelly84213 force-pushed the tools/SAME70_SPIMasterExample branch from aeb5c3c to 310038b Compare October 4, 2025 18:46
Copy link
Collaborator

@dqwed01 dqwed01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dqwed01 dqwed01 merged commit 67eaf90 into main_protected Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants