Avatar for user53771

user53771

Member since Mar 2015 • Last active Oct 2015
  • 1 conversations
  • 2 comments

Most recent activity

    • 4 comments
    • 2,388 views
  • in General
    Avatar for user53771

    Hi @Gordon,

    thanks for the feedback - I will try to go the first way first (maybe add external USB<=> Serial for accessing the board without USB).

    Regarding the compile time way: I do not really understand what the chip.speed setting in the .py file is good for? Is it used somewhere during the build to e.g. generate header files or code? Or is it only used to generate the (really nice) web pages?

    Thanks!

  • in General
    Avatar for user53771

    Hi,

    i would like to match the SPI clock frequency to some given value. From the STM32F103RCT6 hardware manual it looks like the SPI clock is generated from the AHB clock (PCLK) using a prescaler (divide by /2, /4, /8, ...). To get a more exact match to my required SPI clock, I can only think of changing the AHB clock...

    I have the following questions:

    1. Is it possible to change the AHB clock frequency from Javascript (or change the main PLL/clock)? If this is possible, how would that affect the other peripherals (like serial port baudrate)?
    2. How is the PLL set up during build, i.e. would it work to recompile everything after changing chip.speed from 72 to e.g. 68 in boards/ESPURINOBOARD.py? Would then the other peripheral clocks get calculated correctly?

    Thanks!

Actions