Posts Tagged ‘stm32primer’

BeepTimer for STM32 Primer released

Monday, July 26th, 2010

BeepTimer is a successful experiment in Human-Computer Interaction. The question to test was the possibility to control a device using one acceleration sensor and one button. As already mentioned, it is possible even with OS functions intervening (long button press issues a shutdown of the device). The user controls the device by tilting it and by pushing the button. The description of possible gestures is provided on the project page.

GraspForth on STM32 Primer released

Monday, July 19th, 2010

GraspForth is a simple, portable implementation of a Forth system in C. It works every 32-bit architecture GCC compiles for. The STM32 Primer devices were introduced on this blog earlier. These systems were combined in the GraspForth on STM32 Primer project. If you are interested, read the rest of the project’s description.

Contiki on CircleOS

Monday, May 3rd, 2010

Now it is a time to mention the recent release of another port of Contiki OS (it is version 2.2.1, not a recent one).  This port is running on the STM32 Primer development kit. Because both current versions of this development kit run CircleOS, an embedded OS written by Raisonance, who also created the development kits, it was rather convinient to run Contiki on top of CircleOS. This port creates a serial-over-USB connection, as it was done in the VirtualCOM example. On top of this connection a SLIP connection is established, over which the device running can be accessed with usual TCP/IP tools. Currently this port runs on the STM32 Primer version 1 only!

While porting Contiki, a rather grave problem was encountered. It is the relatively small size of the USB data buffer of just 64 bytes. As Contiki scheduler runs only 10 times per second, the highest speed of connection is around 640 characters per second. Currently this problem results in very small IP packet sizes this port can process, for example a ping packet may carry only a few bytes of data.

A possible solution for this problem might lie in boosting the running frequency of the Contiki scheduler. Look at the function MENU_SetAppliDivider() in the CircleOS.

If this problem gets solved, it will be possible to run all applications Contiki provides over a VNC connection, because both versions of the STM32 Primer provide more than enough resources for doing so. Another extension of the current port would be getting it running on the version 2 of the STM32 Primer. This would make another extension possible — an implementation of Contiki File System interface using the filesystem functions CircleOS 3.x has. This, in turn, would enable working with files on a SD card (a feature of STM32 Primer version 2).

The port can be downloaded either from the Raisonance project page or the project page in this blog.