Search found 23 matches

by dannyf
Thu Sep 10, 2020 2:09 pm
Forum: Off topic
Topic: stm32f030f4p6
Replies: 7
Views: 372

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: 15
Views: 2078

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: 15
Views: 2078

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: 15
Views: 2078

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: 15
Views: 2078

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: 398

Re: Detecting Fake/clone STM32F103C8T6

yea. super-duper cheap e-bike version of the stm32f103.
by dannyf
Mon Aug 10, 2020 4:35 pm
Forum: General discussion
Topic: Detecting Fake/clone STM32F103C8T6
Replies: 4
Views: 398

Re: Detecting Fake/clone STM32F103C8T6

STM32FEBKC6
that's one amazing chip, if you can get your hand on the datasheet.

I wonder if you can simply read the uniqueID of the chip and call it a day. presumably the fake ones wouldn't return a valid value.
by dannyf
Sat Aug 08, 2020 8:43 pm
Forum: Off topic
Topic: Ballistic chrono, simulation, arduino and blue pill
Replies: 0
Views: 314

Ballistic chrono, simulation, arduino and blue pill

I have been working on coding the cheapest and simplest chrono https://dannyelectronics.wordpress.com/2020/08/05/ghetto-ballistic-chrono-proof-of-concept/ to measure speed of a bullet -> itself not that interesting. Before I got the hardware up and running, I used a lot of simulation to test out dif...
by dannyf
Sat Aug 08, 2020 1:03 pm
Forum: General discussion
Topic: Library for ds2413
Replies: 5
Views: 513

Re: Library for ds2413

they aren't that difficult to build: 1. start with routines that transmit "1" and "0"; 2. build routines that transmit bytes, using the routines above; 3. build routines that transmit commands and data, using the routines above. #1 and #2 are physical layers and #3 is the logic layer. the key is tha...
by dannyf
Sat Aug 08, 2020 12:59 pm
Forum: General discussion
Topic: Measuring CPU usage
Replies: 4
Views: 466

Re: Measuring CPU usage

it should work as well. i think it boils down to 1) what we consider to be "active" vs. "inactive", and 2) how to make the assessment less expensive. 1. it seems to me that the number of ms spent in sleep is an indication of low cpu utilization. so i would count that instance and and use it to estim...

Go to advanced search