Hello Everyone
I am really new to everything here, i just got nRF 52832 board,
Can anyone please tell me the step-by- step method on how to make a program in keil uVision.
Any help will be greatly appreciated.
thanks in advance
Hello Everyone
I am really new to everything here, i just got nRF 52832 board,
Can anyone please tell me the step-by- step method on how to make a program in keil uVision.
Any help will be greatly appreciated.
thanks in advance
thanks , yes it works if i erase the softdevice but what is the reason for that? a softdevice was even used in a blinky software which doesn't uses any wireless technology , but why it is not used in pwm? i thought it was only there for using wireless services.
Also if i want to use the ADC, how can i modify the example code to get an output on the terminal if i give a sample analog value on the AnalogIN.
thanks for all your help
The blank examples are set-up to flash the application code(your code in Keil) to the bottom of the flash-region, while the s132 examples are set-up to flash the application code on top of where the SoftDevice code is(The SoftDevice is always placed on the bottom of the flash-region). See this figure.
If you want to flash “blank” examples together with the SoftDevice, you must adjust the flash settings in Keil, so that you don’t try to flash your application code where the SoftDevice code is (then you get Flash download failed error.).
For ADC, take a look at the SAADC example in the SDK: examples\peripheral\saadc
. Here AIN0 is used(pin P0.02). This example is already set-up to output the value on a terminal.
In SAADC , how to change the sampling frequency? which code to modify and where?
And how to adjust the flash settings in keil so that the code doesn't overlasps with softdevice address? As i want to transmit the data of saadc via BLE (as then i need to use a softdevice for bluetooth but saadc example doesn't supports softdevice).
thanks for your help
Modify uint32_t ticks = nrf_drv_timer_ms_to_ticks(&m_timer, 400);
to increase the sampling interval. Default compare event time is 400ms. Adjust #define SAMPLES_IN_BUFFER 5, for how many samples for each event.