Search found 300 matches

by danieleff
Fri Jul 21, 2017 8:12 am
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX speed problem
Replies: 7
Views: 133

Re: [STM32GENERIC/HAL] SerialUSB TX speed problem

I think it is 6-2017-q1-update from https://developer.arm.com/open-source/g ... /downloads, newest is 6-2017-q2-update

Also CDC_SERIAL_BUFFER_SIZE is still 128 in STM32/cores/arduino/usb/cdc/usbd_cdc_if.h , upping that might help.
by danieleff
Thu Jul 20, 2017 3:28 pm
Forum: STM32generic
Topic: I2C Examples
Replies: 17
Views: 656

Re: I2C Examples

Try to respond to the request void receive(int bytes) { // Received bytes } void request() { uint8_t response[1] = {9}; Wire.write(response, sizeof(response)); // responding } void setup() { Wire.onReceive(receive); Wire.onRequest(request); Wire.begin(30); } But I have not done much testing with eit...
by danieleff
Mon Jul 17, 2017 3:08 pm
Forum: STM32generic
Topic: [STM32GENERIC/HAL] SerialUSB TX speed problem
Replies: 7
Views: 133

Re: [STM32GENERIC/HAL] SerialUSB TX speed problem

A few weeks back I also added buffered USB TX, https://github.com/danieleff/STM32GENER ... 8154715833, https://github.com/danieleff/STM32GENER ... b86394c84e

Your code gives me:
USB TX speed = 308.41 KBytes/sec
by danieleff
Mon Jul 17, 2017 1:28 pm
Forum: STM32generic
Topic: STM32GENERIC Arduino implementation
Replies: 12
Views: 254

Re: STM32GENERIC Arduino implementation

I might make the STM32-only libraries as git submodules, and pack into the board manager package.
by danieleff
Mon Jul 17, 2017 7:54 am
Forum: Cores
Topic: [libmaple] -DARDUINO_ARCH_ issue
Replies: 7
Views: 84

Re: [libmaple] -DARDUINO_ARCH_ issue

I think the folder names are a clear description of what they contain With the official implementation around, this is not exactly true. (I mean the folder name: kinda clear. The compile flag it creates: not that clear) ARDUINO_ARCH_STM32F1 (and __STM32F1__) meant that it was the Arduino implementa...
by danieleff
Sun Jul 16, 2017 5:48 pm
Forum: STM32generic
Topic: [STM32GENERIC] Latest - issues
Replies: 17
Views: 434

Re: [STM32GENERIC] Latest - issues

Rename your STM32DE1 folder to STM32, the folder name is the way to distinguish between multiple archs.

I will not be able to fix the USB issue with F103ZET, it should work as the code is the same as F103C. The difference is only clock setup, and maybe it has a USB_DISC_PIN.
by danieleff
Sun Jul 16, 2017 1:52 pm
Forum: STM32generic
Topic: STM32GENERIC Arduino implementation
Replies: 12
Views: 254

Re: STM32GENERIC Arduino implementation

Daniel You can use the github Releases system if you want to mark a particular commit as being relatively stable ;-) Yes I will have to think about it. You can create libraries for peripherals as their own repo, if you use HAL, both official and this can use them. I don't understand exactly how you...
by danieleff
Sun Jul 16, 2017 1:32 pm
Forum: General discussion
Topic: Example for read/write 24AA02 eeprom
Replies: 9
Views: 125

Re: Example for read/write 24AA02 eeprom

Sample for I2C scan would help if someone have it? Serial.begin(115200); Serial.println("Starting"); Wire.begin(); for(int address=0; address<128; address++) { Serial.print(address); Wire.beginTransmission(address); Wire.write(0); if (Wire.endTransmission() == 0) { Serial.println(": FOUND SOMETHING...
by danieleff
Sun Jul 16, 2017 1:14 pm
Forum: STM32generic
Topic: [STM32GENERIC] Latest - issues
Replies: 17
Views: 434

Re: [STM32GENERIC] Latest - issues

Does it work with bluepill?
Not recognized means the yellow triangle in device manager? If so, try changing the USBD_VID to 0x1EAF, and USBD_CDC_PID_FS to 0x0004