{"action":"created","issue":{"url":"https://api.github.com/repos/texane/stlink/issues/285","repository_url":"https://api.github.com/repos/texane/stlink","labels_url":"https://api.github.com/repos/texane/stlink/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/texane/stlink/issues/285/comments","events_url":"https://api.github.com/repos/texane/stlink/issues/285/events","html_url":"https://github.com/texane/stlink/issues/285","id":51897429,"number":285,"title":"MAP_FAILED","user":{"login":"fizikci314","id":8490105,"avatar_url":"https://avatars.githubusercontent.com/u/8490105?v=3","gravatar_id":"","url":"https://api.github.com/users/fizikci314","html_url":"https://github.com/fizikci314","followers_url":"https://api.github.com/users/fizikci314/followers","following_url":"https://api.github.com/users/fizikci314/following{/other_user}","gists_url":"https://api.github.com/users/fizikci314/gists{/gist_id}","starred_url":"https://api.github.com/users/fizikci314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fizikci314/subscriptions","organizations_url":"https://api.github.com/users/fizikci314/orgs","repos_url":"https://api.github.com/users/fizikci314/repos","events_url":"https://api.github.com/users/fizikci314/events{/privacy}","received_events_url":"https://api.github.com/users/fizikci314/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2014-12-13T19:42:07Z","updated_at":"2016-06-25T04:15:37Z","closed_at":"2016-05-05T09:15:47Z","body":"when i try to flash with this error occur\r\n\r\n2014-12-13T21:32:29 INFO src/stlink-common.c: Loading device parameters....\r\n2014-12-13T21:32:29 INFO src/stlink-common.c: Device connected is: F4 device, id 0x10016413\r\n2014-12-13T21:32:29 INFO src/stlink-common.c: SRAM size: 0x30000 bytes (192 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 16384 bytes\r\nmmap() == MAP_FAILED\r\n2014-12-13T21:32:29 ERROR src/stlink-common.c: map_file() == -1\r\nstlink_fwrite_flash() == -1\r\n\r\ni use gcc arm cortex m  template\r\n\r\nhere is the map file\r\nMEMORY\r\n{\r\n  FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K\r\n  RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K\r\n\r\n  CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 0\r\n  FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0\r\n  EXTMEMB0 (rx) : ORIGIN = 0x00000000, LENGTH = 0\r\n  EXTMEMB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0\r\n  EXTMEMB2 (rx) : ORIGIN = 0x00000000, LENGTH = 0\r\n  EXTMEMB3 (rx) : ORIGIN = 0x00000000, LENGTH = 0\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/texane/stlink/issues/comments/228509963","html_url":"https://github.com/texane/stlink/issues/285#issuecomment-228509963","issue_url":"https://api.github.com/repos/texane/stlink/issues/285","id":228509963,"user":{"login":"mwalimu","id":1812405,"avatar_url":"https://avatars.githubusercontent.com/u/1812405?v=3","gravatar_id":"","url":"https://api.github.com/users/mwalimu","html_url":"https://github.com/mwalimu","followers_url":"https://api.github.com/users/mwalimu/followers","following_url":"https://api.github.com/users/mwalimu/following{/other_user}","gists_url":"https://api.github.com/users/mwalimu/gists{/gist_id}","starred_url":"https://api.github.com/users/mwalimu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwalimu/subscriptions","organizations_url":"https://api.github.com/users/mwalimu/orgs","repos_url":"https://api.github.com/users/mwalimu/repos","events_url":"https://api.github.com/users/mwalimu/events{/privacy}","received_events_url":"https://api.github.com/users/mwalimu/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T04:15:37Z","updated_at":"2016-06-25T04:15:37Z","body":"I am having the same error.  startup_stm32f4xx.S is present (note capital \"S\").  I'm stuck here."}}
{"actor":{"display_login":"mwalimu"}}