Giter Site home page Giter Site logo

power subsystem about trezor-firmware HOT 2 CLOSED

trezor avatar trezor commented on July 28, 2024
power subsystem

from trezor-firmware.

Comments (2)

mcudev avatar mcudev commented on July 28, 2024

For reference, I began working on some contingency code that would try to persevere even with low voltage, and gave it up.
Basically, it configured the PLL to deliver the 48 MHz clock domain for the TRNG, USB, and SDIO and used the 8 MHz HSE directly as the system clock (with clock security enabled).
It also disabled the ART flash prefetch buffer and instruction and data caches.
That would be the most resilient config and would allow the MCU to run code from flash with 0 wait states and still be within all specified operating voltages.
I would have also have had to set the flash program/erase parallelism size down to 8 bits. But, really it's kind of pointless because of the microSD and USB operating voltage ranges bottoming out around 2.7-3V.
Of note is that at 8MHz, the screen refresh time is noticeably slower and thus the display code would need to be optimized.
Also, with an 8MHz system clock, you have to adjust the I2C clock speed to the touch panel to be less than around 299 KHz (and less to be safe -- AN3430 section 2.1.3 has more info on this). The errata sheet, section 2.4.3, mentions even using 88KHz in some circumstances. The touch panel still feels responsive at 88KHz.

from trezor-firmware.

mcudev avatar mcudev commented on July 28, 2024

closing as not actionable

from trezor-firmware.

Related Issues (20)

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.