Skip to content
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

Memory: Writing resetcounter to all MRAMS does stop chip0 .. 2 for read/write access. #39

Open
RobertK66 opened this issue Aug 16, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@RobertK66
Copy link
Owner

The MEM_WRITE_PAGE0(0x3F); in line obc_memory.c initiates SPI DMA writes for all 6 mram chips to write new content of page0.

The Data gets written correctly but the Callbacks for Chip0, Chip1 & Chip2 are never executed !!!???

This leads the memory module in unsave state (trying to finalise the writePage0 operation and no other read write is going to work afterwards. (-> Busy Error)

@RobertK66
Copy link
Owner Author

For making mram tests for the radtestversions I temporarly disable the line -> With this workaround the reset counter will not be persisted in MRAM any longer!
Solve this after RADTEST version run.

@RobertK66 RobertK66 self-assigned this Aug 16, 2022
RobertK66 added a commit that referenced this issue Aug 16, 2022
@RobertK66
Copy link
Owner Author

RobertK66 commented Aug 17, 2022

It seems that the DMA IRQ for the SPI0 is not triggered/executed when all 6 jobs are written at the same time!?
Manually all read and writes do execute correct, if triggered with single calls from command line.

Now I have a workaround in place where the reset counter is kept correct. (I update only chip3 to 5 with the line MEM_WRITE_PAGE0(0x07). This finishes ok and all 6 chips are usable afterwards!

But still this is only a workaround. The real reason why 6 writes do not finish is still unknown!

@RobertK66 RobertK66 added the bug Something isn't working label Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant