- Oct 07, 2012
-
-
Olivier Schonken authored
In FLASHD_ErasePages AT91C_EFC_FCMD_EPA is used to erase sectors. According to the datasheet FARG[15:2] defines the page from which the erase will start.This page must be modulo 4, 8, 16 or 32 according to the number of pages to erase. FARG[1:0] defines the number of pages to be erased. Previously (firstpage << 2) was used to conform to this, seems it should not be shifted... Changed it to (firstPage) | erasePages. Change-Id: I791cc7fc4faf056623ad5a6c7e860315306098a1 Signed-off-by:
Olivier Schonken <olivier.schonken@gmail.com> Reviewed-on: http://openocd.zylin.com/897 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
- Oct 04, 2012
-
-
Spencer Oliver authored
adapter_init expects jtag_get_speed (via ftdi_khz) to return a valid fallback speed if the adapter does not support rclk. The call was failing and so was the rest of the adapter init. The makes the new ftdi driver emulate the old ftdi driver. Change-Id: Ic7fac7d201241eb181e98f1ba7111f159731f6e0 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/877 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: I4a02e0504fc04ffc1238d9bb77ec05c1f781e7e8 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/876 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: Ibab5112f5f70a609136d01ebc50530a334640d03 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/875 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: Id66d4e03a77c47a49086ee753bed01b3944064e1 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/874 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: I13534742c76ebbb05b47bf98768c997068da747a Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/888 Tested-by: jenkins
-
Spencer Oliver authored
The cortino uses a direct srst connection rather than via any buffer. As a result this fixes issues with the newer ftdi driver. Change-Id: I28f6781bccae24de79aa6a03161f298a14fe2581 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/887 Tested-by: jenkins
-
Spencer Oliver authored
this avoid driving nSRST high after startup, by making sure the nOE is initialized inactive/high. This also matches the config used for the STM32-PerformanceStick. Change-Id: I9376de575b7dc834310d57dbd58575d51f60183e Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/889 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: I96f17c5ea2be506a6b88434616ca52c3e392868a Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/890 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: I5402b5521d6e1ef0a569f5cad02c003681f5444b Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/885 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: I21a115121f167dc88cd9bf2d1ca1ac9f3e1110d7 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/886 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: Ia6c45477381e78cb9508b4731438161e18be1f38 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/882 Tested-by: jenkins
-
Spencer Oliver authored
The str9-comstick uses a direct srst connection rather than via any buffer. As a result this fixes issues with the newer ftdi driver. Change-Id: I0968e8459997a6a2b7bf0c46e89662cd57b4f496 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/881 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: I9852d11e369e501af240a2b8e9f74306aee4e4a0 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/884 Tested-by: jenkins
-
Spencer Oliver authored
This hardware uses a output enable buffer that was not correctly defined. Fixes issues when using the new ftdi driver. Change-Id: Iba6235a71a6d3c7d16ab729f858b336a4574dfea Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/883 Tested-by: jenkins
-
Spencer Oliver authored
Change-Id: If230c0b5b3a18fd273106b743404079d0cbc9ddc Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/880 Tested-by: jenkins
-
- Oct 02, 2012
-
-
Spencer Oliver authored
fix a simple copy/paste bug. Change-Id: I5caaa4d16d30f26a453bd6a00c95261fd6e716c5 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/873 Tested-by: jenkins
-
Freddie Chopin authored
This reverts commit 63a23e6f, which causes problems with various flash drivers (i.e. LPC1xxx/LPC2xxx) due to working area handling. Change-Id: I291ff2ac4f1eef7ecd553d0eb8895b790beb38c3 Signed-off-by:
Freddie Chopin <freddie.chopin@gmail.com> Reviewed-on: http://openocd.zylin.com/872 Reviewed-by:
Øyvind Harboe <oyvindharboe@gmail.com> Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
- Sep 07, 2012
-
-
Freddie Chopin authored
Change-Id: I72eeabfc704d2a979ac0b4492771690631d2300f Signed-off-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Spencer Oliver authored
The stlink interface currently does not support 16bit read/writes. Until a fix is included we issue a error that this is unsupported. Change-Id: I4552cf2bd3b29e90ecc905325b743c08e2b92d67 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/808 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Chuen Chou authored
In at91sam3.c for Atmel SAM3 flash support, there are arithmetic errors in the functions sam3_page_read() and sam3_page_write(). Address locations are computed incorrectly due to an extra addition operation. This leads to memory locations being skipped during flash writes and reads. Smaller programs are written successfully into flash, with memory gaps, while larger programs of legitimate size fail because the skipped memory is not utilized and therefore unavailable. The changes address this condition, and have been tested with an Atmel SAM3X-EK evaluation board. Change-Id: I9ea3b9ed0130b71cbc32b2294e31a6a2bc71b47a Signed-off-by:
Chuen Chou <zhouquan27@gmail.com> Reviewed-on: http://openocd.zylin.com/806 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
- Sep 06, 2012
-
-
Spencer Oliver authored
Change-Id: I5e1d7c88e9310e6415f3663d7a657f516bd24660 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/803 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Spencer Oliver authored
Change-Id: I7000b5ab2967f8dc4cea8983978fce824ea1f98e Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/807 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Spencer Oliver authored
If the target does not support SYSRESETREQ we fall back to using VECTRESET. This however does not reset the peripherals and we issue a warning to the user to suggest using a reset-init script. Also suggest that using hardware srst will give them the same functionality as using SYSRESETREQ. Change-Id: Ie1781c4b849fed66c52222e6539735537c879fb3 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/802 Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
- Aug 29, 2012
-
-
Freddie Chopin authored
Signed-off-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Freddie Chopin authored
Signed-off-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Salvador Arroyo authored
In function pic32mx_write_block() if the parameter offset is not a multiple of row size the row offset (offset % row_size) will be ignored by the flash controller, shifting the code to the beginning of the row. Word programming gets it right. Change-Id: I134913e3d533688f791bbcb0c6e8983524197f3c Signed-off-by:
Salvador Arroyo <sarroyofdez@yahoo.es> Reviewed-on: http://openocd.zylin.com/796 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Spencer Oliver authored
So the user can view the current port number these cmds were changed to COMMAND_ANY. However this means that the user can also attempt to change the port number after init, even though this is not supported. Issue a warning that this is not supported. Change-Id: I3d20dcd81277e7d994240a8e314f27672ff760c4 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/788 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Spencer Oliver authored
Change-Id: I5fe7b695b00faef966e7621614bbd60b6e694a4f Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/800 Tested-by: jenkins Reviewed-by:
Mathias Küster <kesmtp@freenet.de> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Spencer Oliver authored
Treat SWD wait result as success, otherwise hardware reset will sometimes fail. Change-Id: I0dbdbe9e75924fe0dde547a72883c60c3db7b15e Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/799 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Andreas Fritiofson authored
The last bit of a scan is clocked during TAP movement so it's necessary for the last field to have at least one bit. Strip trailing empty fields and make sure the TAP is not affected if there's nothing to scan. Clients probably shouldn't add empty fields so add a debug message to be able to track and fix them. Change-Id: I27552568bc11146570b9b99ed8a1ae81b5fb2c50 Signed-off-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/794 Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk> Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Andreas Fritiofson authored
When there's no data to scan in or out, we still use the clock data out command and fill the buffer with zeroes, so make sure the buffer is checked for available space. Change-Id: Ia6005c40c81f7fdb89379f1b5023fe383184d210 Signed-off-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/793 Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk> Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Spencer Oliver authored
Change-Id: I8e68b9d6f571ef7715a2f4cad0aa78fe4e3b48e8 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/798 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Spencer Oliver authored
Currently only the adapter speed is printed, which can be rather misleading when DEBUG_INFO is disabled, all the user sees is 6000 kHz instead lets print adapter speed: 6000 kHz Change-Id: I8f02a63f47344457e3c3d0a6774157fa18206440 Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/797 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Freddie Chopin authored
Added some missing items to NEWS file prior to final 0.6.0 release. Change-Id: I69255c85fa8f4b6f06eae7c56f78072e3ec2d6f8 Signed-off-by:
Freddie Chopin <freddie.chopin@gmail.com> Reviewed-on: http://openocd.zylin.com/784 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Freddie Chopin authored
DISTORTEC's JTAG-lock-pick Tiny 2 is a new interface using FT232HL chip and layout similar to KT-LINK. Change-Id: I2831b169cd448ca70397f2dd86c5b749dda3dabf Signed-off-by:
Freddie Chopin <freddie.chopin@gmail.com> Reviewed-on: http://openocd.zylin.com/787 Tested-by: jenkins Reviewed-by:
Spencer Oliver <spen@spen-soft.co.uk>
-
Freddie Chopin authored
Add single "scripts" folder to search path for Windows OpenOCD builds that don't use cygwin bin/openocd.exe scripts/interface/dummy.cfg scripts/target/at91eb40a.cfg Do some refactoring of current code (thx to Andreas). Change-Id: Idbb08d1368b06f25da44f4f9ab1511db992b1724 Signed-off-by:
Freddie Chopin <freddie.chopin@gmail.com> Signed-off-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/785 Tested-by: jenkins
-
Andreas Fritiofson authored
Offset calculation into buffer was wrong and code would read outside buffer if count was not a multiple of four. Change-Id: Ied625b10221423d5a5f25d27ce1edd8c2c3eca8a Signed-off-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/749 Reviewed-by:
Peter Stuge <peter@stuge.se> Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Christopher Kilgour authored
The number if longwords or "sections" (Freescale term) written for a Kinetis flash write (4, 8, or 16 bytes depending on the part density/granularity) are now rounded up to ensure there are no truncations when the desired write is not a multiple of the minimum write size. Change-Id: I8db40a8769d8ac5393a46cbf4e5ff0df82faf916 Signed-off-by:
Christopher Kilgour <techie@whiterocker.com> Reviewed-on: http://openocd.zylin.com/738 Tested-by: jenkins Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-
Spencer Oliver authored
Memory leaks discovered by clang 3.1 Change-Id: I8a784ba9726deac508424eddb27e9c8409e2773f Signed-off-by:
Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/795 Tested-by: jenkins Reviewed-by:
Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-by:
Freddie Chopin <freddie.chopin@gmail.com>
-