Avatar for Frickler

Frickler

Member since Jan 2014 • Last active Jan 2014
  • 1 conversations
  • 2 comments

Most recent activity

    • 4 comments
    • 3,261 views
  • in General
    Avatar for Frickler

    Hi Gordon,

    thanks for your support. I managed to compile Espruino for the FEZ Cerb 40. I changed the HSE_VALUE to 12000000 and the PLL_M to 12. Strangely I get a baud rate of ~14400. I would like to commit this support upstream. Any idea how the STM32F4DISCOVERY and the FEZ CERB40 can coexist since they use the same targetlib but with different value for PLL_M which is currently not using an if not defined statement like the HSE_VALUE (maybe change this to a if not defined and override the default of 8 from the Makefile?). Looking forward to my Espruino board.

    Thanks for your support

    Alex

  • in General
    Avatar for Frickler

    Hi,

    I'm currently trying to port Espruino to the GHI Electronics FEZ CERB 40 board which is using a STM32F4. So I took the STM32F4DISCOVERY board configuration and compiled and flashed it to the board using the dfu-util. After I connected a serial line I have seen garbage on the terminal. It looks like I have a timing issue on my serial line so my current guess is that the PLL is not set up as expected. I looked closer to the schematics of the CERB40 and the STM32F4DISCOVERY and spotted that they are using a different system crystal. CERB40 uses 12 MHz instead of 8 MHz on the DISCOVERY. So I looked in the source and found the PLL_M define in targetlibs/stm32f4/lib/system_stm32f4xx.­c and changed it from 8 to 12 to get to the 168 MHz. So after a make clean and a recompile and flash I still get the garbage on the serial line. Can anybody give me a pointer what I might be missing here?

    Thanks in advance,

    Alex

Actions