Search found 44 matches

by mikeprotts
Wed Oct 16, 2019 8:47 am
Forum: General Support
Topic: UART driver & threads
Replies: 3
Views: 155

Re: UART driver & threads

It may be worth using a diuagnostic rxchar callback in case it's a buffering issue. Possibly also worth reducing buffer size to less than the data size to ensure an end of buffer occurs.

Mike
by mikeprotts
Mon Oct 07, 2019 9:47 pm
Forum: STM32 Support
Topic: STM32F427 Ethernet support
Replies: 3
Views: 209

Re: STM32F427 Ethernet support

It's probably worth getting the processing working with a fairly similar board that's already well supported, perhaps the STM32F429 nucleo (https://www.st.com/en/evaluation-tools/nucleo-f429zi.html). That helps to ensure that you avoid problems with pin assignments etc. until you have a functioning ...
by mikeprotts
Tue Sep 17, 2019 11:19 pm
Forum: STM32 Support
Topic: Thread priorities...
Replies: 7
Views: 199

Re: Thread priorities...

I've tended to avoid use of any sleeps, I prefer to suspend and resume threads so I can be more certain of the current state when code runs. I try to only use sleep when there's a problem (e.g. to blink an LED at a set rate). It might be worth developing code on a processor that allows more diagnost...
by mikeprotts
Mon Sep 16, 2019 9:25 pm
Forum: Development and Feedback
Topic: [NOTES] Sandbox concept
Replies: 16
Views: 651

Re: [NOTES] Sandbox concept

I'd prefer sandboxes to be single threads. Keep them simple and if you need more, run a second sandbox.

Mike
by mikeprotts
Sat Sep 14, 2019 9:14 pm
Forum: Development and Feedback
Topic: [NOTES] Sandbox concept
Replies: 16
Views: 651

Re: [NOTES] Sandbox concept

I think stdin, stdout and stderr would be an important link between the sandbox and the main system. The stderr route might benefit from being treated as a higher priority, perhaps options to have errors treated as either fatal (perhaps chSysHalt) or recoverable, where the sandbox might be terminate...
by mikeprotts
Thu Sep 12, 2019 3:48 pm
Forum: General Support
Topic: EXTI Driver
Replies: 24
Views: 4908

Re: EXTI Driver

Not a good idea to resurrect such an old thread.

With the latest ChibiOS, I think you should be looking at PAL, perhaps palEnablePadEvent(...)

Mike
by mikeprotts
Tue Sep 10, 2019 7:50 pm
Forum: STM32 Support
Topic: STM32F407 USB-CDC not working
Replies: 10
Views: 268

Re: STM32F407 USB-CDC not working

Windows has a habit of allocating different details for the same device plugged into a different port, and can sometimes leave settings in a mixed state. The 'other' device is possibly still showing if you enable the option to display hidden devices in device manager.

Mike
by mikeprotts
Sun Sep 08, 2019 4:55 pm
Forum: STM32 Support
Topic: Interrupt latency.
Replies: 14
Views: 321

Re: Interrupt latency.

I don't think the original post included the processor family, I'd given my use of an F4 as an example, on the assumption that the processor in use would have had a similar capability.

Mike
by mikeprotts
Sun Sep 08, 2019 11:49 am
Forum: STM32 Support
Topic: Interrupt latency.
Replies: 14
Views: 321

Re: Interrupt latency.

STM32_EXT_EXTI4_15_IRQ_PRIORITY That's a shared interrupt, so may be in use for something else. As you have more than one interrupt in use at the same level, you will not have any control over the order they run. Are you able to use non shared interrupts, and can you make the most critical one run a...
by mikeprotts
Fri Sep 06, 2019 8:41 pm
Forum: STM32 Support
Topic: Interrupt latency.
Replies: 14
Views: 321

Re: Interrupt latency.

12 cycles at 168MHz should be a lot less than the time I'm seeing, but there is some of my own processing. I'll have a check on this. The use of PENDSV might help with the jitter I see with SPI ADC (it's a single sample each transfer), so thanks for the hint. That's the interrupt I am thinking of ru...

Go to advanced search