{"action":"created","issue":{"url":"https://api.github.com/repos/signal11/m-stack/issues/4","labels_url":"https://api.github.com/repos/signal11/m-stack/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/signal11/m-stack/issues/4/comments","events_url":"https://api.github.com/repos/signal11/m-stack/issues/4/events","html_url":"https://github.com/signal11/m-stack/issues/4","id":36144694,"number":4,"title":"Can't get unit_test to work with PIC18F4550","user":{"login":"nyholku","id":720813,"avatar_url":"https://avatars.githubusercontent.com/u/720813?v=3","gravatar_id":"","url":"https://api.github.com/users/nyholku","html_url":"https://github.com/nyholku","followers_url":"https://api.github.com/users/nyholku/followers","following_url":"https://api.github.com/users/nyholku/following{/other_user}","gists_url":"https://api.github.com/users/nyholku/gists{/gist_id}","starred_url":"https://api.github.com/users/nyholku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyholku/subscriptions","organizations_url":"https://api.github.com/users/nyholku/orgs","repos_url":"https://api.github.com/users/nyholku/repos","events_url":"https://api.github.com/users/nyholku/events{/privacy}","received_events_url":"https://api.github.com/users/nyholku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-06-20T06:48:57Z","updated_at":"2015-01-07T20:23:12Z","closed_at":null,"body":"Hi,\r\n\r\nI added the following to usb_hal.h:\r\n\r\n```c\r\n#elif _18F4550\r\n#define BD_ADDR 0x0400\r\n#define BUFFER_ADDR 0x500\r\n#else\r\n#error \"CPU not supported yet\"\r\n```\r\n\r\nand this to main.c\r\n\r\n```c\r\n#elif _18F4550\r\n//__code char __at 0x300000 CONFIG1L = 0x20; // USBDIV=1, CPUDIV=00, PLLDIV = 000\r\n//__code char __at 0x300001 CONFIG1H = 0x0E; // IESO=0, FCMEN=0, FOSC = 1110\r\n#pragma config USBDIV   = 2 \r\n#pragma config CPUDIV   = OSC1_PLL2\r\n#pragma config PLLDIV   = 1\r\n#pragma config FOSC     = HSPLL_HS\r\n#pragma config IESO = 1\r\n#pragma config FCMEN = 0\r\n\r\n#else\r\n\t#error \"Config flags for your device not defined\"\r\n```\r\n\r\n(The commented out lines are from own ACM CDC stack I used as reference to ensure that the configs are right for my hardware (4 MHz XTAL) and I verified from the .hex file that they are indeed ok.)\r\n\r\nThe code compiles and runs but on Mac OS X Mountain Lion the device does not get enumerated. (The board is self powered but that should not make a difference?)\r\n\r\nBefore I dig deeper I thought I'd pop in here and ask for advice…?\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/signal11/m-stack/issues/comments/69085647","html_url":"https://github.com/signal11/m-stack/issues/4#issuecomment-69085647","issue_url":"https://api.github.com/repos/signal11/m-stack/issues/4","id":69085647,"user":{"login":"rcaisse2722","id":7269015,"avatar_url":"https://avatars.githubusercontent.com/u/7269015?v=3","gravatar_id":"","url":"https://api.github.com/users/rcaisse2722","html_url":"https://github.com/rcaisse2722","followers_url":"https://api.github.com/users/rcaisse2722/followers","following_url":"https://api.github.com/users/rcaisse2722/following{/other_user}","gists_url":"https://api.github.com/users/rcaisse2722/gists{/gist_id}","starred_url":"https://api.github.com/users/rcaisse2722/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcaisse2722/subscriptions","organizations_url":"https://api.github.com/users/rcaisse2722/orgs","repos_url":"https://api.github.com/users/rcaisse2722/repos","events_url":"https://api.github.com/users/rcaisse2722/events{/privacy}","received_events_url":"https://api.github.com/users/rcaisse2722/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T20:23:12Z","updated_at":"2015-01-07T20:23:12Z","body":"I am having the same issue on Windows 7. The device fails to enumerate. Using Windows logman, it appears the device is responding with USBD_STATUS_STALL_PID on the first GET_DEVICE_DESCRIPTOR request from the host.\r\n\r\nAny ideas?"}}