SAM4L BOD33 problem

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

siceppe
Posts: 1
Joined: Mon Feb 25, 2013 5:59 pm

SAM4L BOD33 problem

Fri Feb 20, 2015 1:12 pm

Hi there,
i've some problem implementing brown-out detection BOD33 on my sam4lc. This is the code:

BSCIF->BSCIF_BOD33CTRL = BSCIF_BOD33CTRL_EN | BSCIF_BOD33CTRL_HYST | BSCIF_BOD33CTRL_FCD;
BSCIF->BSCIF_BOD33LEVEL =BSCIF_BOD33LEVEL_VAL(40);
BSCIF->BSCIF_BOD33CTRL |= BSCIF_BOD33CTRL_ACTION(1);

When the power decreases under 2,9V i can see BSCIF_PCLKSR_33DET bit at 1. But no RESET take place.
Where is the problem?
Could someone help me please?
sarlacii
Posts: 68
Joined: Mon Jan 26, 2015 2:33 pm

Re: SAM4L BOD33 problem

Fri May 22, 2015 3:28 pm

I'm working on a similar issue now on a samd20j18. You need to enable the fuses to support BOD - see Device Programming window, select Fuses to read back you fuses. This needs to be done before you try to get the BOD code to work. You may also need to configure the BOD in code space, irrespective of you fuses... but I'm still figuring that bit out. Anyway, off to post on my issue, relating to the calculation of the BOD level.

Go well.

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest