boards: add nucleo-f042#6273
Conversation
aabadie
left a comment
There was a problem hiding this comment.
Tested on board, works well. Well done 👍
| * oscillator provided on the X2 slot. | ||
| * See Nucleo User Manual UM1724 section 5.6.2. | ||
| */ | ||
| //#define RTC_NUMOF (1U) |
There was a problem hiding this comment.
RTC is supported on STM32f0 CPUs, so why commenting this out ?
There was a problem hiding this comment.
RTC is indeed supported, but there is no LSE on this board. I should change the define to 0, btw.
The other option is to add the capability of running with the LSI to the RTC driver, but this require more work ;)
There was a problem hiding this comment.
makes sense. I'm fine with the define to 0 then.
|
It would be great if you could add a wiki page here describing this board. |
|
I ran a few tests (mainly the xtimer ones) and had some ram overflows at linkage. This CPU has only 6k of ram so you'll have to add it in the BOARD_INSUFFICIENT_MEMORY variable in a few Makefiles. |
|
@aabadie I am wondering if we could reduce the default thread stack size for this board. I ran some tests with the line I'm not sure if it should be set on the board level or application level though. |
Sounds reasonable. Maybe @OlegHahm, @kaspar030 have a better opinion on that. |
|
I think the best place could be here just next to the header include. |
b0ae483 to
1ac803c
Compare
|
board added to BAORD_INSUFFICIENT_MEMORY in tests which do not compile. Default stack size reduced in the way suggested by @kYc0o Rebased on latest master. |
aabadie
left a comment
There was a problem hiding this comment.
ACK when Murdock is happy, commits are squashed and the tests/conn_can/mapping_read.py python file is removed
tests/conn_can/mapping_read.py
Outdated
| @@ -0,0 +1,35 @@ | |||
| import re | |||
There was a problem hiding this comment.
Looks like you added this file by mistake (git add tests ?)
There was a problem hiding this comment.
oops, indeed git add tests :D
1ac803c to
04cf9f4
Compare
|
fixed and squashed |
Why do you think that this stack size would be sufficient for this MCU but not for other MCUs from the same family? edited |
|
Well, I guess it depends on your application. The stack size seems enough for basic application, but for bigger ones it could be an isssue. Anyway the RAM is small on this micro, so you will not be able to run a lot of threads, especially if you use some more memory for data. Moreover printf needs some free RAM used as heap. I don't mind reverting back that change and letting the default stack size to 1024. |
|
I agree with your assessments, but I would leave it to the application developer to choose the optimized stack size values. The default values per MCU (family) are intended to be on the safe side for most standard cases. |
04cf9f4 to
27fa772
Compare
|
I'm fine with that. Stack size change removed, and squashed. |
|
In this case, immediate squashing is no issue, but usually you should not squash before a reviewer has approved the amendment (just in case you didn't know). |
|
@vincent-d, there are remaining issues reported by Murdock. |
|
#6187 has been merged in between. I will update that PR with the new uart driver. |
|
cool, thanks! |
|
Do we care about the whitespace check fail in the vendor header ? |
|
If it's just failing because of trailing white spaces it should be super simple to fix, right? |
27fa772 to
6b3e6e9
Compare
|
Murdock still complains about some unrelated errors (lwip download failed ?) but it looks OK now. Shall I squash ? |
|
can you: ? |
|
This will force a Murdock restart |
8b5946f to
faee662
Compare
|
Murdock seems happy. |
|
@vincent-d, Murdock is complaining because this branch needs squashing. Can you create 2 separate commits with comments:
|
faee662 to
1a12a40
Compare
This PR adds the support for the tiny nucleo-f042 board. This board is based on a stm32f042k6 MCU.
I have succesfully ran hello_world, ipc_pingpong and default examples.