name: CC23XX CC27XX Series
manufacturer:
  id: 0x17
  cc: 0x0
variants:
- name: CC2340R5
  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: 0x20009000
    cores:
    - main
  - !Nvm
    range:
      start: 0x4e020000
      end: 0x4e020800
    cores:
    - main
    access:
      boot: false
      execute: false
  flash_algorithms:
  - cc23xx-flash

flash_algorithms:
# Flash algorithm taken from 2dec2a109925c3cad05cbdaf8ce10a76355adcd2 of https://github.com/seanmlyons22/cc23xx-flash
- name: cc23xx-flash
  description: A flash algorithm under test
  default: true
  instructions: [encoded data, 10200 characters]
  load_address: 0x20000020
  pc_init: 0x1
  pc_uninit: 0xb9
  pc_program_page: 0x149
  pc_erase_sector: 0xed
  pc_erase_all: 0x1c1
  data_section_offset: 0x20001e00
  rtt_location: 0x200019b8
  flash_properties:
    address_range:
      start: 0x0
      end: 0x4E020800
    page_size: 0x800
    erased_byte_value: 0xff
    program_page_timeout: 1000
    erase_sector_timeout: 2000
    sectors:
    - size: 0x800
      address: 0x0
    - size: 0x800
      address: 0x4E020000
  cores:
  - main
