

SOMETIMES MY BLUEJ PROGRAM WONT RUN HOW TO
(2) Next step is to study existing nRF24L01+ Python/Java libraries and see how to expand the libraries with more features. (1) After googling a bit, I have decided to start with Rpi BlueJ Java IDE, and the first Java programs will be on: (a) GPIO LED/Button programming, I would appreciate a little input, since I am really lost regarding this right now. I also checked my wiring multiple times and I'm confident that its correct. Is it possible that this is due to a SPI related problem, like me forgetting to setup something? I did enable the SPI interface and validated it multiple times and also tested it. Unfortunately I have no idea why that happens. The problem is that the two while loops inside the outer while loop are never entered and therefore the exit-condition cannot occur turning this into an endless while loop. Rx fifo not empty, so get the next received bytes TX fifo not full, so add some more bytes

Use the FIFO's to reduce the interbyte times BUG ALERT: what happens if we get interupted in this section, and someone elseīcm2835_peri_set_bits(paddr, BCM2835_SPI0_CS_CLEAR, BCM2835_SPI0_CS_CLEAR) īcm2835_peri_set_bits(paddr, BCM2835_SPI0_CS_TA, BCM2835_SPI0_CS_TA) This is Polled transfer as per section 10.6.1

The function is the following: void bcm2835_spi_transfernb(char* tbuf, char* rbuf, uint32_t len)
SOMETIMES MY BLUEJ PROGRAM WONT RUN CODE
I digged a little bit into the code and found out that the reason it hangs is due to an endless while loop inside the bcm2835_spi_transfernb() function of this file. When I try to run the provided example code the Raspberry Pi just hangs and the CPU rises to 100% after (or rather while) running rf24.begin(). I found this library that makes use of the JNI, but I can't get it to work. I'm currently trying to make a NRF24L01 module work by using Java.
