-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLENano/RTC Implementation #52
base: master
Are you sure you want to change the base?
Conversation
Include changes that have been on the original ARMmbed repository
@@ -25,14 +25,17 @@ | |||
"mbed-hal-nrf51822-mcu" | |||
], | |||
"dependencies": { | |||
"mbed-hal": "^1.0.0", | |||
"mbed-hal": "*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need requirement ^1.0.0. Requested changes were not associated with this requirement . mbed-hal required version 1.0.0 or compatible one. if mbed-hal-blenano requires lower version - then mbed-hal-blenano should be upgrades.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the @dhofstetter explanation, "any version" is the valid requirement.
Some of my tests to implement the rtc functionality ended up here :( the corresponding discussion to rtc can be found at #51 I think that the file rtc_int.c won't get compiled, or is not linked for compilation as expected. Do I have to make some special assignments in any file to make sure the file is included as expected? |
I finally got everything to compile, think the code is ready for testing and review. Are their hints how to test? Is the handbook here the correct way? Edit: By testing with a small sample application, I have the problem that every five seconds the time jumps for five minutes. But I think as the periodic callbacks are triggered in correct intervals the problem might be within my rtc update calculation. Edit2: I finally managed to correct my time calculation, but i was expecting an interrupt on timer overflow, to trigger my rtc_update latest with timer overflow, but I'm never getting this event anymore. I thought the EVTEN bits have to be 0 while the INTEN Bits have to be set. Here are my register values during execution
I don't know why the overflow event never occurs, altough I'm sure that there have been an overflow (If I trigger my rtc calculation with a frequency lower than the overflow time (512 seconds) then the calculation is totally messed up. |
I have fixed all issues and commited them into my fork. It's available here for review and testing. Would be great to hear your opinions about my implementation
Testing locally everything seemed to be fine, but I'm not able to use mbed test environment, to perform this I need more informations. BR Daniel |
Maybe in interest with others. I added the changes that have to be done manually if I want to compile for the blenano (see here) device.
Think the impact is not big, but makes creating a new project for this device much easier.
BR