Search found 48 matches

by Bakisha
Sat Aug 08, 2020 7:27 pm
Forum: General discussion
Topic: USBComposite Sysex
Replies: 8
Views: 167

Re: USBComposite Sysex

Sorry, that site is not compatible with my browser, so i cannot repeat your steps. What i did is put code to send note when note off/on is received , and BP crashed after 30 seconds. But once i put volatile flags in handleNoteOn/Off and used midi.sendNoteOn/Off in main loop, it worked ok. Midi playe...
by Bakisha
Wed Aug 05, 2020 10:12 pm
Forum: General discussion
Topic: USBComposite Sysex
Replies: 8
Views: 167

Re: USBComposite Sysex

I don't say i fully understand it, most of stuff i figure out by experiment. I tested those functions in a "midiin.ino" example (now greatly expanded by adding stuff over last few months), and after adding virtual void handleSysExData(unsigned char ExData) { #ifdef USE_SERIAL1 Serial1.print(" S:"); ...
by Bakisha
Wed Aug 05, 2020 6:29 am
Forum: General discussion
Topic: USBComposite Sysex
Replies: 8
Views: 167

Re: USBComposite Sysex

From looking in "USBMIDI.h" in library folder, and from "midiin" example sketch, you can add two functions: class myMidi : public USBMIDI { virtual void handleSysExData(unsigned char ExData) { // do something with ExData } virtual void handleSysExEnd(void) { // do something } } I never used those on...
by Bakisha
Sat Aug 01, 2020 4:22 am
Forum: General discussion
Topic: Painfully slow SPI on STM32F405
Replies: 11
Views: 373

Re: Painfully slow SPI on STM32F405

Unfortunately I checked this and it did not work. I looked on my scope and I'm not getting any data on the SPI lines. I'm using SPI1, which is PB3 - PB5, correct? From https://github.com/stm32duino/Arduino_Core_STM32/blob/master/variants/FEATHER_F405/PeripheralPins.c#L216-L264 i guessed default SPI...
by Bakisha
Fri Jul 31, 2020 11:59 pm
Forum: General discussion
Topic: Painfully slow SPI on STM32F405
Replies: 11
Views: 373

Re: Painfully slow SPI on STM32F405

I finally found solution. After dive into CMSIS definitions of the core, and testing it on logic analyzer with STM32F401CC (84MHz) , i found that error was on my part, because in my case, i had CE not going high after transfer (i had some more stuff execution) , and in this case CE will go high whil...
by Bakisha
Fri Jul 31, 2020 8:05 am
Forum: General discussion
Topic: Painfully slow SPI on STM32F405
Replies: 11
Views: 373

Re: Painfully slow SPI on STM32F405

Try older commands to set settings: SPI.begin(); SPI.setBitOrder(MSBFIRST); SPI.setDataMode(SPI_MODE0); SPI.setClockDivider(SPI_CLOCK_DIV2); Without Spisettiings/beginTransaction stuff... Maybe you measured time to transfer 3 bytes, plus overhead time... See if it's same time (doubled) if you try to...
by Bakisha
Fri Jul 31, 2020 6:50 am
Forum: General discussion
Topic: Painfully slow SPI on STM32F405
Replies: 11
Views: 373

Re: Painfully slow SPI on STM32F405

EDIT: Tried the above code, didn't work. What am I doing wrong? Well, I can't say what is wrong, that code worked for me. Only difference is that I called SPI.beginTransaction after SPI.begin in setup and I never used SPI.endTransaction. I use it to drive some 595 shift registers with stm32f103c8. ...
by Bakisha
Fri Jul 31, 2020 4:09 am
Forum: General discussion
Topic: Painfully slow SPI on STM32F405
Replies: 11
Views: 373

Re: Painfully slow SPI on STM32F405

I once measured speed of SPI.transfer() function, and it have around 3uS overhead between sending bytes (at whatever speed). I end up using macro (that i found somewhere on internet) , if it is helpfull for you: void SPI_TRANSFER (uint8_t x) { // 0.3uS overhead between bytes when optimized // 3.25 u...
by Bakisha
Fri Jul 31, 2020 3:44 am
Forum: STM32F4 based boards
Topic: WEACT STM32F411CE SUPPORT AND I2c
Replies: 6
Views: 229

Re: WEACT STM32F411CE SUPPORT AND I2c

ok if I use STMcubeprogrammer (Serial) then I am able to upload a sketch..DFu didnt work for me but I think I am missing something important When you select DFU as upload method, then you need USB(C) cable connected to board, when you select Serial as upload method, you'll need Serial adapted (any ...
by Bakisha
Thu Jul 30, 2020 6:52 pm
Forum: STM32F4 based boards
Topic: WEACT STM32F411CE SUPPORT AND I2c
Replies: 6
Views: 229

Re: WEACT STM32F411CE SUPPORT AND I2c

That boards is supported. Just select "Black Pill F411CE" from menu. Clipboard02.png But WeAct bootloader is not supported. Nor you need it to upload sketch. You can use ST-LINK, or with hardware bootloader, either via USB (DFU) or with serial dongle on PA9/PA10. For the last two, you'll only need t...

Go to advanced search