Search found 558 matches

by steved
Fri Dec 14, 2018 6:59 pm
Forum: Development and Feedback
Topic: High Speed Tickless timers?
Replies: 4
Views: 166

Re: High Speed Tickless timers?

Had a go at this, with very satisfactory-looking results. I've settled on a 1usec resolution and minimum time of 100usec for now. Running 3 timers on a 32MHz 32L031 the jitter is 1usec - very stable. (Although that is with just a 'blinky' thread running as well). Code attached in case anyone wants a...
by steved
Fri Dec 14, 2018 1:33 pm
Forum: Bug Reports
Topic: Timer usage checks in wrong place
Replies: 0
Views: 24

Timer usage checks in wrong place

The checks as to whether a particular timer is used for system tick are in hal_st_lld.c. So the appropriate '#define STM32_TIMxx_IS_USED' is executed only when compiling that file; the information is not available to other source files which may try and use the same timer. Not sure of the ramificati...
by steved
Tue Dec 11, 2018 10:21 pm
Forum: Development and Feedback
Topic: Raspberry Pi port
Replies: 14
Views: 191

Re: Raspberry Pi port

There's a port of an older version of ChibiOS to the Pi which might give you some ideas:
http://www.stevebate.net/chibios-rpi/Ge ... arted.html
https://www.raspberrypi.org/forums/view ... p?p=185362
by steved
Thu Nov 29, 2018 11:55 pm
Forum: ChibiOS/RT
Topic: migrating from v2 to v3
Replies: 19
Views: 465

Re: migrating from v2 to v3

Seem to remember something like that was due to a subtle problem in the makefile; can't remember exactly what, but perhaps a space character after the '\' at the end of a line, or something like that.
by steved
Wed Nov 28, 2018 6:36 pm
Forum: ChibiOS/RT
Topic: migrating from v2 to v3
Replies: 19
Views: 465

Re: migrating from v2 to v3

In the makefile, have you deleted main.c from the list of C files, and added main.cpp to the list of C++ files?
(And sometimes a clean helps after such changes)
by steved
Wed Nov 28, 2018 3:47 pm
Forum: General Support
Topic: I2C Slave mode support?
Replies: 98
Views: 18560

Re: I2C Slave mode support?

I've just updated the I2CV2 slave driver for ChibiOS 18 (just as 19 is on the horizon!), and also made a few changes to reflect problems I encountered on the 32L071 - re-ordering bits of code, rather than changing the fundamentals. Not tested on other processors yet, but don't anticipate problems. I...
by steved
Tue Nov 27, 2018 11:42 pm
Forum: ChibiOS/HAL
Topic: chprintf and 64-bit numbers
Replies: 9
Views: 194

Re: chprintf and 64-bit numbers

Hi, It depends on code size increase, it is just an utility and it is meant to run also on 8 bits cores, some compilers don't have 64 bits types at all. Giovanni Maybe enable/disable dependent on 64-bit type support (c99 standard or later). Or have a default setting which is processor dependent, wi...
by steved
Wed Nov 21, 2018 11:24 pm
Forum: STM32 Support
Topic: STM32F2 lwIP client
Replies: 6
Views: 200

Re: STM32F2 lwIP client

Unfortunately for you, I think most uses of lwip with Chibios are server applications. One suggestion is to start by coding your application to use sockets. Even if you are not familiar with them, you will find plenty of examples elsewhere since it is a standard interface. This will allow you to pro...
by steved
Mon Nov 12, 2018 2:51 pm
Forum: Development and Feedback
Topic: High Speed Tickless timers?
Replies: 4
Views: 166

Re: High Speed Tickless timers?

I could manage with a slightly higher minimum resolution - up to about 100 usec, maybe. Unless I've missed something, systick of 1000usec sets the minimum timing resolution - I don't want to speed up systick, and I could do with better resolution. I can code a dedicated solution; but a generic solut...
by steved
Sat Nov 10, 2018 9:32 am
Forum: Development and Feedback
Topic: High Speed Tickless timers?
Replies: 4
Views: 166

High Speed Tickless timers?

Thoughts triggered by some work on a 32L071, with systick 1000usec, which is fine for 99% of use. I need to generate one-shot time intervals in the range of 100-5000usec, with a resolution of, say, 10usec. Potentially I could have several timers running in parallel (although that would be unusual). ...

Go to advanced search