2002-11-29 Marcel Telka <marcel@telka.sk>

* src/flash.c (flashmsbin, flashmem): Fixed crash if flash memory is not detected.
	* src/readmem.c (detectflash): Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@285 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 22 years ago
parent 9b10572c68
commit 566c79e209

@ -1,3 +1,8 @@
2002-11-29 Marcel Telka <marcel@telka.sk>
* src/flash.c (flashmsbin, flashmem): Fixed crash if flash memory is not detected.
* src/readmem.c (detectflash): Ditto.
2002-11-27 Marcel Telka <marcel@telka.sk>
* data/xilinx/xcr3128xl-cs144/xcr3128xl-cs144: Added pins and BSR bits.

@ -1,6 +1,7 @@
Changes since 0.1:
* Completed JTAG declarations for Xilinx XCR3128XL-CS144.
* Fixed crash if flash memory is not detected.
jtag-0.1 (2002-11-25):

@ -77,6 +77,10 @@ flashmsbin( parts *ps, FILE *f )
parts_shift_instructions( ps );
cfi = detect_cfi( ps );
if (!cfi) {
printf( "Flash not found!\n" );
return;
}
/* test sync bytes */
{
@ -213,6 +217,11 @@ flashmem( parts *ps, FILE *f, uint32_t addr )
parts_shift_instructions( ps );
cfi = detect_cfi( ps );
if (!cfi) {
printf( "Flash not found!\n" );
return;
}
erased = malloc( cfi->device_geometry.erase_block_regions[0].number_of_erase_blocks * sizeof *erased );
if (!erased) {
printf( "Out of memory!\n" );

@ -74,6 +74,10 @@ detectflash( parts *ps )
parts_shift_instructions( ps );
cfi = detect_cfi( ps );
if (!cfi) {
printf( "Flash not found!\n" );
return;
}
/* detect CFI capable devices */
/* TODO: Low chip only */

Loading…
Cancel
Save