GithubHelp home page GithubHelp logo

Comments (13)

willemml avatar willemml commented on June 29, 2024

As of ab41166 reading external flash seems to work correctly, but writing to it and erasing it does not. Unsetting memory mapped mode no longer causes a crash.

from rustworks.

willemml avatar willemml commented on June 29, 2024

Note that external flash is actually supposed to be read as 32 bit integers, not individual bytes. This is shown (working) in a3d80ab.

from rustworks.

rfuest avatar rfuest commented on June 29, 2024

One issue I noticed in external_flash.rs is that you use self.qspi.cr.write instead of modify in send_command_full, which will some settings to their reset value.

from rustworks.

willemml avatar willemml commented on June 29, 2024

Hmm, I tried using modify instead of write for cr but now attempts to write memory cause the calculator to either crash or freeze (without reseting, so I am going to assume it is waiting for the abort).

from rustworks.

willemml avatar willemml commented on June 29, 2024

For reference, here are the changes I made:

self.qspi.cr.write(|w| w.abort().set_bit());

to

self.qspi.cr.modify(|_, w| w.abort().set_bit());

and then I also tried

self.qspi.cr.write(|r, w| unsafe { w.bits(r.bits()) }.abort().set_bit());

from rustworks.

willemml avatar willemml commented on June 29, 2024

Thanks to #8 all that is left is to create a bootloader that also allows flashing of the QPI external flash via tools such as probe-rs and dfu-util.

from rustworks.

willemml avatar willemml commented on June 29, 2024

There is a boot loader project called loadstone that looks interesting and is probably worth exploring...

EDIT:
Might be worth waiting for loadstone to directly use embedded-hal to make porting it to stm32f730 easier if the loadstone route is taken.
Will continue to explore alternative methods of using external flash for main program storage.

from rustworks.

willemml avatar willemml commented on June 29, 2024

Flash algo attempt (fixed by rfuest in nw-rs/flash-algo#1): https://github.com/willemml/rsworks-flash-algo

from rustworks.

naveenprasathc avatar naveenprasathc commented on June 29, 2024

Do you still have the issue?
I have worked on QSPI flash drivers, I can help if needed.

from rustworks.

willemml avatar willemml commented on June 29, 2024

Currently the only things left to do are to allow probe-run to use the flash also (so add a command line argument to take custom chip definition yaml, which needs to be done in the probe-run repo), add dfu support and a boot loader.

from rustworks.

willemml avatar willemml commented on June 29, 2024

@npc15 if you have any tips (or want to help with) creating a dfu bootloader (or even just a bootloader in general for the QSPI flash) it would be greatly appreciated, my current blocker is moving the code off of internal flash and onto QSPI (the end goal being to have the bare minimum on the internal flash).

from rustworks.

naveenprasathc avatar naveenprasathc commented on June 29, 2024

@npc15 if you have any tips (or want to help with) creating a dfu bootloader (or even just a bootloader in general for the QSPI flash) it would be greatly appreciated, my current blocker is moving the code off of internal flash and onto QSPI (the end goal being to have the bare minimum on the internal flash).

Ok sure,
will give you an update soon

from rustworks.

willemml avatar willemml commented on June 29, 2024

As of 5a52fe6 DFU flashing of external flash works, booting not yet implemented.

from rustworks.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.