{"action":"created","issue":{"url":"https://api.github.com/repos/texane/stlink/issues/172","repository_url":"https://api.github.com/repos/texane/stlink","labels_url":"https://api.github.com/repos/texane/stlink/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/texane/stlink/issues/172/comments","events_url":"https://api.github.com/repos/texane/stlink/issues/172/events","html_url":"https://github.com/texane/stlink/issues/172","id":17896310,"number":172,"title":"STM32F103C8T6 doesn't flash","user":{"login":"MartianZ","id":979135,"avatar_url":"https://avatars1.githubusercontent.com/u/979135?v=4","gravatar_id":"","url":"https://api.github.com/users/MartianZ","html_url":"https://github.com/MartianZ","followers_url":"https://api.github.com/users/MartianZ/followers","following_url":"https://api.github.com/users/MartianZ/following{/other_user}","gists_url":"https://api.github.com/users/MartianZ/gists{/gist_id}","starred_url":"https://api.github.com/users/MartianZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartianZ/subscriptions","organizations_url":"https://api.github.com/users/MartianZ/orgs","repos_url":"https://api.github.com/users/MartianZ/repos","events_url":"https://api.github.com/users/MartianZ/events{/privacy}","received_events_url":"https://api.github.com/users/MartianZ/received_events","type":"User","site_admin":false},"labels":[{"id":370398623,"url":"https://api.github.com/repos/texane/stlink/labels/bug/needs-investigation","name":"bug/needs-investigation","color":"b60205","default":false},{"id":370402628,"url":"https://api.github.com/repos/texane/stlink/labels/needs/issuer-feedback","name":"needs/issuer-feedback","color":"fbca04","default":false},{"id":371058285,"url":"https://api.github.com/repos/texane/stlink/labels/target/stm32f1","name":"target/stm32f1","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2013-08-10T08:59:51Z","updated_at":"2018-05-23T06:27:19Z","closed_at":"2016-05-14T12:21:00Z","author_association":"NONE","body":"Hello!\n\nI tried ST-LINK v2 to flash STM32F103C8T6, but I cannot flash my code to the chip and it gives me a weird error:\n\n2013-08-10T16:52:48 INFO src/stlink-common.c: Loading device parameters....\n2013-08-10T16:52:48 INFO src/stlink-common.c: Device connected is: F1 Medium-density device, id 0x20036410\n2013-08-10T16:52:48 INFO src/stlink-common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0 bytes (0 KiB) in pages of 1024 bytes\nstlink_sram_flash() == -1\n\nThe STM32F103C8T6 has 64KiB ROM but the st-flash and st-util display: Flash: 0 bytes (0 KiB) in pages of 1024 bytes\n\nI tried to flash the STM32F103C8T6 on Windows with J-Link and it worked fine so I'm sure there is nothing wrong with my board.\n"},"comment":{"url":"https://api.github.com/repos/texane/stlink/issues/comments/391234661","html_url":"https://github.com/texane/stlink/issues/172#issuecomment-391234661","issue_url":"https://api.github.com/repos/texane/stlink/issues/172","id":391234661,"user":{"login":"Evgsurf","id":853852,"avatar_url":"https://avatars3.githubusercontent.com/u/853852?v=4","gravatar_id":"","url":"https://api.github.com/users/Evgsurf","html_url":"https://github.com/Evgsurf","followers_url":"https://api.github.com/users/Evgsurf/followers","following_url":"https://api.github.com/users/Evgsurf/following{/other_user}","gists_url":"https://api.github.com/users/Evgsurf/gists{/gist_id}","starred_url":"https://api.github.com/users/Evgsurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evgsurf/subscriptions","organizations_url":"https://api.github.com/users/Evgsurf/orgs","repos_url":"https://api.github.com/users/Evgsurf/repos","events_url":"https://api.github.com/users/Evgsurf/events{/privacy}","received_events_url":"https://api.github.com/users/Evgsurf/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T06:27:19Z","updated_at":"2018-05-23T06:27:19Z","author_association":"NONE","body":"Hello guys. It lookes like I have the same problem with STM32F103C8T6.\r\nI use ubuntu 16.04 64x \r\nI got st-link frim GIT and build it.\r\nI build blink project by AC6 SystemWorkbench tool.\r\nWhen I flash, I got Ok state, but chip does not work.\r\n\r\n./st-flash write Probe.bin 0x8000000\r\nst-flash 1.4.0-36-g0af68c0\r\n2018-05-23T09:18:29 INFO common.c: Loading device parameters....\r\n2018-05-23T09:18:29 INFO common.c: Device connected is: F1 Medium-density device, id 0x20036410\r\n2018-05-23T09:18:29 INFO common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 1024 bytes\r\n2018-05-23T09:18:29 INFO common.c: Attempting to write 3088 (0xc10) bytes to stm32 address: 134217728 (0x8000000)\r\nFlash page at addr: 0x08000c00 erased\r\n2018-05-23T09:18:29 INFO common.c: Finished erasing 4 pages of 1024 (0x400) bytes\r\n2018-05-23T09:18:29 INFO common.c: Starting Flash write for VL/F0/F3/F1_XL core id\r\n2018-05-23T09:18:29 INFO flash_loader.c: Successfully loaded flash loader in sram\r\n  4/4 pages written\r\n2018-05-23T09:18:30 INFO common.c: Starting verification of write complete\r\n2018-05-23T09:18:30 INFO common.c: Flash written and verified! jolly good!\r\n\r\nInfo shows 128Kb (I bot chip with 64 only)\r\n./st-info --probe\r\nFound 1 stlink programmers\r\n serial: 303030303030303030303031\r\nopenocd: \"\\x30\\x30\\x30\\x30\\x30\\x30\\x30\\x30\\x30\\x30\\x30\\x31\"\r\n  flash: **131072** (pagesize: 1024)\r\n   sram: 20480\r\n chipid: 0x0410\r\n  descr: F1 Medium-density device\r\n\r\nI tired to unlock by openocr and telnet and got result like lucky62.\r\n\r\nAt the moment I have no ideas what I have to do.\r\n\r\nBest Regards\r\nEvgeny\r\n\r\nP.S. I am to newbie with chips, sorry if I ask to simple questions.\r\n"}}
{"actor":{"display_login":"Evgsurf"}}