This is an automated email from Gerrit.

Han Hartgers ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/5245

-- gerrit

commit 264e944cc82b999ccc60eb69c334d7d1f7f1b5c0
Author: Han Hartgers <[email protected]>
Date:   Sat Jun 22 16:32:02 2019 +0200

    target/dsp563xx: restore dsp563xx_write_memory and dsp563xx_read_memory 
access
    
     The functions dsp563xx_write_memory and dsp563xx_read_memory returns
    ERROR_COMMAND_SYNTAX_ERROR when size is equal to the buffer size and count 
is
    equal to 0. This happens when dump_image and load_image commands are called.
    My new patch solves this by changing functions dsp563xx_write_buffer_default
    and dsp563xx_read_buffer_default to define the size = 0 and count = buffer 
size
    currectly. The underlaying functions maps size =0 to the default size = 4.
    
    Change-Id: Ib659bc22c327f6e7f0f247bcada3d4469afa6bc8
    Signed-off-by: Han Hartgers <[email protected]>

diff --git a/src/target/dsp563xx.c b/src/target/dsp563xx.c
index 6a5c868..f18bf72 100644
--- a/src/target/dsp563xx.c
+++ b/src/target/dsp563xx.c
@@ -1682,7 +1682,7 @@ static int dsp563xx_read_buffer_default(struct target 
*target,
        uint8_t *buffer)
 {
 
-       return dsp563xx_read_memory(target, dsp563xx_get_default_memory(), 
address, size, 0,
+       return dsp563xx_read_memory(target, dsp563xx_get_default_memory(), 
address, 0, size,
                        buffer);
 }
 
@@ -1854,7 +1854,7 @@ static int dsp563xx_write_buffer_default(struct target 
*target,
        uint32_t size,
        const uint8_t *buffer)
 {
-       return dsp563xx_write_memory(target, dsp563xx_get_default_memory(), 
address, size, 0,
+       return dsp563xx_write_memory(target, dsp563xx_get_default_memory(), 
address, 0, size,
                        buffer);
 }
 

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to