{"action":"closed","issue":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/775","labels_url":"https://api.github.com/repos/contiki-os/contiki/issues/775/labels{/name}","comments_url":"https://api.github.com/repos/contiki-os/contiki/issues/775/comments","events_url":"https://api.github.com/repos/contiki-os/contiki/issues/775/events","html_url":"https://github.com/contiki-os/contiki/issues/775","id":40282207,"number":775,"title":"CC2538 + USB SLIP radio not working.","user":{"login":"nolex90","id":4943988,"avatar_url":"https://avatars.githubusercontent.com/u/4943988?v=3","gravatar_id":"","url":"https://api.github.com/users/nolex90","html_url":"https://github.com/nolex90","followers_url":"https://api.github.com/users/nolex90/followers","following_url":"https://api.github.com/users/nolex90/following{/other_user}","gists_url":"https://api.github.com/users/nolex90/gists{/gist_id}","starred_url":"https://api.github.com/users/nolex90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolex90/subscriptions","organizations_url":"https://api.github.com/users/nolex90/orgs","repos_url":"https://api.github.com/users/nolex90/repos","events_url":"https://api.github.com/users/nolex90/events{/privacy}","received_events_url":"https://api.github.com/users/nolex90/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/contiki-os/contiki/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"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},"milestone":null,"comments":3,"created_at":"2014-08-14T18:14:09Z","updated_at":"2015-02-13T10:50:32Z","closed_at":"2015-02-13T10:50:32Z","body":"I made a custom board for CC2538, but the SLIP-Radio example doesn't working at all.\r\nI made several examples with USB, and it works. I ported to my board the SoC.\r\nWhen I flash the example program, the USB device can't recognized as CDC-ACM and it doesn't send over UART anything. Modifications:\r\nI made a file with this: (slip-radio-cc2538dk.c)\r\nint\r\ncmd_handler_cc2538(const uint8_t *data, int len)\r\n{\r\n  if(data[0] == '!') {\r\n    if(data[1] == 'C') {\r\n      printf(\"cc2538_cmd: setting channel: %d\\n\", data[2]);\r\n    cc2538_rf_channel_set(data[2]);\r\n      return 1;\r\n    } else if(data[1] == 'M') {\r\n\t\tPRINTF(\"CMD: Got MAC\\n\");\r\n\t\tmemcpy(uip_lladdr.addr, data+2, sizeof(uip_lladdr.addr));\r\n\t\t//rimeaddr_set_node_addr((rimeaddr_t *) uip_lladdr.addr);\r\n\t\treturn 1;\r\n\t}\r\n  } else if(data[0] == '?') {\r\n    if(data[1] == 'C') {\r\n      uint8_t buf[4];\r\n      printf(\"cc2538_cmd: getting channel: %d\\n\", data[2]);\r\n      buf[0] = '!';\r\n      buf[1] = 'C';\r\n      buf[2] = cc2538_rf_channel_get();\r\n      cmd_send(buf, 3);\r\n      return 1;\r\n    }\r\n  }\r\n  return 0;\r\n}\r\n\r\nAdded the correct includes etc... and the additional defines is:\r\n#undef RF_CHANNEL\r\n#define RF_CHANNEL          25\r\n\r\n#define SLIP_ARCH_CONF_USB          1 /** SLIP over UART by default */\r\n#define CC2538_RF_CONF_SNIFFER_USB  0 /** Sniffer out over UART by default */\r\n#define DBG_CONF_USB                0 /** All debugging over UART by default */\r\n\r\n\r\nDo you have any suggestions?"}}