-
Notifications
You must be signed in to change notification settings - Fork 1k
Nucleo-F303K8 Support #117
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
For a board to appear in the Boards Menu, it needs to be included in the boards.txt file e.g. Look at this section and duplicate it https://github.com/stm32duino/Arduino_Core_STM32/blob/master/boards.txt#L212-L248 And change all references to your board, including the reference Id at the start of each line, the menu item for your one and only board in this section, the publically visible name, the variant folder etc etc etc Once you have updated boards.txt, you need to restart the IDE (you need to do this every time you make a change to boards.txt) PS. I think there is a way to add a 'Board' using the Boards manager JSON packaging system, but you should get things working by manually editing boards.txt first, and then work towards building the complex JSON file that is required to install via the Boards manager. Or when its working, you may like to submit a PR for its inclusion |
Have you take a look here: |
I've tested quickly,
Then Blink test was not working. SystemClock_Config seems not correct.
Then Blink is ok. |
I should have also mentioned I had updated the boards.txt. @fpistm Brilliant. I'll give this a go later today. Thank you for your help. |
@fpistm It seems to work pretty well. I had to make some further changes to my pins to get i2c working but other than that it worked. However I2C is extremely slow. I'm using a SSD1306 and if I output a counter in a loop with no delays it increments 2 every second. Is there anyway to speed this up? I also tried to get CubeMX to generate the same SystemClock_Config but no matter how I configured the RCC and clocks it generates with RCC_OSCILLATORTYPE_HSI instead of RCC_OSCILLATORTYPE_NONE. Thanks. |
You could try to change the I2C freq, thanks: |
Wire.setClock(I2C_400KHz) Doesn't appear to make any difference. Thanks. |
@tofuman0, please, could you share your updated variant and your sketch |
@fpistm sure. Here it is: #include <U8g2lib.h> U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0); void setup() { void loop() { I've benchmarked the Nucleo-F303K8 and it is running as expected its only i2c that causes it to run extremely slow. |
Thanks. Could you provide also the zip of the variant you used or an url where I can find it (github?)? |
NUCLEO_F303K8.zip True I could remove Wire.begin(). Thanks. |
Hi @tofuman0, I've tested SPI and also I2C which is now more accurate.
You should have already commit 2 and 3. So, commit 1 is the main merge on your code. |
Thanks. Just tested it and it's much faster now. I added timing code to the code and ran it on the Arduino Nano, Teensy 3.2 and Nucleo32-F303K8 and the following results displaying 0-1000 Arduino Nano - 45.000s |
Nice. |
PR #127 submitted |
Sorry. I've been away for a few days, but can see you've added the variant. Did you need me to do anything? Thanks. |
No worries. |
I've merged it. |
I've been trying to get the Nucleo-F303K8 working using the Arduino IDE. I've attempted to create a variant. The project compiles and uploads but the F303K8 doesn't appear to do anything. I'm a complete newbie so it'll most likely be something I've done wrong. I've attached the variant I've made. Some guidance would be greatly appreciated.
NUCLEO_F303K8.zip
Thanks.
The text was updated successfully, but these errors were encountered: