Search found 18 matches

by peekay123
Fri Aug 25, 2017 1:36 pm
Forum: Code snipplets
Topic: Interrupt Latency Measurement
Replies: 24
Views: 510

Re: Interrupt Latency Measurement

The min/max difference is substantial. It would be nice to calculate the standard deviation to get a sense of the distribution. Or count the number of instances where the time is greater than the average.
by peekay123
Thu Aug 24, 2017 6:30 pm
Forum: LibMaple
Topic: [BY DESIGN] Slow response to external ISR when using AttachInterrupt
Replies: 27
Views: 373

Re: AttachInterrupt for STM32F103

Well, kind of. For external interrupts that share a common IRQ (exti9_5 and exti15_10), the firmware will scan each of the interrupt pending bits (of the shared IRQ register) and, if defined, call the ISR pointed to in the vector table. If multiple ISRs fire at the same time or the interrupt pending...
by peekay123
Mon Aug 21, 2017 7:29 pm
Forum: General discussion
Topic: [POLL (Open)]- favorite STM32F1 board for stm32duino 08/2107
Replies: 23
Views: 789

Re: [POLL (Open)]- favorite STM32F1 board for stm32duino 08/2107

Voted on "other". It is a custom board with an STM32F103RB and peripheral hardware, no USB (program via serial).
by peekay123
Fri Aug 04, 2017 12:02 pm
Forum: Builds and Announcements
Topic: Expanding the Error LED functionality
Replies: 9
Views: 242

Re: Expanding the Error LED functionality

Roger, let me know if you need me to do anything.

:D
by peekay123
Thu Aug 03, 2017 3:47 pm
Forum: Builds and Announcements
Topic: Expanding the Error LED functionality
Replies: 9
Views: 242

Re: Expanding the Error LED functionality

Rick, maybe not! Knowing you have a memory exception might be obvious to spot in your code. Just saying ;)
by peekay123
Thu Aug 03, 2017 12:58 pm
Forum: Builds and Announcements
Topic: Expanding the Error LED functionality
Replies: 9
Views: 242

Re: Expanding the Error LED functionality

I recently ported a I2C GPS library for use on a custome STM32F103 board using STM32Duino. The code seemed to work well for a few moments until I noticed nothing was being output to the Serial console and the onboard LED that I had designated as the "error" LED what pulsing indicating an fault/excep...
by peekay123
Thu Aug 03, 2017 2:43 am
Forum: Builds and Announcements
Topic: Expanding the Error LED functionality
Replies: 9
Views: 242

Re: Expanding the Error LED functionality

Roger, I have it all working now along with a compile flag in util.h to switch the morse feature ON or OFF (throbbing LED). Not sure I should PR or simply post the code sections here. Any thoughts?
by peekay123
Wed Aug 02, 2017 11:25 pm
Forum: Builds and Announcements
Topic: Expanding the Error LED functionality
Replies: 9
Views: 242

Re: Expanding the Error LED functionality

@RogerClark, exc.s massages the stack, leaving the value in r0 as the top of the stack prior to jumping to __error(). Now I need to pop it from the stack and store it in a variable I can work with. I'll fish around for a way to do that.
by peekay123
Wed Aug 02, 2017 7:37 pm
Forum: Builds and Announcements
Topic: Expanding the Error LED functionality
Replies: 9
Views: 242

Expanding the Error LED functionality

@RogerClark, I've had great success working on a custom board based on an STM32F103RCT6 using the STM32Duino code (THANKS!). In my configuration I've set an Error LED (PA15) and it works very well since yesterday, on a critical fault, it went into "throbbing" mode. Looking into the code, I noticed t...