| Index: emcore/trunk/tools/emcore.py | 
| — | — | @@ -877,7 +877,7 @@ | 
| 878 | 878 | self.logger.info("done\n") | 
| 879 | 879 |  | 
| 880 | 880 | @command | 
| 881 |  | -    def readrawstoragefile(self, volume, sector, count, file, buffsize = 100000, buffer = None):
 | 
|  | 881 | +    def readrawstoragefile(self, volume, sector, count, file, buffsize = 0x100000, buffer = None): | 
| 882 | 882 | """ | 
| 883 | 883 | Reads <count> sectors starting at <sector> from storage <volume> to file <file>, | 
| 884 | 884 | buffering them in memory at [buffer] in chunks of [buffsize] bytes (both optional). | 
| — | — | @@ -912,7 +912,7 @@ | 
| 913 | 913 | self.logger.info("done\n") | 
| 914 | 914 |  | 
| 915 | 915 | @command | 
| 916 |  | -    def writerawstoragefile(self, volume, sector, count, file, buffsize = 100000, buffer = None):
 | 
|  | 916 | +    def writerawstoragefile(self, volume, sector, count, file, buffsize = 0x100000, buffer = None): | 
| 917 | 917 | """ | 
| 918 | 918 | Writes contents of <file> to <count> sectors starting at <sector> on storage <volume>, | 
| 919 | 919 | buffering them in memory at [buffer] in chunks of [buffsize] bytes (both optional). | 
| — | — | @@ -1005,7 +1005,7 @@ | 
| 1006 | 1006 | self.logger.info(" done\n") | 
| 1007 | 1007 |  | 
| 1008 | 1008 | @command | 
| 1009 |  | -    def get(self, remotename, localname, buffsize = 10000, buffer = None):
 | 
|  | 1009 | +    def get(self, remotename, localname, buffsize = 0x10000, buffer = None): | 
| 1010 | 1010 | """ | 
| 1011 | 1011 | Downloads a file | 
| 1012 | 1012 | <remotename>: filename on the device | 
| — | — | @@ -1040,7 +1040,7 @@ | 
| 1041 | 1041 | self.logger.info(" done\n") | 
| 1042 | 1042 |  | 
| 1043 | 1043 | @command | 
| 1044 |  | -    def gettree(self, remotepath, localpath, buffsize = 10000, buffer = None):
 | 
|  | 1044 | +    def gettree(self, remotepath, localpath, buffsize = 0x10000, buffer = None): | 
| 1045 | 1045 | """ | 
| 1046 | 1046 | Downloads a directory tree | 
| 1047 | 1047 | <remotepath>: path on the device | 
| — | — | @@ -1074,7 +1074,7 @@ | 
| 1075 | 1075 | self.emcore.free(buffer) | 
| 1076 | 1076 |  | 
| 1077 | 1077 | @command | 
| 1078 |  | -    def put(self, localname, remotename, buffsize = 10000, buffer = None):
 | 
|  | 1078 | +    def put(self, localname, remotename, buffsize = 0x10000, buffer = None): | 
| 1079 | 1079 | """ | 
| 1080 | 1080 | Uploads a file | 
| 1081 | 1081 | <localname>: filename on the computer | 
| — | — | @@ -1111,7 +1111,7 @@ | 
| 1112 | 1112 | self.logger.info(" done\n") | 
| 1113 | 1113 |  | 
| 1114 | 1114 | @command | 
| 1115 |  | -    def puttree(self, localpath, remotepath, buffsize = 10000, buffer = None):
 | 
|  | 1115 | +    def puttree(self, localpath, remotepath, buffsize = 0x10000, buffer = None): | 
| 1116 | 1116 | """ | 
| 1117 | 1117 | Uploads a directory tree | 
| 1118 | 1118 | <localpath>: path on the computer | 
| Index: emcore/trunk/tools/libemcore.py | 
| — | — | @@ -618,7 +618,7 @@ | 
| 619 | 619 | return result | 
| 620 | 620 |  | 
| 621 | 621 | @command(timeout = 50000) | 
| 622 |  | -    def storage_read_sectors_md(self, volume, sector, count, size = 100000, addr = None):
 | 
|  | 622 | +    def storage_read_sectors_md(self, volume, sector, count, size = 0x100000, addr = None): | 
| 623 | 623 | """ Read sectors from as storage device. If addr is not given it allocates a buffer itself. """ | 
| 624 | 624 | if addr is None: | 
| 625 | 625 | addr = self.malloc(size) | 
| — | — | @@ -633,7 +633,7 @@ | 
| 634 | 634 | if result.rc > 0x80000000: | 
| 635 | 635 | raise DeviceError("storage_read_sectors_md(volume=%d, sector=%d, count=%d, addr=0x%08X) failed with RC 0x%08X" % (volume, sector, count, addr, rc)) | 
| 636 | 636 |  | 
| 637 |  | -    def storage_write_sectors_md(self, volume, sector, count, size = 100000, addr = None):
 | 
|  | 637 | +    def storage_write_sectors_md(self, volume, sector, count, size = 0x100000, addr = None): | 
| 638 | 638 | """ Read sectors from as storage device. If addr is not given it allocates a buffer itself. """ | 
| 639 | 639 | if addr is None: | 
| 640 | 640 | addr = self.malloc(size) | 
| — | — | @@ -665,7 +665,7 @@ | 
| 666 | 666 | return result.size | 
| 667 | 667 |  | 
| 668 | 668 | @command(timeout = 30000) | 
| 669 |  | -    def file_read(self, fd, size = 100000, addr = None):
 | 
|  | 669 | +    def file_read(self, fd, size = 0x100000, addr = None): | 
| 670 | 670 | """ Reads data from a file referenced by a handle. If addr is not given it allocates a buffer itself. """ | 
| 671 | 671 | if addr is None: | 
| 672 | 672 | addr = self.malloc(size) | 
| — | — | @@ -682,7 +682,7 @@ | 
| 683 | 683 | return result.rc | 
| 684 | 684 |  | 
| 685 | 685 | @command(timeout = 30000) | 
| 686 |  | -    def file_write(self, fd, size = 100000, addr = None):
 | 
|  | 686 | +    def file_write(self, fd, size = 0x100000, addr = None): | 
| 687 | 687 | """ Writes data from a file referenced by a handle. If addr is not given it allocates a buffer itself. """ | 
| 688 | 688 | if addr is None: | 
| 689 | 689 | addr = self.malloc(size) |