NRF52805 ADC BLE APP UART

Hello, I'm working currently on an nrf52805 module and I'm creating a board with it, for now, I managed to do the ble app uart for this module and improve to code a little bit.

My goal, for now, is to create an ADC measurement of voltage, and I'm struggling with this. If someone could help me with this that would be great to give a code that would be good with it or an idea (i'm kinda new with BLE)

So I tried to use the example:    github.com/.../ble_app_uart__saadc_timer_driven__scan_mode

I'm trying to readapt the example to my board and thanks to the datasheet i saw that The nRF52805 only has 10 PPI channels (0-9) and The nRF52805 also only has 3 timers (TIMER0-TIMER2) but when I'm trying to taking off this in the code i get this error after : 

Thank you to everybody for their help. 

Parents
  • Hello,

    My goal, for now, is to create an ADC measurement of voltage, and I'm struggling with this. If someone could help me with this that would be great to give a code that would be good with it or an idea (i'm kinda new with BLE)

    Welcome!
    Please do not hesitate to ask if anything should be unclear, we're happy to help you! :) 

    I managed to do the ble app uart for this module and improve to code a little bit.

    Could you elaborate on the changes you have already made to the referenced example code? 

    I'm trying to readapt the example to my board and thanks to the datasheet i saw that The nRF52805 only has 10 PPI channels (0-9) and The nRF52805 also only has 3 timers (TIMER0-TIMER2) but when I'm trying to taking off this in the code i get this error after :

    In your code you are trying to use TIMER instance 3, while no such instance exists in the nRF52805.
    You will need to update your sdk_config to match the new configuration (by making sure that the selected TIMER instance is enabled).

    For future reference it is always better if you share the errors you encounter as text instead of screenshots, by copy-paste'ing it into the reply using the Insert -> Code -> Text option here on DevZone.

    Best regards,
    Karl

Reply
  • Hello,

    My goal, for now, is to create an ADC measurement of voltage, and I'm struggling with this. If someone could help me with this that would be great to give a code that would be good with it or an idea (i'm kinda new with BLE)

    Welcome!
    Please do not hesitate to ask if anything should be unclear, we're happy to help you! :) 

    I managed to do the ble app uart for this module and improve to code a little bit.

    Could you elaborate on the changes you have already made to the referenced example code? 

    I'm trying to readapt the example to my board and thanks to the datasheet i saw that The nRF52805 only has 10 PPI channels (0-9) and The nRF52805 also only has 3 timers (TIMER0-TIMER2) but when I'm trying to taking off this in the code i get this error after :

    In your code you are trying to use TIMER instance 3, while no such instance exists in the nRF52805.
    You will need to update your sdk_config to match the new configuration (by making sure that the selected TIMER instance is enabled).

    For future reference it is always better if you share the errors you encounter as text instead of screenshots, by copy-paste'ing it into the reply using the Insert -> Code -> Text option here on DevZone.

    Best regards,
    Karl

Children
Related