pyOCD icon indicating copy to clipboard operation
pyOCD copied to clipboard

Error occured if flash-info->blocks->count > 1 in cbuild-run file

Open erichying opened this issue 4 months ago • 1 comments

Running attached cbuild-run file CNANO_MCHP_Blinky_Example.cbuild-idx.yml throws error

 *  Executing task: pyocd load --probe cmsisdap: --cbuild-run c:\Users\M19877\Downloads\CNANO_MCHP_Blinky_Example\CNANO_MCHP_Blinky_Example\out\CNANO_MCHP_Blinky_Example+PIC32CM6408PL10048.cbuild-run.yml 

0000996 C attempt add region <FlashRegion@0x1e7abc08550 name=FLASH_0x800 type=MemoryType.FLASH start=0xc000000 end=0xc01ffff length=0x20000 access=rx blocksize=0x800> failed because it is out of bounds [__main__]

The issue is caused by defining "flash-info->blocks->count = 64" in line 510

  flash-info:
    - name: Flash
      start: 0x0C000000
      page-size: 0x00000200
      blocks:
        - count: 64
          size: 0x00000800
      blank-val: 0x00000000FFFFFFFF
      ptime: 1000000
      etime: 1000000

The error disappear if "count" is set to 1.

erichying avatar Jul 10 '26 11:07 erichying

Not valid

erichying avatar Jul 10 '26 13:07 erichying