{"action":"created","issue":{"url":"https://api.github.com/repos/grigorig/stcgal/issues/5","labels_url":"https://api.github.com/repos/grigorig/stcgal/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/grigorig/stcgal/issues/5/comments","events_url":"https://api.github.com/repos/grigorig/stcgal/issues/5/events","html_url":"https://github.com/grigorig/stcgal/issues/5","id":121916575,"number":5,"title":"Wrong Target frequency","user":{"login":"merbanan","id":124883,"avatar_url":"https://avatars.githubusercontent.com/u/124883?v=3","gravatar_id":"","url":"https://api.github.com/users/merbanan","html_url":"https://github.com/merbanan","followers_url":"https://api.github.com/users/merbanan/followers","following_url":"https://api.github.com/users/merbanan/following{/other_user}","gists_url":"https://api.github.com/users/merbanan/gists{/gist_id}","starred_url":"https://api.github.com/users/merbanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merbanan/subscriptions","organizations_url":"https://api.github.com/users/merbanan/orgs","repos_url":"https://api.github.com/users/merbanan/repos","events_url":"https://api.github.com/users/merbanan/events{/privacy}","received_events_url":"https://api.github.com/users/merbanan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-13T12:29:00Z","updated_at":"2015-12-13T22:03:23Z","closed_at":null,"body":"Hi, I bought a cheap rfid copier.\r\n\r\nhttp://www.ebay.com/itm/Handheld-Portable-125Khz-RFID-Duplicator-Copier-Writer-for-EM4100-T5577-Card-/191630611446?hash=item2c9e1313f6:g:D7UAAOSwyQtVo4pM\r\n\r\nInside it was a STC89LE52RC mcu driving the whole thing. I soldered the serial port pins on it and ran:\r\n\r\nstcgal -P stc89\r\n\r\nThe output was this:\r\nWaiting for MCU, please cycle power: done\r\nTarget model:\r\n  Name: STC89C52RC/LE52R\r\n  Magic: F002\r\n  Code flash: 8.0 KB\r\n  EEPROM flash: 6.0 KB\r\nTarget frequency: 2.746 MHz\r\nTarget BSL version: 4.3C\r\nTarget options:\r\n  cpu_6t_enabled=False\r\n  bsl_pindetect_enabled=False\r\n  eeprom_erase_enabled=False\r\n  clock_gain=high\r\n  ale_enabled=True\r\n  xram_enabled=True\r\n  watchdog_por_enabled=False\r\nDisconnected!\r\n\r\n\r\nWhich sound really promising. With the exception of the wrongly calculated frequency. I clearly see that the crystal is a 22.1184 MHz one. I have another board with a 11.0592 MHz crystal and that returns an output of 11.029 MHz (which is I  guess close enough).\r\n\r\nWhile this is a cosmetic issue in the output, will this be an issue when programming the device?\r\n\r\nI don't want to try because I don't want to risk bricking the device. If you want your own device to test with I am happy to buy this device for you."},"comment":{"url":"https://api.github.com/repos/grigorig/stcgal/issues/comments/164302170","html_url":"https://github.com/grigorig/stcgal/issues/5#issuecomment-164302170","issue_url":"https://api.github.com/repos/grigorig/stcgal/issues/5","id":164302170,"user":{"login":"grigorig","id":1834351,"avatar_url":"https://avatars.githubusercontent.com/u/1834351?v=3","gravatar_id":"","url":"https://api.github.com/users/grigorig","html_url":"https://github.com/grigorig","followers_url":"https://api.github.com/users/grigorig/followers","following_url":"https://api.github.com/users/grigorig/following{/other_user}","gists_url":"https://api.github.com/users/grigorig/gists{/gist_id}","starred_url":"https://api.github.com/users/grigorig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grigorig/subscriptions","organizations_url":"https://api.github.com/users/grigorig/orgs","repos_url":"https://api.github.com/users/grigorig/repos","events_url":"https://api.github.com/users/grigorig/events{/privacy}","received_events_url":"https://api.github.com/users/grigorig/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T22:03:23Z","updated_at":"2015-12-13T22:03:23Z","body":"In the worst case, baud rate calculation and handshake will fail due to incorrectly detected frequency and you can't program the chip. You cannot really brick it, though. Please try to program, in the worst case it won't work. :)\r\n\r\nAnyway, I have the exact same chip, so let me try to reproduce this."}}