Re: [Uboot-stm32] [PATCH] dfu: dfu_mtd: set max_buf_size to erasesize also for NOR devices

2021-06-18 Thread Patrice CHOTARD
On 4/20/21 12:24 PM, Patrice CHOTARD wrote: > Hi Patrick > > On 3/4/21 5:47 PM, Patrick Delaunay wrote: >> For NOR devices the logical DFU buffer size is the sector_size, >> as it is done in dfu_sf.c or in spi/sf_mtd.c >> (sf_mtd_info.erasesize = flash->sector_size) >> >> For NAND the DFU size

Re: [Uboot-stm32] [PATCH] dfu: dfu_mtd: set max_buf_size to erasesize also for NOR devices

2021-06-07 Thread Lukasz Majewski
Hi Patrick, > Thanks Patrice, > > On 4/20/21 12:24 PM, Patrice CHOTARD wrote: > > Hi Patrick > > > > On 3/4/21 5:47 PM, Patrick Delaunay wrote: > >> For NOR devices the logical DFU buffer size is the sector_size, > >> as it is done in dfu_sf.c or in spi/sf_mtd.c > >> (sf_mtd_info.erasesize =

Re: [Uboot-stm32] [PATCH] dfu: dfu_mtd: set max_buf_size to erasesize also for NOR devices

2021-06-04 Thread Patrick DELAUNAY
Thanks Patrice, On 4/20/21 12:24 PM, Patrice CHOTARD wrote: Hi Patrick On 3/4/21 5:47 PM, Patrick Delaunay wrote: For NOR devices the logical DFU buffer size is the sector_size, as it is done in dfu_sf.c or in spi/sf_mtd.c (sf_mtd_info.erasesize = flash->sector_size) For NAND the DFU size

Re: [Uboot-stm32] [PATCH] dfu: dfu_mtd: set max_buf_size to erasesize also for NOR devices

2021-04-20 Thread Patrice CHOTARD
Hi Patrick On 3/4/21 5:47 PM, Patrick Delaunay wrote: > For NOR devices the logical DFU buffer size is the sector_size, > as it is done in dfu_sf.c or in spi/sf_mtd.c > (sf_mtd_info.erasesize = flash->sector_size) > > For NAND the DFU size was already limited to erasesize as > has_pages = true.