This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

nRF8001 MSP430 setup

Other Parts Discussed in Thread: MSP430F6438

I am using the minimal port referenced in this question: devzone.nordicsemi.com/questi... to interface the nRF8001 using an MSP430 device. I am currently in the process of porting the aci_setup.c functions in order to setup the device to communicate using a UART over BLE profile. I am really struggling with the implementation.

I noticed that when I run the setup code my queue fills up. It seems that the interrupts are no longer triggered at some point causing the queue to never be emptied. I inserted code to reenable the RDY interrupts in one of the loops called in the aci_setup function but now it seems the number of command response events isnt the same as the number of commands written and so the code will not proceed.

The github to my code is: github.com/.../9ee...

and the most relevant file I think is aci_setup.c

Thank you!!

  • Hello dmh43,

    I cannot comment on interfacing with a nRF8001 for I am unfamiliar with the part. That being said, you may get a better response within the community by posting a snippet of code containing the setup of USCI, along with identifying the particular MSP430 you are working with. You can use the "Use rich formatting" link to get a complete menu of options witch includes inline code formatting for your snippet. This would be especially useful since the links you provided are broken.

    In general, if you are not receiving interrupts, this can be because interrupts are disabled globally, the particular interrupt you want is turned off, or in some extreme circumstances you are running into an errata (unlikely, but possible). Since you state you are able to get more interrupts after enabling again in the middle of the code, I'm guessing it is the second reason. I would double check your code to see if you accidentally turn off these particular interrupts within your code, or if you write over the control register by using an "=" operand instead of an " | =" operand.

    Regards,
    JH
  •  Here is the UART demo that I've written for the MSP430F6438. It is quite sloppy but it does work.BLE Demo.zip

**Attention** This is a public forum