Hello,
As the question shows, how to add RTC function to a 5340 empty project?
condition
ncs:1.5.0
board: nrf5340dk
I have found a project,but it's 52840.
zephyr\tests\drivers\timer\nrf_rtc_timer
Can you give me some advice?
Thank you.
Hello,
As the question shows, how to add RTC function to a 5340 empty project?
condition
ncs:1.5.0
board: nrf5340dk
I have found a project,but it's 52840.
zephyr\tests\drivers\timer\nrf_rtc_timer
Can you give me some advice?
Thank you.
Hello,
You can use this example for the nRF5340 DK as well. The application just includes an overlay file for the nRF52840 DK to modify some interrupt properties.
Regards,
Markus
Thank you for your quick reply.
Can you give me some advice on how to change nrf52840dk_nrf52840.overlay to nrf5340.overlay
Thank you
You can create an overlay file with the same name as your build target and place it in either the top folder of your project (along with prj.conf and CMakeLists.txt) or as shown in the nrf_rtc_timer application, in ../nrf_rtc_timer_/boards.
The overlay file needs to have the same name as your build target. Considering you are compiling for nrf5340dk_nrf5340_cpuapp, the name of the overlay file would be: nrf5340dk_nrf5340_cpuapp.overlay.
A good way to check if the compiler considers the overlay file is to check the build log:
-- Found devicetree overlay: C:/Users/<user>/ncs/v1.5.1/zephyr/tests/drivers/timer/nrf_rtc_timer/boards/nrf5340dk_nrf5340_cpuapp.overlay
Additionally, you can cross-check your ../<build-folder>/zephyr/zephyr.dts to confirm that the changes made in the overlay file are correct.
I hope this will be help you!
Cheers,
Markus
Hi Markus,
Thank you.
I have used rtc to generate a waveform, but it is less than 1khz, the actual test is 964hz.
Did I do something wrong?
Here is my code.
I need your help. Thank you.
Thanks for the code! I will have a look into it and come back to you as soon as possible.
I would appreciate some feedback if you are able to solve the issue yourself during this time. Thanks!
Cheers,
Markus