Search found 22 matches
- Wed Feb 08, 2023 12:26 am
- Forum: General discussion
- Topic: DMA Code not working on STM32F401 blackpill
- Replies: 4
- Views: 3005
Re: DMA Code not working on STM32F401 blackpill
So you didn't read carefully...
Syntax is :
-DHAL_TIM_MODULE_ONLY
Thank you, I got mixed up reading the documentation when it was right there!
Few errors here:
First, you used Stream6, channel0 , which is used for (timer1) ch1 or ch2 or ch3 but later you try to call it with "TIM_DMA_UPDATE ...
- Sun Feb 05, 2023 9:32 pm
- Forum: General discussion
- Topic: DMA Code not working on STM32F401 blackpill
- Replies: 4
- Views: 3005
Re: DMA Code not working on STM32F401 blackpill
Following these guides I have tried to add a build_opt.h file with "#define HAL_TIM_MODULE_ONLY". This isn't producing any results either.
https://github.com/stm32duino/wiki/wiki/Customize-build-options-using-build_opt.h
https://github.com/stm32duino/wiki/wiki/HAL-configuration#hal-module-only ...
https://github.com/stm32duino/wiki/wiki/Customize-build-options-using-build_opt.h
https://github.com/stm32duino/wiki/wiki/HAL-configuration#hal-module-only ...
- Sun Feb 05, 2023 6:30 pm
- Forum: General discussion
- Topic: DMA Code not working on STM32F401 blackpill
- Replies: 4
- Views: 3005
DMA Code not working on STM32F401 blackpill
Hello,
I got the DMA code for the timer based blinky from this site. It's the second code under the "Bonus Timer DMA" example down at the bottom:
https://ucexperiment.wordpress.com/2021/05/01/dma-in-the-ide/
Unfortunately the code doesn't work. I'm using the STM32F401 black pill, so I used the ...
I got the DMA code for the timer based blinky from this site. It's the second code under the "Bonus Timer DMA" example down at the bottom:
https://ucexperiment.wordpress.com/2021/05/01/dma-in-the-ide/
Unfortunately the code doesn't work. I'm using the STM32F401 black pill, so I used the ...
- Tue May 24, 2022 3:09 am
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: can power be supplied into 5v pin while USB is also attached?
- Replies: 7
- Views: 6759
Re: can power be supplied into 5v pin while USB is also attached?
Thank you. I've got a few of these same boards on hand in case I ever feel like giving it a try. It's the simple act of soldering the pin headers on a new one that's keeping me from doing it :lol: It would greatly simplify my setup as I currently have a hydra of jumper cables from a breadboard to ...
- Mon May 23, 2022 9:55 am
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: can power be supplied into 5v pin while USB is also attached?
- Replies: 7
- Views: 6759
Re: can power be supplied into 5v pin while USB is also attached?
my understanding of electrical engineering is still pretty poor. what happens to the voltages in this case? does it stay at 5v where the two power sources intersect?ag123 wrote: Mon May 23, 2022 5:18 am technically it shouldn't be done, but that it still works having both of them connected as both of them are 5v
- Mon May 23, 2022 5:12 am
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: can power be supplied into 5v pin while USB is also attached?
- Replies: 7
- Views: 6759
Re: can power be supplied into 5v pin while USB is also attached?
thank you very much!
- Sun May 22, 2022 8:23 pm
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: can power be supplied into 5v pin while USB is also attached?
- Replies: 7
- Views: 6759
can power be supplied into 5v pin while USB is also attached?
Hello again,
I have here the schematic for the board here that I've been using, the f401"green pill". based off of this, I am unsure whether I can have the board safely plugged in via USB, while power is being supplied to the 5v pin.
the reason i ask is because the testing that I want to do ...
I have here the schematic for the board here that I've been using, the f401"green pill". based off of this, I am unsure whether I can have the board safely plugged in via USB, while power is being supplied to the 5v pin.
the reason i ask is because the testing that I want to do ...
- Sun May 15, 2022 3:43 pm
- Forum: Projects
- Topic: How do I adapt this 8 bit ladder DAC for STM32F401 Black Pill?
- Replies: 7
- Views: 6203
Re: How do I adapt this 8 bit ladder DAC for STM32F401 Black Pill?
just 2 cents, if you are changing all the bits in one go, you may as well use ODR.
for BSRR, to do the same, it may be 2 transactions, first reset all bits, then set the bits again separately.
the alternate would be to do things like
GPIOA->BSRR = value | (~ value << 16);
perfect, thank ...
- Sun May 15, 2022 1:33 am
- Forum: Projects
- Topic: How do I adapt this 8 bit ladder DAC for STM32F401 Black Pill?
- Replies: 7
- Views: 6203
How do I adapt this 8 bit ladder DAC for STM32F401 Black Pill?
I have previously done this project using an Arduino Uno: https://create.arduino.cc/projecthub/instrumentation-system/dac-8-bit-using-r-2r-ladder-964837
The Arduino writes an arbitrary 8 bit value to PORTD, using 8 digital output pins. The command to set the register is very simple, but since ...
The Arduino writes an arbitrary 8 bit value to PORTD, using 8 digital output pins. The command to set the register is very simple, but since ...
- Tue Apr 26, 2022 9:06 am
- Forum: Projects
- Topic: Rotary encoder with STM32F401CCU
- Replies: 6
- Views: 14767
Re: Rotary encoder with STM32F401CCU
something like PORTA->IDR
Worked like a charm :)
Secondly, when you are working at that level, you are exposed to differences between the different STM32 processor families. As far as I know, STM32F4 processors don't have CRL/CRH registers for GPIO, but instead have other registers which ...