On Thu, Oct 11, 2012 at 7:40 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Wed, Oct 10, 2012 at 3:58 PM, Andreas Fritiofson
> <andreas.fritiof...@gmail.com> wrote:
>> On Wed, Oct 10, 2012 at 2:42 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>>> To OP: you may need to press a button so that the mcu
>>> will come out of sleep mode and then openocd should
>>> work fine. At this was true for me last time I had the
>>> working board.
>>
>> If sleep modes are the problem, perhaps this is related?
>> http://openocd.zylin.com/833
>>
>
> Not so sure. I think this is decided by the HW.
>
...
>
> The Hibernation Module manages removal and restoration of power to
> the microcontroller and peripherals while maintaining a real-time clock
> (RTC) and non-volatile memory. The EVB includes a 3 V Lithium battery
> to maintain Hibernate module power when USB power is unavailable.
> The Hibernation state is initiated in software. Leaving Hibernation mode
> requires either an RTC timer match event or assertion of the WAKE signal.
>
...
>
> Basically one needs to get the board out of hibernation before
> using OpenOCD.

But hibernation sounds like the board is completely powered down, i.e.
a feature of the board power supply, not the microcontroller. That's
different from the normal Cortex-M3 sleep modes where the power is
still on and debug logic powered but the core and peripherals are in
varying states of off. Is hibernation entered by WFI/WFE?

Sounds like the WAKE signal should have been routed to the FT2232,
then we could have scripted holding reset asserted, waking up the
board, initializing the core, setting up reset vector catch and
releasing reset.

/Andreas

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to