boards/nucleo32-f303 : initial support#6377
Conversation
|
As a side note, I called the board |
8a22966 to
cfbd137
Compare
|
Hello, I have tested this PR with : Everything is OK for these tests. But for |
|
Thanks @astralien3000 for having a look. Although I'm sure it was working, I probably made a mistake when updating the configuration following #6393. |
haukepetersen
left a comment
There was a problem hiding this comment.
untested ACK once comments are addressed
| extern "C" { | ||
| #endif | ||
|
|
||
| #define LED0_PIN GPIO_PIN(PORT_B, 3) |
There was a problem hiding this comment.
you could spend some doxygen around the pin config block
| .chan = { { .pin = GPIO_UNDEF, .cc_chan = 0 }, | ||
| { .pin = GPIO_UNDEF, .cc_chan = 0 }, | ||
| { .pin = GPIO_PIN(PORT_B, 0) /* D3 */, .cc_chan = 2 }, | ||
| { .pin = GPIO_PIN(PORT_B, 1) /* D6 */, .cc_chan = 3 } }, |
There was a problem hiding this comment.
the ordering is wrong (and this is probably why it is not working): the undefined channels have to be at the end of the array (so the configured logical channels are set from index 0 on):
.chan = { { .pin = GPIO_PIN(PORT_B, 0), .cc_chan = 2 },
{ .pin = GPIO_PIN(PORT_B, 1), .cc_chan = 3 },
{ .pin = GPIO_UNDEF, .cc_chan = 0 },
{ .pin = GPIO_UNDEF, .cc_chan = 0 } },
cfbd137 to
145d122
Compare
|
Comments addressed @haukepetersen. Will test again the PWMs tomorrow with @astralien3000. |
85f2698 to
80be393
Compare
|
Wait, before merging, I made a mistake and reverted the commits that were addressing @haukepetersen 's comments. |
80be393 to
5cd2ab4
Compare
5cd2ab4 to
ca11e4c
Compare
Are they fixed now? |
Yes but I'd like @astralien3000, to give it a try again first. |
|
Everything is OK, |
|
Then go |
Adds support for another nucleo-32 board with a stm32f303k8 MCU (16k RAM, 64k Flash).
I configured the system clock to 64MHz which is different from what the datatsheet says (72MHz) but works.
Otherwise the actual configuration has:
5 ADC (A0, A1, A3, A4, A7)(ADC is not supported yet by stm32f3 family)