Search found 33 matches

by wgreiman
Sun Dec 22, 2013 7:58 pm
Forum: Development and Feedback
Topic: [INFO] ChibiOS 3.0 Status
Replies: 19
Views: 5135

Re: [INFO] ChibiOS 3.0 Status

I downloaded ChibiOS 3.0 from GitHub yesterday. I really like how nil is now integrated. I found a possible problem with serial in the NIL-STM32F051-DISCOVERY demo. I modified this line to write more text. chnWrite(&SD1, (const uint8_t *)"Hello World!\r\n", 14); If I write more than 17...
by wgreiman
Sat Jul 20, 2013 11:57 pm
Forum: ChibiOS/NIL
Topic: An Arduino Library for Nil RTOS
Replies: 18
Views: 15014

Re: An Arduino Library for Nil RTOS

I have ported the latest Nil RTOS files to Arduino as NilRTOS20130720.zip http://code.google.com/p/rtoslibs/downloads/list . Here is a post with more information http://forum.arduino.cc/index.php?topic=178532.0 . I have included an SD FAT library I wrote for Arduino, a Nil friendly I2C library, and ...
by wgreiman
Fri Jul 19, 2013 9:32 pm
Forum: ChibiOS/NIL
Topic: Updates in Nil RTOS
Replies: 2
Views: 2982

Re: Updates in Nil RTOS

I am using the updated files for a new version of my Arduino library. I am having two problems. The first is with Semaphores. If you wait on a semaphore that has a count greater than zero, the count is not decremented. Adding a line to decrement the count at the end of nilSemWaitTimeoutS() seems to ...
by wgreiman
Thu Jan 24, 2013 9:56 pm
Forum: ChibiOS/NIL
Topic: [FUN] Preliminary results
Replies: 36
Views: 16754

Re: [FUN] Preliminary results

I think there needs to be two macros that return nil.systime, nilTimeNow() and nilTimeNowS(). For the 8-bit AVR, fetching the 16-bit time isn't atomic when interrupts are enabled. The following function didn't work correctly until I added nilSysLock() and nilSysUnlock(). /** * @brief Delay the invok...
by wgreiman
Thu Jan 24, 2013 5:21 pm
Forum: ChibiOS/NIL
Topic: An Arduino Library for Nil RTOS
Replies: 18
Views: 15014

An Arduino Library for Nil RTOS

I have posted an Arduino Library for Nil RTOS as NilRTOS_Preview20130124.zip http://code.google.com/p/rtoslibs/downloads/list . This system seems ideal for small chips like the ATmega328. Nil RTOS is extremely simple so it is great for new users. I have written a number of examples and a guide, &quo...
by wgreiman
Thu Jan 24, 2013 1:41 pm
Forum: ChibiOS/NIL
Topic: [FUN] Preliminary results
Replies: 36
Views: 16754

Re: [FUN] Preliminary results

Here are some patches I made to nil to fix what I think are bugs. These are temporary fixes, I know there are better ways to fix these problems. The patches are between an "#if WHG_PATCH" and an "#endif". Ignore "#if WHG_MOD", these are changes to support porting to an ...
by wgreiman
Wed Jan 23, 2013 1:29 pm
Forum: ChibiOS/NIL
Topic: [FUN] Preliminary results
Replies: 36
Views: 16754

Re: [FUN] Preliminary results

Giovanni, Thanks for the sleep fixes. I have now a preliminary version of an Arduino library using Nil RTOS. I have written a number of demonstration and test programs. I am very excited about Nil as a first RTOS for Arduino users. I have ported ChibiOS/RT and FreeRTOS to Arduino and a number of peo...
by wgreiman
Thu Jan 17, 2013 5:17 pm
Forum: ChibiOS/NIL
Topic: [FUN] Preliminary results
Replies: 36
Views: 16754

Re: [FUN] Preliminary results

It appears there is an inconsistency in how nilSchGoSleepTimeoutS is used. In some places the second argument is used as an interval and other places as the system time. nilThdSleepUntilS is defined this way and assumes the second argument of nilSchGoSleepTimeoutS is the system time: #define nilThdS...
by wgreiman
Thu Jan 17, 2013 2:30 pm
Forum: ChibiOS/NIL
Topic: [FUN] Preliminary results
Replies: 36
Views: 16754

Re: [FUN] Preliminary results

I have been playing with nil on an Arduino. It appears that nil doesn't do a reschedule in nilSysTimerHandler. I was running two periodic threads, thread1 with a short period and thread2 with a long period. Thread1 was first in the task table but it was not rescheduled when its sleep period expired....
by wgreiman
Sat Sep 29, 2012 3:12 pm
Forum: Kinetis Support
Topic: Port for Freescale Kinetis?
Replies: 7
Views: 4506

Port for Freescale Kinetis?

Has anyone explored porting ChibiOS to Freescale Kinetis Cortex M4 processors? I am looking at this "Teensy 3.0" board http://www.kickstarter.com/projects/paulstoffregen/teensy-30-32-bit-arm-cortex-m4-usable-in-arduino-a . I have used ChibiOS on AVR Arduino boards with the Arduino IDE by p...

Go to advanced search