Search found 336 matches

by danieleff
Wed Sep 20, 2017 7:50 am
Forum: STM32generic
Topic: B-L475E-IOT01A
Replies: 9
Views: 233

Re: B-L475E-IOT01A

ADC is the single most diverse peripheral in STM32, it seems every series is somewhat different. I think on L4 they just share the same single clock source(?) So add this to the top of stm32_ADC.c (after includes), and report back if it works, and can add it to the master: #ifndef __HAL_RCC_ADC2_CLK...
by danieleff
Tue Sep 19, 2017 5:11 am
Forum: STM32generic
Topic: [STM32GENERIC] F429i Discovery
Replies: 27
Views: 678

Re: [STM32GENERIC] F429i Discovery

1. Is it an already existing library that is not written by you, that is dumb and only knows about the first instance of Wire ? void setup() { Wire.stm32SetInstance(I2C3); Wire.stm32SetSDA(PC9); Wire.stm32SetSCL(PA8); DumbLibrary.begin(); // dumb library does not know that the chip has multiple I2C,...
by danieleff
Mon Sep 18, 2017 6:47 am
Forum: STM32generic
Topic: [STM32GENERIC] Automated tests
Replies: 3
Views: 146

Re: [STM32GENERIC] Automated tests

The script is here, but basically runs arduino-builder (installed with Arduino IDE)
If you enable verbose compilation output in the IDE, you will see the same command with parameters at the top when compiling any sketch.

The result is simply a json file
by danieleff
Sun Sep 17, 2017 5:34 pm
Forum: STM32generic
Topic: [STM32GENERIC] Automated tests
Replies: 3
Views: 146

[STM32GENERIC] Automated tests

I was FINALLY able do it. Currently here, pretty raw data: http://danieleff.com/stm32/build_result.php It was bugging me A LOT not knowing when I change something, will it break compilation for an other chip? This might not mean a lot to others, it is very important to me. This checks out the latest...
by danieleff
Sat Sep 16, 2017 6:18 am
Forum: STM32generic
Topic: Adding a board myself?
Replies: 7
Views: 229

Re: Adding a board myself?

According to the UM2153 manual page 43, it is connected to PB6/PB7. So try: void setup() { SerialUART1.stm32SetTX(PB6); SerialUART1.stm32SetRX(PB7); SerialUART1.begin(115200); } void loop() { SerialUART1.println(millis()); delay(1000); } There is a way to put it into the variant.cpp, but first try t...
by danieleff
Thu Sep 14, 2017 7:22 am
Forum: STM32generic
Topic: [STM32GENERIC] F746 Discovery
Replies: 74
Views: 2308

Re: [STM32GENERIC] F746 Discovery

1. Download the latest GNU ARM Embedded Toolchain https://developer.arm.com/open-source/g ... /downloads
2. Change compiler.path in platform.txt to point to that you downloaded. https://github.com/danieleff/STM32GENER ... rm.txt#L21
by danieleff
Thu Sep 14, 2017 5:05 am
Forum: STM32generic
Topic: Adding a board myself?
Replies: 7
Views: 229

Re: Adding a board myself?

Here is the description on how to add a board: https://danieleff.github.io/STM32GENERIC/add_board/

The NUCLEO_L476RG is very similar to it.
by danieleff
Tue Sep 12, 2017 7:01 am
Forum: Working / ported libraries
Topic: SdFs - new library - preview - testing
Replies: 1
Views: 124

Re: SdFs - new library - preview - testing

What is the difference between this and his SdFat? It seems the files are about the same.
(And why is it not based on FatFs by ChaN?)
by danieleff
Mon Sep 11, 2017 9:04 am
Forum: STM32generic
Topic: change some files for stm32f030x6 series on STM32GENERIC
Replies: 3
Views: 191

Re: change some files for stm32f030x6 serials on STM32GENERIC

The #if defined(STM32F030x6) is way too narrow.
There are 600+ STM32 chips, the conditionals need to be broader, usable for whole series (STM32F0), or check by features for example: #ifdef DMA1_Channel2_3_IRQn #define DMA1_Channel2_IRQn DMA1_Channel2_3_IRQn

That way other chips can benefit too.
by danieleff
Mon Sep 11, 2017 8:47 am
Forum: General discussion
Topic: [POLL (Open)] Blocking behaviour of Serial.USB during TX
Replies: 21
Views: 693

Re: [POLL (Open)] Blocking behaviour of Serial.USB during TX

Does that fit everyone needs? I am ok with that. BTW my experiments with windows10/usbser.sys driver show that it has a 16K buffer. So if the host PC program opens the COM port, but does not read anything at all, the STM32 USB will be able to send 16K data instantly anyway, bypassing your device ti...