On Mon, 13 Jan 2014, Chuck McManis wrote:
# Includes of the form #include <libopencm3/stm32/gpio.h>
# are the correct form, the variant (F2) in this case is added by the
Quite, thanks.
# I would suggest you do initialization in the following order:
# 1) Clock
# 2) GPIOs
# 3) Alternate Function peripherals (usually the UART)
# 4) timers
# 5) interrupts.
Will verify, though I don't think thats catching me here.
Honestly, it 'feels' to me like the code is right, but the ISR
vector table could be blown up, or soemthing along those lines. I'm not
really on top of that level of granularity here yet .. I'll check out the
.list file and see if that highlights anything.
ie: Could well be the ISR is firing, but its just not calling _my_
ISR? :)
# In your interrupt service routine you might consider gpio_toggle(GPIOC,
# GPIO3); which if you look at the implementation uses the setbit/resetbit
# address rather than the output data register directly. As written the
# read/modify write might have unintended side effects (I'm not sure here,
# just noting that other folks tend to use the BSRR/BRRR sort of form. As
# it works in polled mode this is likely a red herring.
Yeah, I switched to the register toggle, didn't matter;
ultiuamtely I'm going for a very timing sensitive project (video signals)
and cutting out the function call overhead can help sometimes, though
really at this stage I shoudln't have any bogus optimizations like that in
(and really should just use an inline instead of faking it.) Might well
end up being in ASM when I'm done, but baby steps :)
# As for utilities, as you can see from my github repos I've been adding
convienience functions, which work on the f4 but aren't really very applicable
to the other members of the family
# necessarily. I think the devs are open to adding new features but it was only
recently that things started moving again.
I did notice; excellent stuff there my friend!
# Lastly, Clive in the Google+ group is an ST Micro field engineer type and may
have additional insights.
Will hit him up :)
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