-
Notifications
You must be signed in to change notification settings - Fork 1k
[New Variant] Nucleo 32 - STM32F042K6 #1099
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
Comments
Hi, |
Hi, I have some questions :
Regards |
Great. Thanks
Basically, we test all basic Arduino API:
You can kept them. If user disabled the Serial usage then he could access them. In a general way, only the duplicated pins are commented as only the first one found is used. I will try to remove this limitation soo.
In that case simply comment them.
https://community.st.com/s/question/0D50X00009XkaCOSAZ/otg-on-l476-what-is-otgfsnoe
It seems fine, anyway I will configure also USB clock at 48 MHz. To do this in CubeMX, enable the USB device support in the connectivity menu. |
Thanks for your quick answer !
I can't, I specially added them because if I don't, I get the same error as here #907
And here comes a little problem : USB and CAN cannot be used at the same time because they share the same pins. As I understand it, CAN doesn't need a clock configuration, so I should active USB and disable CAN in CubeMX so at least USB is ready to use and CAN (I guess) too. Can you confirm that ? Regards |
OK for the pinname var. |
Just to be sure, you confirm that if I want to use CAN, that won't be an issue if I don't activate it in CubeMX ? CAN is the "cool" thing for me in this MCU, so after integration in Arduino itself I will try to get CAN working ;) |
Yes this is not dependent. Tested only for F103 but I guess it could be a good base for you. |
Thanks ! |
A simple blink code takes 9196 bytes of memory. I tried disabling HAL components :
Is this normal ? |
by default yes it seems normal. By disabling all HAL module should reduce it. |
Oh ok I read two quickly the wiki ;) I had a hal_conf_extra.h file to my sketch and compiled with :
And I got a 9092kB flash size :s Disabling Serial gives 7736kB . Better I tried with HAL_*_MODULE_DISABLED but got the same size (9196kB) with warnings like :
So I guess this directive was not taken account ... And the * is responsible of this (Arduino v1.8.10) as when I erase it warnings disapear. |
Fixes stm32duino#1099 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Board description (please complete the following information):
Hi,
USB + CAN in this budget is pretty cool :)
Any plan on integration in this core ?
I'll buy one to try to add it myself but I'm not used with STM32 so ... :)
EDIT : integration started https://github.com/battosai30/Arduino_Core_STM32/tree/master/variants/NUCLEO_F042K6
All digital I/O working
All analog I/O working
All PWM I/O working
Serial (ST-LINK) working
Alternative Serial working
SPI working
i2c (master & slave) working
sleep working
The text was updated successfully, but these errors were encountered: