- **labels**:  --> samg


---

** [tickets:#188] samg55 start of debug speedup**

**Status:** new
**Milestone:** 0.9.0
**Labels:** samg 
**Created:** Tue Jun 05, 2018 09:20 AM UTC by Filip
**Last Updated:** Tue Jun 05, 2018 10:00 AM UTC
**Owner:** nobody
**Attachments:**

- [Screenshot at 2018-05-30 
16:10:44.png](https://sourceforge.net/p/openocd/tickets/188/attachment/Screenshot%20at%202018-05-30%2016%3A10%3A44.png)
 (77.7 kB; image/png)
- 
[at91sam4XXX.cfg](https://sourceforge.net/p/openocd/tickets/188/attachment/at91sam4XXX.cfg)
 (1.6 kB; application/octet-stream)
- 
[at91samg5x.cfg](https://sourceforge.net/p/openocd/tickets/188/attachment/at91samg5x.cfg)
 (188 Bytes; application/octet-stream)
- 
[atmel_samg55_xplained_pro.cfg](https://sourceforge.net/p/openocd/tickets/188/attachment/atmel_samg55_xplained_pro.cfg)
 (258 Bytes; application/octet-stream)
- 
[cmsis-dap.cfg](https://sourceforge.net/p/openocd/tickets/188/attachment/cmsis-dap.cfg)
 (218 Bytes; application/octet-stream)
- 
[openocd-debug.txt](https://sourceforge.net/p/openocd/tickets/188/attachment/openocd-debug.txt)
 (1.5 MB; text/plain)
- 
[swj-dp.tcl](https://sourceforge.net/p/openocd/tickets/188/attachment/swj-dp.tcl)
 (1.1 kB; text/x-tcl)


Hello,

I'm using SAMG55 xplained board with Eclipse. I made it debugging but the 
behaviour is weird. The main problem is speed. It takes about 25 seconds to 
start the debug session when I use default 500 kHz adaprer speed!! I tried to 
raise it to 5 MHz and it results in aprox 12 seconds. Its still damn slow for 
development.

I'm using gcc-arm-none-eabi-7-2017-q4-major and openocd 0.10.0-8-20180512-1921. 
In Eclipse I set paths to openocd and gdb executables and used -f 
board/atmel_samg55_xplained_pro.cfg and my .bin file is 460248 B long.

What happenes is it erases 0x00 - 0x38 flash sectors (57 sectors * 16 pages * 
512 bytes = 466944 B), afterwards it outputs some spilled tea and starts to 
write 899 sectors. The full output of openocd with -d is attached. I am not 
familiar with the write procedure but it takes most of the time so I assume it 
also erases the flash before writing.

Could this time be reduced somehow?


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to