{"action":"opened","issue":{"url":"https://api.github.com/repos/mbedmicro/pyOCD/issues/484","repository_url":"https://api.github.com/repos/mbedmicro/pyOCD","labels_url":"https://api.github.com/repos/mbedmicro/pyOCD/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/mbedmicro/pyOCD/issues/484/comments","events_url":"https://api.github.com/repos/mbedmicro/pyOCD/issues/484/events","html_url":"https://github.com/mbedmicro/pyOCD/issues/484","id":393166250,"node_id":"MDU6SXNzdWUzOTMxNjYyNTA=","number":484,"title":"STLink: read16 exception in gdb_test","user":{"login":"flit","id":3116536,"node_id":"MDQ6VXNlcjMxMTY1MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/3116536?v=4","gravatar_id":"","url":"https://api.github.com/users/flit","html_url":"https://github.com/flit","followers_url":"https://api.github.com/users/flit/followers","following_url":"https://api.github.com/users/flit/following{/other_user}","gists_url":"https://api.github.com/users/flit/gists{/gist_id}","starred_url":"https://api.github.com/users/flit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flit/subscriptions","organizations_url":"https://api.github.com/users/flit/orgs","repos_url":"https://api.github.com/users/flit/repos","events_url":"https://api.github.com/users/flit/events{/privacy}","received_events_url":"https://api.github.com/users/flit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-20T18:41:44Z","updated_at":"2018-12-20T18:41:44Z","closed_at":null,"author_association":"COLLABORATOR","body":"\"integer out of range for 'I' format code\" exception reported while running `gdb_test.py`. This was found in the test log attached to #480. Seems to be specific to 16-bit reads?\n\n```\nTraceback (most recent call last):\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\gdbserver\\gdbserver.py\", line 537, in handle_message\n    reply = handler(msg[msgStart:])\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\gdbserver\\gdbserver.py\", line 886, in get_memory\n    mem = self.target_context.read_memory_block8(addr, length)\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\debug\\cache.py\", line 512, in read_memory_block8\n    return self._memcache.read_memory_block8(addr, size)\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\debug\\cache.py\", line 433, in read_memory_block8\n    return self._context.read_memory_block8(addr, size)\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\debug\\context.py\", line 53, in read_memory_block8\n    return self._core.read_memory_block8(addr, size)\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\coresight\\cortex_m.py\", line 566, in read_memory_block8\n    data = self.ap.read_memory_block8(addr, size)\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\core\\memory_interface.py\", line 94, in read_memory_block8\n    mem = self.read16(addr)\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\core\\memory_interface.py\", line 60, in read16\n    return self.read_memory(addr, 16, now)\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\probe\\stlink_probe.py\", line 251, in read_memory\n    result = conversion.byte_list_to_u16le_list(self._link.read_mem16(addr, 2, self._apsel))[0]\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\probe\\stlink\\stlink.py\", line 284, in read_mem16\n    return self._read_mem(addr, size, Commands.JTAG_READMEM_16BIT, self.MAXIMUM_TRANSFER_SIZE, apsel)\n  File \"C:\\Users\\Kwinten\\Documents\\New folder\\pyOCD\\pyocd\\probe\\stlink\\stlink.py\", line 222, in _read_mem\n    cmd.extend(six.iterbytes(struct.pack('<IHB', addr, thisTransferSize, apsel)))\nerror: integer out of range for 'I' format code\n```"}}
{"actor":{"display_login":"flit"}}