This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Radio issue when migrating from Keil to SES on usbd_cdc example

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 "bare metal" by just programming registers, no issues.  There is simply a radio_setup() function as well as the standard void RADIO_IRQHandler(void) function.  

I am moving over to SES starting with the usbd_cdc_adm_pca10056 example as I would like to spit these messages out over USB, not serial.  The usb code works fine.  

Now, when I put in the radio_setup() function and void RADIO_IRQHandler(void) into the SES code, the interrupt will not trigger.  I cant seem to figure out why.

So far I have stepped through the code to make sure the radio registers are being configured, it is working.  I have also verified that there are packets for the radio to capture (have another pca10056 next to it running the Keil version).  So there is something with the SES code that is causing the problem.  Any suggestions?

Thanks

Parents Reply
  • Hi

    It's good to hear you got it working, but I am also unsure why it happened ;)

    It seems the external 64MHz clock is running in both cases, which is what I expected might be the problem. 

    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?

    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. 

    Best regards
    Torbjørn

Children
Related