Search found 27 matches

by dannyf
Thu Nov 26, 2020 12:52 am
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 21
Views: 5090

Re: Bare metal STM32 programming

Bare Metal is the closest you can get to the processor,
you can always code assembly. or even hand-generate binary.
A potential problem about Bare Metal is how portable your code will be.
I usually code to cmsis. it has the most portability.
by dannyf
Thu Nov 26, 2020 12:48 am
Forum: General discussion
Topic: incorrect micros() value for stm32f411re
Replies: 7
Views: 152

Re: incorrect micros() value for stm32f411re

result
you will notice that your reading changes a little bit, partly because of the sequence of reading the timer can differ based on if you are trying to read the leading edge or the trailing edge.

one way to do that is to always read the timer first in the isr
by dannyf
Mon Sep 21, 2020 12:15 am
Forum: General discussion
Topic: analogRead showing a digital behaviour
Replies: 6
Views: 613

Re: analogRead showing a digital behaviour

analogwrite() produces a digital output whose duty cycle carries the analog information.

what you observed is expected.
by dannyf
Sat Sep 19, 2020 5:55 pm
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 21
Views: 5090

Re: Bare metal STM32 programming

most of the code you find will be developed against CMSIS and a set of vendor header files. so I would encourage you to at least try to align there.
by dannyf
Thu Sep 10, 2020 2:09 pm
Forum: Off topic
Topic: stm32f030f4p6
Replies: 7
Views: 989

Re: stm32f030f4p6

I use Keil and an old version of CoIDE.
by dannyf
Sun Aug 30, 2020 10:48 pm
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 21
Views: 5090

Re: Bare metal STM32 programming

coding to the datasheet may sound challenging initially but it is not that hard. it allows you to migrate away from vendor libraries and develop a better understanding of the hardware -> the essence of "bare metal programming".
by dannyf
Fri Aug 28, 2020 12:38 am
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 21
Views: 5090

Re: Bare metal STM32 programming

the cubemx code generator
I guess there are differing flavors of "bare metal".
by dannyf
Sun Aug 23, 2020 4:00 pm
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 21
Views: 5090

Re: Bare metal STM32 programming

It is not complicated at all - reading the datasheet will get you there. and if you don't care about code modularity / re-usability, you can simply dump all the files into one .ino file and call it a day. To me, that's the wrong way of doing things. as to your code below, I would suggest 1. use comm...
by dannyf
Tue Aug 18, 2020 4:58 pm
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 21
Views: 5090

Re: Bare metal STM32 programming

a good idea. but difficult to implement with the arduino ide. this approach would requirement multiple .c/.h files -> each dealing with a specific functionality / hardware modules. a typical project for me is 20+ files. unfortunately that's where the arduino ide fails. it has the ability to use mult...
by dannyf
Tue Aug 11, 2020 12:37 am
Forum: General discussion
Topic: Detecting Fake/clone STM32F103C8T6
Replies: 4
Views: 745

Re: Detecting Fake/clone STM32F103C8T6

yea. super-duper cheap e-bike version of the stm32f103.

Go to advanced search