name: synwit
variants:
- name: swm341
  cores:
  - name: main
    type: armv6m
    core_access_options: !Arm
      ap: !v1 0
  memory_map:
  - !Nvm
    range:
      start: 0x0
      end: 0x80000
    cores:
    - main
    access:
      boot: true
  - !Ram
    range:
      start: 0x20000000
      end: 0x20010000
    cores:
    - main
    access:
      boot: true
  - !Nvm
    range:
      start: 0x70000000
      end: 0x71000000
    cores:
    - main
  flash_algorithms:
  - swm341xe
  - swm341_spiflash
flash_algorithms:
- name: swm341_spiflash
  description: SWM341xE W25Q128
  default: true
  instructions: [encoded data, 10508 characters]
  pc_init: 0x1
  pc_uninit: 0x1d
  pc_program_page: 0x59
  pc_erase_sector: 0x3d
  pc_erase_all: 0x29
  data_section_offset: 0xebc
  flash_properties:
    address_range:
      start: 0x70000000
      end: 0x71000000
    page_size: 0x1000
    erased_byte_value: 0xff
    program_page_timeout: 100
    erase_sector_timeout: 3000
    sectors:
    - size: 0x1000
      address: 0x0
  cores:
  - main
- name: swm341xe
  description: SWM341xE Onchip Flash
  default: true
  instructions: [encoded data, 10464 characters]
  pc_init: 0x1
  pc_uninit: 0x15
  pc_program_page: 0x3d
  pc_erase_sector: 0x25
  pc_erase_all: 0x21
  data_section_offset: 0xe9c
  flash_properties:
    address_range:
      start: 0x0
      end: 0x80000
    page_size: 0x1000
    erased_byte_value: 0xff
    program_page_timeout: 100
    erase_sector_timeout: 3000
    sectors:
    - size: 0x1000
      address: 0x0
  cores:
  - main
