Search found 60 matches

by ABOSTM
Fri Aug 12, 2022 12:43 pm
Forum: IDE's
Topic: Arduino 2.0 RC9 not compiling generic F, G, H & L series
Replies: 3
Views: 4069

Re: Arduino 2.0 RC9 not compiling generic F, G, H & L series

I just installed Arduino 2.0 RC9, and I don't have issue.
I compiled blink example for both GENERIC_G0B1RBT and GENERIC_F103CBTX.

I would suggest to uninstall/reinstall stm32duino core, and if necessary reinstall Arduino 2.0RC9
by ABOSTM
Fri Aug 05, 2022 3:22 pm
Forum: General discussion
Topic: Problems with SPI (Nucleo L476RG)
Replies: 13
Views: 17535

Re: Problems with SPI (Nucleo L476RG)

Didi you noticed that PNI RM3100 has an I2CEN pin that should be set to GND in order to select SPI communication ?
Also you can try to play with SPI settings in the sketch: try other mode, or slow down the requested frequency.
by ABOSTM
Fri Aug 05, 2022 3:04 pm
Forum: General discussion
Topic: would it be of use if I generated some missing "default linker script"'s
Replies: 15
Views: 3953

Re: would it be of use if I generated some missing "default linker script"'s

@Alextrical, Thanks for your efforts :-) It seems that effectively it fails to solve clock speed because it request an HSE when USB is enable, like @ag123 said. So in that case don't enable USB. @ag123, Even if it is right that some MCU will need External HSE to run USB, I would not take that as a m...
by ABOSTM
Fri Aug 05, 2022 12:16 pm
Forum: General discussion
Topic: would it be of use if I generated some missing "default linker script"'s
Replies: 15
Views: 3953

Re: would it be of use if I generated some missing "default linker script"'s

Do we Only have to enable USB for all MCU families, or are there exceptions? If so how can we tell? Yes all, Exceptions are, of course, those not supporting USB. I can set the 'HCLK (MHz)' option, however I cannot see a option for 'CPU clock', not sure what I'm missing. Is it the same as 'SYSCLK'? ...
by ABOSTM
Fri Aug 05, 2022 7:38 am
Forum: General discussion
Topic: Problems with SPI (Nucleo L476RG)
Replies: 13
Views: 17535

Re: Problems with SPI (Nucleo L476RG)

It looking interesting that the SPI clock is that slow
It is as close as possible to the frequency requested by the sketch:

Code: Select all

  SPI.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE0));
1MHz requested, with an input clock of 80MHz, and a prescaler of 128 (power of 2), we achieve 625KHz.
by ABOSTM
Fri Aug 05, 2022 7:09 am
Forum: General discussion
Topic: would it be of use if I generated some missing "default linker script"'s
Replies: 15
Views: 3953

Re: would it be of use if I generated some missing "default linker script"'s

@fpistm,
Thanks for your reply,
Sorry I was not clear, I was more expecting feedback about having linker files without clock update, which is functional but far from performances.
by ABOSTM
Thu Aug 04, 2022 4:14 pm
Forum: General discussion
Topic: Problems with SPI (Nucleo L476RG)
Replies: 13
Views: 17535

Re: Problems with SPI (Nucleo L476RG)

Hi @jh2399, I don't have sensor you mentioned, nevertheless, I tried your sketch on my nucleo_L476RG, and everything look fine: I put an logical analyser on the 4 SPI pin and get the expected signal. https://i.postimg.cc/9FgpT822/Arduino-Nucleo-L476-RG-SPI.png On SCLK, I got 8 pulses, sending REVID ...
by ABOSTM
Thu Aug 04, 2022 2:28 pm
Forum: General discussion
Topic: would it be of use if I generated some missing "default linker script"'s
Replies: 15
Views: 3953

Re: would it be of use if I generated some missing "default linker script"'s

HI @Alextrical , Thanks for your proposal, as I said in https://github.com/stm32duino/Arduino_Core_STM32/pull/1781 Generally when adding new generic variant, we also update SystemClock_Config() in generic_clock.c: https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-%28board%29#3---generic-syst...
by ABOSTM
Mon Aug 01, 2022 4:32 pm
Forum: General discussion
Topic: why i need SetRx/SetTx before use Serial?
Replies: 2
Views: 1550

Re: why i need SetRx/SetTx before use Serial?

Hi @ahsanu, It is not normal, I mean you should be able to use Serial without setRx()/setTx() But, In variant_generic.h , you changed: #ifndef PIN_SERIAL_RX #define PIN_SERIAL_RX PA10 #endif #ifndef PIN_SERIAL_TX #define PIN_SERIAL_TX PA9 #endif This implicitly change Uart instance from UART4 to USA...
by ABOSTM
Wed May 18, 2022 3:42 pm
Forum: General discussion
Topic: Unwanted ISR call from timer ??
Replies: 7
Views: 1737

Re: Unwanted ISR call from timer ??

@ozcar Right, I missed the PSC.

I pushed the Pull Request to take into account register update immediately when Timer is not running.
https://github.com/stm32duino/Arduino_C ... /pull/1721

Go to advanced search