{"action":"created","issue":{"url":"https://api.github.com/repos/project-generator/project_generator/issues/415","repository_url":"https://api.github.com/repos/project-generator/project_generator","labels_url":"https://api.github.com/repos/project-generator/project_generator/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/project-generator/project_generator/issues/415/comments","events_url":"https://api.github.com/repos/project-generator/project_generator/issues/415/events","html_url":"https://github.com/project-generator/project_generator/pull/415","id":164353133,"number":415,"title":"[ST-Link - uvision5] generating uvoptx file","user":{"login":"ohagendorf","id":8608842,"avatar_url":"https://avatars.githubusercontent.com/u/8608842?v=3","gravatar_id":"","url":"https://api.github.com/users/ohagendorf","html_url":"https://github.com/ohagendorf","followers_url":"https://api.github.com/users/ohagendorf/followers","following_url":"https://api.github.com/users/ohagendorf/following{/other_user}","gists_url":"https://api.github.com/users/ohagendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/ohagendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohagendorf/subscriptions","organizations_url":"https://api.github.com/users/ohagendorf/orgs","repos_url":"https://api.github.com/users/ohagendorf/repos","events_url":"https://api.github.com/users/ohagendorf/events{/privacy}","received_events_url":"https://api.github.com/users/ohagendorf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-07T16:32:11Z","updated_at":"2016-07-09T12:58:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/project-generator/project_generator/pulls/415","html_url":"https://github.com/project-generator/project_generator/pull/415","diff_url":"https://github.com/project-generator/project_generator/pull/415.diff","patch_url":"https://github.com/project-generator/project_generator/pull/415.patch"},"body":"please see issue #391\r\nan additional PR with some definitions belongs to this: PR project-generator/project_generator_definitions#95\r\nextension of mbed not necessary - no additional template necessary\r\n\r\nI tested with mbed and exporting of NUCLEO_F446RE, NUCLEO_F446ZE, NUCLEO_F401RE, NUCLEO_F411RE and NRF51_DK\r\n- NUCLEO_F446RE, NUCLEO_F446ZE, NUCLEO_F401RE have additional options in theire mcu configs\r\n- result: exporting with project.py, compiling and flashing out of the box - additional minimal uvoptx file is generated\r\n\r\n- NUCLEO_F411RE doesn't have the additional options\r\n- result: exporting with project.py - additional minimal uvoptx file isn't generated - behavior as before: flashing out of the box is not possible\r\n\r\n- NRF51_DK with J-Link\r\n- result: exporting with project.py - additional minimal uvoptx file isn't generated - behavior as before: flashing out of the box is possible\r\n- maybe for j-link the additional uvoptx file is not necessary\r\n"},"comment":{"url":"https://api.github.com/repos/project-generator/project_generator/issues/comments/231533298","html_url":"https://github.com/project-generator/project_generator/pull/415#issuecomment-231533298","issue_url":"https://api.github.com/repos/project-generator/project_generator/issues/415","id":231533298,"user":{"login":"0xc0170","id":2963726,"avatar_url":"https://avatars.githubusercontent.com/u/2963726?v=3","gravatar_id":"","url":"https://api.github.com/users/0xc0170","html_url":"https://github.com/0xc0170","followers_url":"https://api.github.com/users/0xc0170/followers","following_url":"https://api.github.com/users/0xc0170/following{/other_user}","gists_url":"https://api.github.com/users/0xc0170/gists{/gist_id}","starred_url":"https://api.github.com/users/0xc0170/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xc0170/subscriptions","organizations_url":"https://api.github.com/users/0xc0170/orgs","repos_url":"https://api.github.com/users/0xc0170/repos","events_url":"https://api.github.com/users/0xc0170/events{/privacy}","received_events_url":"https://api.github.com/users/0xc0170/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T12:58:09Z","updated_at":"2016-07-09T12:58:09Z","body":"+1 for providing the minimal set.\r\n\r\nThe problem with this uvoptx is that to get this info:\r\n\r\n```\r\n      <TargetDriverDllRegistry>\r\n        <SetRegEntry>\r\n          <Number>0</Number>\r\n          <Key>ST-LINKIII-KEIL_SWO</Key>\r\n          <Name>-U -O206 -S0 -C0 -A0 -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD1FFFF000 -FC4000 -FN1 -FF0MK_P128_48MHZ.FLM -FS00 -FL020000 -FP0($$Device:MKL25Z128xxx4$Flash\\MK_P128_48MHZ.FLM)</Name>\r\n        </SetRegEntry>\r\n        <SetRegEntry>\r\n          <Number>0</Number>\r\n          <Key>JL2CM3</Key>\r\n          <Name>-U -O14 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO7 -FD1FFFF000 -FC4000 -FN1 -FF0MK_P128_48MHZ.FLM -FS00 -FL020000 -FP0($$Device:MKL25Z128xxx4$Flash\\MK_P128_48MHZ.FLM)</Name>\r\n        </SetRegEntry>\r\n        <SetRegEntry>\r\n          <Number>0</Number>\r\n          <Key>UL2CM3</Key>\r\n          <Name>UL2CM3(-S0 -C0 -P0 )  -FN1 -FC4000 -FD1FFFF000 -FF0MK_P128_48MHZ -FL020000 -FS00 -FP0($$Device:MKL25Z128xxx4$Flash\\MK_P128_48MHZ.FLM)</Name>\r\n        </SetRegEntry>\r\n      </TargetDriverDllRegistry>\r\n```\r\n\r\nYou need to open debugger settings, switch debugger and open the tab with trace, than the info gets polluted (WTF :sob: ). Anyway, the info above I shared is from Trace tab, the rest -F is about flash algo (we care about generic MCU stuff at the moment). That seems to me it matches the uvproj settings ``FlashDriverDll``. Have you tried to provide the same info? Would that work?\r\n\r\nI see minimal uvoptx shall be generated ,but still trying to find out the minimal data we need. I would guess that only ``nTsel `` is needed , the rest we can get from what we have in the uvproj template."}}
{"actor":{"display_login":"0xc0170"}}