Search found 126 matches

by ddrown
Tue Jun 27, 2017 9:08 pm
Forum: Linux
Topic: Install STM32duino on Raspbian?
Replies: 17
Views: 149

Re: Install STM32duino on Raspbian?

Well https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/283 is a ARMv7 version, I tried this one now but it gives me the following error. It's says it can't find the shared libraries but they are in home/pi/Arduino/hardware/stm/tools/linux/stlink/st-flash/lib /home/pi/Arduino/hardware/stm/to...
by ddrown
Thu Jun 15, 2017 9:43 pm
Forum: Libary request
Topic: STM32 internal temperture sensor library?
Replies: 4
Views: 134

Re: STM32 internal temperture sensor library?

There's an example under A_STM32_Examples > General > InternalTempSensor, have you tried that?
by ddrown
Wed May 03, 2017 6:28 pm
Forum: Problems with libraries
Topic: RTC Library using LSE
Replies: 19
Views: 2185

Re: RTC Library using LSE

I've been experimenting with a LSE and I have some data: https://dan.drown.org/stm32/temp-lse.png At the peak you can see it's around 78.8ppm off (around 7 seconds per day day drift). After setting the RTC's calibration, I'm getting around 70ms per day (around 0.8ppm) https://dan.drown.org/stm32/rtc...
by ddrown
Sat Apr 29, 2017 7:15 pm
Forum: Projects
Topic: free logic analizer
Replies: 21
Views: 1220

Re: free logic analizer

I posted my sump device code here https://github.com/ddrown/stm32-sump

It's based on stmcubemx and uses dma and a timer to sample the gpio.
by ddrown
Mon Apr 24, 2017 3:36 am
Forum: General discussion
Topic: Problem with measuring very short pulses
Replies: 30
Views: 892

Re: Problem with measuring very short pulses

One way to do this is to use just the MISO pin of a SPI port: #include <SPI.h> void setup() { // Setup SPI 1 SPI.begin(); //Initialize the SPI_1 port. SPI.setBitOrder(MSBFIRST); // Set the SPI_1 bit order SPI.setDataMode(SPI_MODE0); //Set the SPI_2 data mode 0 SPI.setClockDivider(SPI_CLOCK_DIV128); ...
by ddrown
Wed Apr 12, 2017 8:36 pm
Forum: Projects
Topic: free logic analizer
Replies: 21
Views: 1220

Re: free logic analizer

with stm32f1 it would seem it may even be able to monitor at spi speeds (i.e. mhz), could be interesting to test that I have a proof of concept based on CubeMX on the blue pill board that uses a timer to drive DMA from GPIOA at 6MHz. It speaks the SUMP protocol over the USB port. If I use hand-code...
by ddrown
Thu Mar 30, 2017 6:58 pm
Forum: Generic STM32F103
Topic: Hackaday post/video on STM32duino
Replies: 4
Views: 298

Hackaday post/video on STM32duino

https://hackaday.com/2017/03/30/the-2-3 ... debugging/

They're recommending the new HAL based core and even go into getting debugging working
by ddrown
Thu Mar 23, 2017 8:50 pm
Forum: Custom design boards
Topic: STM32F030 custom board
Replies: 22
Views: 2147

Re: STM32F030 custom board

These are actually nice OCXO's http://www.ebay.com/itm/NEW-10MHz-OCXO-DIP-Micro-Crystal-x1pc-5x10E-11-Oven-Oscillator-OCVCXO-GPSDO-/252308905189 DS http://www.microcrystal.com/images/_PDF/7_Oven-Controlled-Oscillator/OCXO.pdf Uses less than 80ma@20c , 300ma@startup (10 sec) , they're 5v supplied Th...
by ddrown
Sun Mar 19, 2017 3:39 pm
Forum: General discussion
Topic: trying to understand how the compiler works...
Replies: 3
Views: 164

Re: [SOLVED] trying to understand how the compiler works...

OK, I think that the compiler generates the following code from #define write8(i++): digitalWrite(PB0, (i&BIT0)?HIGH:LOW); i++; digitalWrite(PB1, (i&BIT1)?HIGH:LOW); i++; digitalWrite(PB2, (i&BIT2)?HIGH:LOW); i++; digitalWrite(PB3, (i&BIT3)?HIGH:LOW); i++; digitalWrite(PB4, (i&BIT4)?HIGH:LOW); i++;...
by ddrown
Mon Mar 06, 2017 2:21 am
Forum: General discussion
Topic: Copying stm32 chip
Replies: 18
Views: 483

Re: Copying stm32 chip

I don't think it is protected. The esc can be upgraded with new firmware at any time. The thing is I have limited knowledge of this but whst I do know is the that the esc's board has 5 desitict areas where links have been made. I have back tracked and here are a list of pins on the stm32f051k6t6. R...