{"action":"created","issue":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/1554","repository_url":"https://api.github.com/repos/contiki-os/contiki","labels_url":"https://api.github.com/repos/contiki-os/contiki/issues/1554/labels{/name}","comments_url":"https://api.github.com/repos/contiki-os/contiki/issues/1554/comments","events_url":"https://api.github.com/repos/contiki-os/contiki/issues/1554/events","html_url":"https://github.com/contiki-os/contiki/issues/1554","id":140753669,"number":1554,"title":"CC2650 - Configuration for 24MHz XOSC only","user":{"login":"adriencapaine","id":6864014,"avatar_url":"https://avatars.githubusercontent.com/u/6864014?v=3","gravatar_id":"","url":"https://api.github.com/users/adriencapaine","html_url":"https://github.com/adriencapaine","followers_url":"https://api.github.com/users/adriencapaine/followers","following_url":"https://api.github.com/users/adriencapaine/following{/other_user}","gists_url":"https://api.github.com/users/adriencapaine/gists{/gist_id}","starred_url":"https://api.github.com/users/adriencapaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriencapaine/subscriptions","organizations_url":"https://api.github.com/users/adriencapaine/orgs","repos_url":"https://api.github.com/users/adriencapaine/repos","events_url":"https://api.github.com/users/adriencapaine/events{/privacy}","received_events_url":"https://api.github.com/users/adriencapaine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-14T18:09:25Z","updated_at":"2016-04-13T14:52:08Z","closed_at":null,"body":"Hello,\r\n\r\nI developed a custom electronic board based on the CC2650. On this board, there is only one oscilllator (24MHz one) to drive the chip. Indeed, I have read on the manufacturer datasheet that only this oscillator was mandatory for the cc2650 to operate. But it looks like I should have included the LF one (32 KHz) as Contiki cc2650 libraries highly rely on Low Power Mode (which necessarily uses LF XOSC). :)\r\n\r\nTherefore, I wondered if i could disable Low Power Mode entries to \"force\" all peripheral to remain in \"always_on\" domain. I was messing up the cc26xxWare drivers when I saw that the Low Clock Source (32K) could be derived from the HF oscillator (24M).\r\nLines 339 to 356 from file 'cc26wwware/inc/hw_ccfg.h' describe the mechanism. Unfortunately, cc2650 default setup configuration ('cc26xxware/driverlib/setup.c')make use of the LF oscillator. Which, in my case, halts my board as there is no such oscillator connected to my cc2650.\r\n\r\nSo here are my newbie questions:\r\nIs is possible to modify this setting safely? Can I change the CCFG_BASE register (e.g. with HWREG(CCFG_BASE) = xxx) so that I always go for case 0 in setup.c?\r\n\r\nI would gladly appreciate any help or advice before I do something really nasty about my board ;)\r\nKind regards"},"comment":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/comments/209487271","html_url":"https://github.com/contiki-os/contiki/issues/1554#issuecomment-209487271","issue_url":"https://api.github.com/repos/contiki-os/contiki/issues/1554","id":209487271,"user":{"login":"g-oikonomou","id":705207,"avatar_url":"https://avatars.githubusercontent.com/u/705207?v=3","gravatar_id":"","url":"https://api.github.com/users/g-oikonomou","html_url":"https://github.com/g-oikonomou","followers_url":"https://api.github.com/users/g-oikonomou/followers","following_url":"https://api.github.com/users/g-oikonomou/following{/other_user}","gists_url":"https://api.github.com/users/g-oikonomou/gists{/gist_id}","starred_url":"https://api.github.com/users/g-oikonomou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-oikonomou/subscriptions","organizations_url":"https://api.github.com/users/g-oikonomou/orgs","repos_url":"https://api.github.com/users/g-oikonomou/repos","events_url":"https://api.github.com/users/g-oikonomou/events{/privacy}","received_events_url":"https://api.github.com/users/g-oikonomou/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T14:52:08Z","updated_at":"2016-04-13T14:52:08Z","body":"According to the TRM, you can use the external 24MHz XOSC to feed the low-frequency clock. Alternatively, you could use the internal low-frequency RC OSC to feed the LF clock, but you should _really_ avoid doing so, because it's bugged: www.ti.com/lit/pdf/SWRZ058\r\n\r\nContiki assumes the presence of a low-frequency crystal and sets it as the source for the LF clock. You will have to modify this. I am not sure what changes you may have to make in xxware.\r\n\r\nKeeping the 24MHz XOSC active all the time will have serious implications on energy consumption."}}