From cb215b6ba3530dbaee44fda4594a5ea2bd760083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Mon, 25 May 2009 19:44:59 +0000 Subject: [PATCH] [ 2793104 ] hidden bug? in bf533-stamp.c (MURANAKA Masaki) git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1627 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 5 +++++ urjtag/src/bus/bf533_stamp.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 2683021f..280c5d6b 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,8 @@ +2009-05-25 Arnim Laeuger + + * src/bus/bf533_stamp.c: [ 2793104 ] hidden bug? in bf533-stamp.c + (MURANAKA Masaki) + 2009-05-24 Rutger Hofman * src/bus/readmem.c, src/bus/writemem.c, include/urjtag/bus.h, diff --git a/urjtag/src/bus/bf533_stamp.c b/urjtag/src/bus/bf533_stamp.c index fae19b87..8304d3b7 100644 --- a/urjtag/src/bus/bf533_stamp.c +++ b/urjtag/src/bus/bf533_stamp.c @@ -43,6 +43,7 @@ typedef struct urj_part_signal_t *addr[19]; urj_part_signal_t *data[16]; urj_part_signal_t *pf[2]; + urj_part_signal_t *are; urj_part_signal_t *awe; urj_part_signal_t *aoe; urj_part_signal_t *sras; @@ -56,6 +57,7 @@ typedef struct #define DATA ((bus_params_t *) bus->params)->data #define PF ((bus_params_t *) bus->params)->pf #define AWE ((bus_params_t *) bus->params)->awe +#define ARE ((bus_params_t *) bus->params)->are #define AOE ((bus_params_t *) bus->params)->aoe #define SRAS ((bus_params_t *) bus->params)->sras #define SCAS ((bus_params_t *) bus->params)->scas @@ -123,6 +125,8 @@ bf533_stamp_bus_new (urj_chain_t *chain, const urj_bus_driver_t *driver, failed |= urj_bus_generic_attach_sig (part, &(AWE), "AWE_B"); + failed |= urj_bus_generic_attach_sig (part, &(AWE), "ARE_B"); + failed |= urj_bus_generic_attach_sig (part, &(AOE), "AOE_B"); failed |= urj_bus_generic_attach_sig (part, &(SRAS), "SRAS_B"); @@ -255,6 +259,7 @@ bf533_stamp_bus_read_start (urj_bus_t *bus, uint32_t adr) select_flash (bus); urj_part_set_signal (p, AOE, 1, 0); + urj_part_set_signal (p, ARE, 1, 0); urj_part_set_signal (p, AWE, 1, 1); setup_address (bus, adr); @@ -300,6 +305,7 @@ bf533_stamp_bus_read_end (urj_bus_t *bus) unselect_flash (bus); urj_part_set_signal (p, AOE, 1, 1); + urj_part_set_signal (p, ARE, 1, 1); urj_part_set_signal (p, AWE, 1, 1); urj_tap_chain_shift_data_registers (chain, 1); @@ -324,7 +330,7 @@ bf533_stamp_bus_write (urj_bus_t *bus, uint32_t adr, uint32_t data) (long unsigned) data, (long unsigned) adr); select_flash (bus); - urj_part_set_signal (p, AOE, 1, 1); + urj_part_set_signal (p, ARE, 1, 1); setup_address (bus, adr); setup_data (bus, data);