Hi Jörg,

I use eclipse too. The problem is the buffer that get corrupt is allocated
dynamicaly. So the address always change. This is why I try to use the
"dynamic watchpoint". 

I think the best will be to use the MPU, but it's not easy to setup and use.


Jonathan
Jörg Fischer wrote:
> Hi,
> Am 28.02.2013 21:17, schrieb Jonathan Dumaresq:
>> Hi all,
>> 
>> I try to find a problem in our code. And I wonder if I can use a
>> sort of dynamic watchpoint. 
>> 
>> Like __asm("BKPT #0\n").
>> 
>> Is there an opcode that I can use to set and remove a watchpoint on a
>> cortex-M4 ?
> 
> I might have missed something, but you can use gdb to set watchpoints
> - halting your program when a specific memory location is read or
> written to.  
> 
> Just don't ask me how the commands are - I use Eclipse as the
> frontend and can set watchpoints in there. 
> 
> -- Jörg Fischer
> 
> 
> 
>
----------------------------------------------------------------------------
--
> Symantec Endpoint Protection 12 positioned as A LEADER in The
> Forrester 
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in
> the endpoint security space. For insight on selecting the right
> partner to tackle endpoint security challenges, access the full
> report. http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________  
> OpenOCD-devel mailing list
> OpenOCD-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openocd-devel



------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to