Search found 728 matches

by Rick Kimball
Fri Mar 24, 2017 9:15 pm
Forum: Projects
Topic: STM32F103 minimal synth
Replies: 14
Views: 170

Re: STM32F103 minimal synth

Did you see, I used your code for the fast pin access: https://github.com/ChrisMicro/BluePillSound/blob/master/_073_SigmaDeltaTalkie/GPIOPort.h Do you want to have any special copyright text? I did see that. Once you use it you own it ; ) I just threw that code into the public domain as an example....
by Rick Kimball
Fri Mar 24, 2017 8:46 pm
Forum: Projects
Topic: STM32F103 minimal synth
Replies: 14
Views: 170

Re: STM32F103 minimal synth

ChrisMicro wrote:For sure. But that is exactly what I wanted to avoid: digging deep into the MCU.


https://github.com/ChrisMicro/AttinySou ... ndPittix.c

It seems like you did a deep dive on the attiny. Why do you want to snub the stm32f103? : )
by Rick Kimball
Fri Mar 24, 2017 8:29 pm
Forum: Projects
Topic: STM32F103 minimal synth
Replies: 14
Views: 170

Re: STM32F103 minimal synth

ChrisMicro wrote:Is it possible that not all pins can be used for PWM?


Did you notice the pins with the little squiggly line and the legend that says "PWM pin" ?
by Rick Kimball
Fri Mar 24, 2017 8:27 pm
Forum: Projects
Topic: STM32F103 minimal synth
Replies: 14
Views: 170

Re: STM32F103 minimal synth

stevestrong wrote:Isn't actually Tone lib better suited?

Isn't the tone library built using the HardwareTimer stuff? I would think using the low lever code would provide faster/more control.
by Rick Kimball
Fri Mar 24, 2017 5:19 pm
Forum: Projects
Topic: STM32F103 minimal synth
Replies: 14
Views: 170

Re: STM32F103 minimal synth

HardwareTimer is the thing you want

google search
"site:stm32duino.com HardwareTimer"
by Rick Kimball
Fri Mar 24, 2017 3:16 pm
Forum: General discussion
Topic: Analog Pin Numbering
Replies: 11
Views: 136

Re: Analog Pin Numbering

One last comment, I have seen a few posts where you suggest Roger doesn't have time and shouldn't be wasting himself on a particular topic. Shouldn't HE be the one to decide that? Roger is too much of a nice guy he rarely says "No". I think the rest of us should shield him from things bet...
by Rick Kimball
Mon Mar 20, 2017 3:16 pm
Forum: General discussion
Topic: Abnormal flash space consumption for trivial code
Replies: 4
Views: 140

Re: Abnormal flash space consumption for trivial code

I too like the singleton pattern. It seems useful to deal with order of initialization issues. I had also previously encountered this problem. However at that time, I didn't search around to find the right answer. I took the lazy way out and just moved to a different approach. That other solution th...
by Rick Kimball
Sun Mar 19, 2017 11:48 pm
Forum: General discussion
Topic: Abnormal flash space consumption for trivial code
Replies: 4
Views: 140

Re: Abnormal flash space consumption for trivial code

I noticed this, but I've not tried it: http://stackoverflow.com/questions/22985570/g-using-singleton-in-an-embedded-application <edit I tried it, it reduces the size to 13184 bytes and 2816 bytes of dynamic You need to modify the platform.txt and add the -fno-threadsafe-statics on the cpp.flags: $ g...
by Rick Kimball
Sun Mar 19, 2017 5:00 pm
Forum: General discussion
Topic: trying to understand how the compiler works...
Replies: 3
Views: 70

Re: trying to understand how the compiler works...

If I'm using a macro i tend to avoid things like post increment or addition or anything other than passing a value to it.
by Rick Kimball
Mon Mar 13, 2017 1:38 am
Forum: Generic STM32F103
Topic: Port COM issue with blue pills
Replies: 9
Views: 290

Re: Port COM issue with blue pills

* I've not tried this but it might work load bootloader load echo sketch using native USB see where the code ends, round up to page boundary use stm32flash to read from x08000000 for the length of bootloader + length of sketch save to a file ... So assuming the bootloader + sketch use 16k of flash, ...

Go to advanced search