<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Radio issue when migrating from Keil to SES on usbd_cdc example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46531/radio-issue-when-migrating-from-keil-to-ses-on-usbd_cdc-example</link><description>I am having an issue migrating some code over from Keil to an example in SES studio. 
 The code in Keil is simply listening for a radio packet, when it receives it, it transmits a message over the serial port. I did this &amp;quot;bare metal&amp;quot; by just programming</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 May 2019 13:40:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46531/radio-issue-when-migrating-from-keil-to-ses-on-usbd_cdc-example" /><item><title>RE: Radio issue when migrating from Keil to SES on usbd_cdc example</title><link>https://devzone.nordicsemi.com/thread/185211?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 13:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:890baac2-a2b3-4fc0-9927-2ecd587b430f</guid><dc:creator>user3344</dc:creator><description>&lt;p&gt;The clock setup is buried somewhere in the usb cdc example...not sure where.&amp;nbsp; Probably just going to leave it for now since its &amp;quot;working&amp;quot;.&amp;nbsp; Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio issue when migrating from Keil to SES on usbd_cdc example</title><link>https://devzone.nordicsemi.com/thread/185095?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 08:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec9fe74f-5f57-4a16-99aa-88ee6d856832</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It&amp;#39;s good to hear you got it working, but I am also unsure why it happened ;)&lt;/p&gt;
&lt;p&gt;It seems the external 64MHz clock is running in both cases, which is what I expected might be the problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only difference between the two cases as I can see is that in one example the external 32.768kHz crystal is used, and in the other case you use the internal LF clock source?&lt;/p&gt;
&lt;p&gt;If you are able to add the two radio setup functions (the not working and the working one) I can take a look to see if I spot any important differences.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio issue when migrating from Keil to SES on usbd_cdc example</title><link>https://devzone.nordicsemi.com/thread/184612?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 13:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81e3f8ae-ddad-488e-849f-cc855a182393</guid><dc:creator>user3344</dc:creator><description>&lt;p&gt;So it was definitely something with the clock.&amp;nbsp; I changed the radio setup function to something I knew was working and it seems to be receiving packets as well as doing usb, although, Im not sure what the problem actually was. This is with usb only working&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/usbonly.png" /&gt;&lt;/p&gt;
&lt;p&gt;This is with USB and Radio working...&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/usbandradio.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio issue when migrating from Keil to SES on usbd_cdc example</title><link>https://devzone.nordicsemi.com/thread/184591?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 13:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47ce07d9-c41e-4956-98a5-a8699fd4b9ea</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try reading the NRF_CLOCK-&amp;gt;HFCLKSTAT register to see if the external 64MHz clock is running?&lt;/p&gt;
&lt;p&gt;I would expect it is running if you use USB, but this is a quite common issue when starting a new project with a proprietary protocol.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio issue when migrating from Keil to SES on usbd_cdc example</title><link>https://devzone.nordicsemi.com/thread/183906?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 19:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2a42d28-260e-4bdb-a5ba-3b7fc36284a5</guid><dc:creator>user3344</dc:creator><description>&lt;p&gt;Ive also captured the Radio registers from the working example, and compared them to the RADIO examples of the usbd_cdc_acm_pca10056 that Ive modified.&amp;nbsp; They are the same.&amp;nbsp; What am I missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio issue when migrating from Keil to SES on usbd_cdc example</title><link>https://devzone.nordicsemi.com/thread/183903?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 19:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41eb3440-bd9f-44df-8f30-2f255ebe78d9</guid><dc:creator>user3344</dc:creator><description>&lt;p&gt;So I moved back to keil using the usbd_cdc_acm_pca10056 example.&amp;nbsp; I took the radio_setup() function and the radio IRQ handler and put them in a blank project to make sure that just call that function will setup everything I need.&amp;nbsp; It worked, so I put the code into the keil usbd_cdc_adm_pca10056 example, and the radio will not receive packets.&amp;nbsp; Its calling the setup function and setting up the IRQ in the NVIC but nothing.&amp;nbsp; When I poll the radio for a read packet instead of setting up the IRQ, it will not receive a packet.&amp;nbsp; Is there something in the example template that is messing with the radio? An errata maybe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio issue when migrating from Keil to SES on usbd_cdc example</title><link>https://devzone.nordicsemi.com/thread/183772?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 11:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b196a115-0e63-4c21-a6da-e79dd7ca34e0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Which version of the SDK are you on?&lt;/p&gt;
&lt;p&gt;Have you tried the Keil project files from the usbd_cdc_acm_pca10056 example also, to verify if it is the Keil/SES change, or the change to the usbd_cdc_acm project, that is causing the issue?&lt;/p&gt;
&lt;p&gt;Does the project compile in SES without any warnings?&lt;br /&gt;Warnings in SES can sometimes be hard to spot, but can be quite serious (like forgetting to reference/dereference a pointer).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>