Search found 380 matches
- Sun Jan 03, 2021 3:57 pm
- Forum: Development and Feedback
- Topic: chibios: reducing code.
- Replies: 3
- Views: 1971
chibios: reducing code.
I just ported a demo application to a new baord/cpu. Everything just works, but... I've had to change/add about 1800 lines-of code. In reality I didn't need to change all that much. I'd like to reorganize chibios and the demos/testhal programs to be more compact. So for example, almost all board.mk ...
- Sun Jan 03, 2021 3:36 pm
- Forum: Bug Reports
- Topic: STM32L412 support.
- Replies: 4
- Views: 2207
Re: STM32L412 support.
Attached are the changes I did to support my L412 board. USB_CDC works. I called the board ST_STM32L412 or something like that. I think this will run on the small nucleo for this CPU. https://nl.farnell.com/2980964 I have it in my cart, but not yet ordered, because I'm willing to spend EUR10 to get ...
- Mon Nov 30, 2020 12:04 pm
- Forum: Bug Reports
- Topic: STM32L412 support.
- Replies: 4
- Views: 2207
STM32L412 support.
Hi,
I've designed a new board that I'm going to be making a couple of. I've selected the L412 processor. What would it take to support that in chibios? I can't find any files named *L412* (i.e. no demos, no examples, no headers).
I've designed a new board that I'm going to be making a couple of. I've selected the L412 processor. What would it take to support that in chibios? I can't find any files named *L412* (i.e. no demos, no examples, no headers).
- Sun Nov 08, 2020 9:57 pm
- Forum: STM32 Support
- Topic: gcc-arm-none-eabi-9-2020-q2-update-aarch64-linux.tar.bz2
- Replies: 2
- Views: 1795
Re: gcc-arm-none-eabi-9-2020-q2-update-aarch64-linux.tar.bz2
Last time I tried that it took hours to compile on a PC much faster than the PI. That's going to take a while.
- Sun Nov 08, 2020 9:00 pm
- Forum: STM32 Support
- Topic: gcc-arm-none-eabi-9-2020-q2-update-aarch64-linux.tar.bz2
- Replies: 2
- Views: 1795
gcc-arm-none-eabi-9-2020-q2-update-aarch64-linux.tar.bz2
Hi, I've been told here that I should use the compiler from ARM, and on ia64 the 2020-Q2 update seems to work well for me. With my USB on my PC seeming to be a bit flaky, I decided to try developing on the raspberry pi. Well.... My code won't boot when compiled with the recommended compiler on the r...
- Sun Nov 08, 2020 8:57 pm
- Forum: STM32 Support
- Topic: Where did the BRR go?
- Replies: 3
- Views: 1976
Re: Where did the BRR go?
OK. So in advance, I've prepared the 32-bit word that sets and clears the right bits of that GPIO port when written to the BSRR (A total of precisely 8 bits need to be set and/or reset, the other 8 need to be left alone). Which function helps me do that? In the documentation I find: #define palSetPo...
- Sat Nov 07, 2020 5:31 pm
- Forum: STM32 Support
- Topic: Where did the BRR go?
- Replies: 3
- Views: 1976
Where did the BRR go?
I have an application where in an interrupt I need to set and reset GPIOs quickly. When I want to reset bits, I used the BRR (Bit Reset Register). For example: GPIOF->BRR = 1; Now I've upgraded Chibios and this code no longer compiles. The compiler suggests a different register in the GPIO struct, a...
- Wed Nov 04, 2020 8:53 pm
- Forum: STM32 Support
- Topic: Half-Duplex burst mode DMAR
- Replies: 10
- Views: 4704
Re: Half-Duplex burst mode DMAR
In the DSHOT protocol, each bit is coded with a signal with a fixed period and a positive pulse width which depend on the value of the bit. I don't remember the exact value, but let's say that the period is 10µs, and positive width is 3µs for a 0 and 7µs for a 1 bit To decode this, you just need to...
- Sun Nov 01, 2020 7:09 pm
- Forum: STM32 Support
- Topic: Jump to bootloader.
- Replies: 11
- Views: 6051
Re: Jump to bootloader.
I was using an STM32F072RC. My recommendation is to do the same as I did. Just put the jump-to-bootloader in the __early_init function (depending on a magic value in some variable). Next find the crt0.S file that your CPU uses. Make a guess, put in some garbage, if things still compile, you guessed ...
- Mon Oct 26, 2020 12:57 pm
- Forum: STM32 Support
- Topic: Jump to bootloader.
- Replies: 11
- Views: 6051
Re: Jump to bootloader.
yeah. The startup code does cpsid where the d stands for Disable. Then to revert that I need to Enable the same stuff, so the instrution becomes cpsie.Polux wrote:in your last post, you wrote 3 times cpsid, but your code is "cpsie