Complete STM32 noobie here, I'm afraid.

        I noticed in the rcc.[hc] code theres a handy dandy function that 
looks ready to go to set 120MHz (which is the chip max - STM32F205RE if 
memory serves, just slapped onto a breadboard; its working, I can blink 
LEDs.)

        rcc_clock_setup_hse_3v3 ( &hse_8mhz_3v3[CLOCK_3V3_120MHZ]);

        The struct is populated in rcc.c.

        Most of the documentation is missing at least for this module .. 
list of function, check, but no idea if theres any setup required, how 
well tested, order of oeprations, etc. But likely this is all obvious to 
anyone with much on the metal ARM experience :)

        Adding this line of code in place, the application (just a LED blinker 
for testing sake) crashes. I've not set up a gdb server etc to trace into it so 
I don't have any additional details I'm afraid :( (any tips on debugging Linux 
gcc to STM32 are welcome ;) I've not hooked up any ftdi serial debuggers 
etc/yadda/yadda :)

        Question: are there any pre-req's for this function to work? I 
know the lib works at least at some level, since blinking the LED via GPIO 
function call is happy.

        ie: Does the chip need to be running on an actual crystal or oscilator 
to hit 120MHz, say? Or perhaps you cannot set PLL and such immediatley on 
power up..

        Or is it possible this is boilerplate code in libopencm3 and not well 
tested (at least against bare chip, I'm betting most people are using the 
eval or discovery boards for the STM32 chips, or well constructed pcbs.)

                jeff

--
If everyone would put barbecue sauce on their food, there would be no war.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to