Search found 380 matches

by rew
Sun May 09, 2021 7:40 pm
Forum: STM32 Support
Topic: Jump to bootloader.
Replies: 11
Views: 6063

Re: Jump to bootloader.

I consider the situation reasonably safe. Suppose the bootloader would randomize the whole memory. In that case, there would be a 2^-32 chance this would happen: 1 in 4 billion. I can take that risk. But the bootloader will only use 1 of 20kbyte of RAM in my CPU. So actually we're looking at 1:80 bi...
by rew
Sun Apr 04, 2021 5:55 pm
Forum: STM32 Support
Topic: can reseved problem Topic is solved
Replies: 8
Views: 4082

Re: can reseved problem Topic is solved

i will test it, if I set CAN_ENFORCE_USE_CALLBACKS TRUE, can i have faster speed? If what you want is to really print the incoming packets, you have to first do the math: Is that theoretically possible. To me it looks as if you are running out of time to print the packet summary with the first pack...
by rew
Wed Mar 31, 2021 8:49 am
Forum: STM32 Support
Topic: Jump to bootloader.
Replies: 11
Views: 6063

Re: Jump to bootloader.

Hi, I used the flag-at-a-constant address method at first too. However, after a while I changed to simply using a variable. Now normally a global variable starts out as "zero", but that doesn't happen by accident: There is code to clear all global variables just AFTER the "early_board...
by rew
Fri Mar 12, 2021 6:55 pm
Forum: General Support
Topic: Serial Device: usart speed change "on the fly"
Replies: 7
Views: 4543

Re: Serial Device: usart speed change "on the fly"

You don't need to stop, just call sdStart() again to set new parameters, of course you need multiple configuration structures. i This is inconsistent with lots of other stuff in Chibios: Many things in Chibios don't tolerate being restarted by "just call start again", because they are not...
by rew
Sat Feb 20, 2021 2:45 pm
Forum: STM32 Support
Topic: USB_CDC output buffer status.
Replies: 3
Views: 1790

Re: USB_CDC output buffer status.

OK! How do I instruct "chprintf" to do that?
by rew
Fri Feb 19, 2021 2:14 pm
Forum: STM32 Support
Topic: USB_CDC output buffer status.
Replies: 3
Views: 1790

USB_CDC output buffer status.

I have several applications where my application on the STM32 provides an USB_CDC commandline interface to the user. So during development I have a terminal program to type commands and see responses. But then for "internal applications" I might want to automate something through the modul...
by rew
Mon Feb 15, 2021 5:41 pm
Forum: Development and Feedback
Topic: SD Card over SPI
Replies: 7
Views: 6858

Re: SD Card over SPI

For posterity.... Even with slow SPI speed, the long cables can be a problem. The SD cards are too small to house an on-card decoupling capacitor. So that should be just outside the card connector. So with these long wires, the SD card may suddenly draw too much power that the non-existant "clo...
by rew
Wed Jan 06, 2021 5:18 pm
Forum: Bug Reports
Topic: STM32L412 support.
Replies: 4
Views: 2208

Re: STM32L412 support.

I got the nucleo32. It doesn't have the "target-USB" connector that I thought it had.
by rew
Sun Jan 03, 2021 5:19 pm
Forum: Development and Feedback
Topic: chibios: reducing code.
Replies: 3
Views: 1976

Re: chibios: reducing code.

OK. I downloaded the stupid thing. Then I get a welcome screen with a "readme" link. CLick there. Download more and... screen is VERY complicated but no "readme" info. new chibios project? new menu entry gives me "java project" and "enum" as options. Where is ...
by rew
Sun Jan 03, 2021 4:02 pm
Forum: General Support
Topic: brushless motor control for gimbal(DRV8313)
Replies: 1
Views: 1751

Re: brushless motor control for gimbal(DRV8313)

You need to make a "BLDC motor controller". This is FAR from trivial. You can look at VESC (also uses CHIBIOS) for example code.

Go to advanced search