-
Notifications
You must be signed in to change notification settings - Fork 166
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
drv/stm32h7-fmc-demo: ill-advised memory controller #1662
Conversation
d55a6eb
to
6d6f0a0
Compare
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.
this is deeply disquieting :)
let ptr = addr as *mut u16; | ||
unsafe { ptr.write_volatile(value) } |
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.
hahahahha, whew :D
_msg: &RecvMessage, | ||
addr: u32, | ||
) -> Result<u16, RequestError<Infallible>> { | ||
let ptr = addr as *const u16; |
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.
presumably pointer provenance would eventually prefer us to use ptr::from_exposed_addr
for ... all of these shenanigans, but that's not real yet...
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.
lgtm, thanks for getting this set up!
6d6f0a0
to
2ffb59d
Compare
This is an exercise fixture for the PSRAM mode of the Flexible Memory Controller on the STM32H7, for evaluating FPGA interface options. It lets you do many ill-advised things via IPC. They all appear to work, no matter what the datasheet implies. Good luck!
2ffb59d
to
97c57a7
Compare
This is an exercise fixture for the PSRAM mode of the Flexible Memory Controller on the STM32H7, for evaluating FPGA interface options. It lets you do many ill-advised things via IPC. They all appear to work, no matter what the datasheet implies.
Good luck!