Page 1 of 1

The PVD_DEV branch topic

Posted: Wed Jan 04, 2012 10:12 am
by Giovanni
Is this feature complete? the settings STM32_PVD_ENABLE and STM32_PLS are defined in hal_lld.h but not used anywhere except in the main.c.

Giovanni

Re: The PVD_DEV branch topic

Posted: Wed Jan 04, 2012 7:18 pm
by barthess
Feature very simple and can be completed for the whole STM32 in a day. I want to know some details.
1) feature without high level interface is it good? Now all handling doing in EXT driver.
2) by default it must be on or off?
3) is placing initialization code for it in hal_lld_init() good idea?

update:
IMO all features that have interrupts routed to EXTI must not have separate HL part. Just write good documentation on it.

Re: The PVD_DEV branch topic

Posted: Wed Jan 04, 2012 7:23 pm
by Giovanni
1) It is ok.
2) Off, probably it uses power.
3) I think it is the proper place.

Giovanni

Re: The PVD_DEV branch topic

Posted: Wed Jan 04, 2012 9:23 pm
by barthess
Changes PVD merged to trunk. Code compiles. Tomorrow I will test it in hardware and create test for F4x.

Re: The PVD_DEV branch topic

Posted: Thu Jan 05, 2012 8:56 am
by barthess
Tested in hardware on F1x and F4x. Test for L1x added, but I can not check it because the lack of hardware.

Re: The PVD_DEV branch topic

Posted: Wed Jan 18, 2012 11:34 pm
by Raig
Hy, I got now running the 2.4.0 (trunk) on my STM32L-Discovery board. I like to use the PVD feature to switch over from external supply to battery operation. The plan is to generate an interrupt which switch the controller in stop mode and RTC is still running. My problem is now to generate the interrupt for the PVD. I do not understand what is to do to configure, initialize and catch the interrupt.
May somebody got a small example.

Re: The PVD_DEV branch topic

Posted: Thu Jan 19, 2012 6:41 am
by barthess
Hi Raig,
Lots of useful examples you can find in testhal directory. For example testhal\STM32L1xx\PVD show how to use PVD.

Re: The PVD_DEV branch topic

Posted: Fri Jan 20, 2012 12:21 am
by Raig
Hy Barthess,

thank you very match for the hint, I never looked at this folder. Now I will try my luck.

Raig