-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
boards/stm32l0538-disco: add initial support #9517
Conversation
5b2295a
to
83a8974
Compare
33fb9b9
to
7c35a13
Compare
@aabadie Looks good, could you lend me this board to test? |
1f29ee9
to
d6fa4e5
Compare
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.
Ran:
python dist/tools/compile_and_test_for_board/compile_and_test_for_board.py --jobs 1 . stm32l0538-disco
And got:
- [tests/cpp11_condition_variable](tests/cpp11_condition_variable/test.failed)
- [tests/cpp11_mutex](tests/cpp11_mutex/test.failed)
- [tests/cpp11_thread](tests/cpp11_thread/test.failed)
- [tests/periph_eeprom](tests/periph_eeprom/test.failed)
- [tests/periph_flashpage](tests/periph_flashpage/test.failed)
- [tests/periph_gpio](tests/periph_gpio/test.failed)
- [tests/periph_rtc](tests/periph_rtc/test.failed)
- [tests/periph_rtt](tests/periph_rtt/test.failed)
- [tests/pkg_fatfs_vfs](tests/pkg_fatfs_vfs/test.failed)
- [tests/pthread_barrier](tests/pthread_barrier/test.failed)
- [tests/pthread_cooperation](tests/pthread_cooperation/test.failed)
- [tests/rng](tests/rng/test.failed)
- [tests/shell](tests/shell/test.failed)
- [tests/struct_tm_utility](tests/struct_tm_utility/test.failed)
- [tests/thread_cooperation](tests/thread_cooperation/test.failed)
Havent looked into the tests details, Also could you please add a documentation file?
* @file | ||
* @brief Board specific definitions for the STM32L0538-DISCO evaluation board. | ||
* | ||
* @author Alexabdre Abadie <alexandre.abadie@inria.fr> |
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.
Typo here on name
d8d249e
to
400becc
Compare
I had a look at this one. For periph_rtc and rtt, actually the board doesn't provide an external LSE, so I had to use a custom clock configuration and no the shared L0 one. For the other tests, for some I had to blacklist the board, for others there are working (e.g. shell, periph_gpio, rng, struct_tm_utility, periph_eeprom, periph_flashpage). I don't know what happened for those ones. |
#define PERIPH_CONF_H | ||
|
||
#include "periph_cpu.h" | ||
#include "cfg_rtt_default.h" |
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.
This is not valid, it is calculated based on the CLK beeing 32Khz, but here it is 37Khz. I created a branch to patch this https://github.com/fjmolinas/RIOT/tree/pr_stm32_rtt_lsi.
The problem is the test still fails because LSI isn't very precise it can have a pretty big deviation around 37KhZ.
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.
You are right and your branch is useful and should be PRed I think.
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.
I know see what I probably did wrong on my first go, I had the rx pin miss placed. All the tests are passing now except for tests/periph_rtt
.
About rtt
I don't know what to do in this case, even applying my branch code, the test wont pass because LSI isn't precise enough. I think in this case we might exclude the test from the CI because the frequency has to be measured externally.
I would still add the feature but document that when using LSI manual calibration must be done. The other option is just dropping rtt. What do you think?
Also the documentation needs improving. |
I would drop it for simplicity and until LSI based RTT is correctly supported. What do you mean with manual calibration ? |
You would need to measure the actual frequency and change it in the code. |
Ok go ahead and drop it, I didn't PR the RTT changes because I still need to improve some corner cases. Squash right away. |
55d832c
to
9de7371
Compare
Removed the RTT feature and added some documentation. Squashed and rebased. |
9de7371
to
adc8faa
Compare
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.
Travis is complaining about a trailing whitespace. Otherwise ACK!
@aabadie when you fix the whitespace squash directly. |
because of insufficient memory available
adc8faa
to
39fae03
Compare
done |
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.
ACK
@aabadie Do you have time for one last commit? there is still a test with oveflowing RAM |
because of insufficient memory available
39fae03
to
4ac2b4e
Compare
@aabadie Thanks! All green with this one, GO! |
Contribution description
This PR adds an initial support for the stm32l0538-disco board.
This board embeds an epaper ink display and I could use it with the U8G2 package.
The board can be flashed via st-link but no UART is directly usable via st-link, so a serial to USB adapter is required for stdio.
Issues/PRs references
None