rtos

Achieving realtime 1 millisecond accurate events without suffering from thread scheduling

有些话、适合烂在心里 提交于 2019-12-03 17:11:02
Problem I am creating a Windows 7 based C# WPF application using .Net 4.5 , and one its major features is to call certain functions that interface with custom hardware with a set of user defined cycle times. For example the user might choose two functions to be called every 10 or 20 milliseconds and another every 500 milliseconds. The smallest cycle time the user can choose is 1 milliseconds. At first it seemed that the timings were accurate and the functions were called every 1 millisecond as required. But we later noticed that about 1-2% of the timings were not accurate, were some functions

State machine versus RTOS for microcontrollers

梦想与她 提交于 2019-12-03 16:27:48
I stumbled across a free state machine tool . This appears to be for programming embedded systems graphically. By doing so, the author claims that the resulting code is more maintainable than if an RTOS had been employed. This tool is based on UML, which is nice to know, but has a steep learning curve. I would like to know what some of the more experienced programmers here think of this tool. I am developing an embedded application for the LM3S5P36 microcontroller. TI has an IDE called Code Composer Studio (CCS). I have not got into CCS yet, but I doubt it has the cool feature of being able to

why are RTOS coded only in c?

旧城冷巷雨未停 提交于 2019-12-03 16:16:33
Is it necessary to code RTOS in C language always? Why can't that be coded in java or some other technology..?? Is that because of the absence of pointer concept in java? Garbage collection is the big reason against Java being Real Time. JIT is another, but it could be overcome. In general though, C being effectively portable assembly gives very predicable run-time performance, and that's essential for reliable real-time execution. Real time systems can be programmed in other languages too. Java has a Java RTS System for example. Contrary to other answers, there is reasonable amount of work on

Prototyping and simulating embedded software on Windows

本秂侑毒 提交于 2019-12-03 13:55:30
I am looking for tools and techniques for prototyping (virtual prototyping), simulation, and testing of deeply embedded C code on desktop Windows, including building realistic embedded front panels consisting of buttons, LEDs, and LCD displays (both segmented and graphic). I'm specifically interested in a possibly low-level approach, using pure C code and raw Win32 API rather than MFC, .NET/C#, vxWidgets or Qt. I'd also like to use free development tools, such as Visual C++ Express with Platform SDK and ResEdit for editing resources. I'm looking for code examples to render graphic LCDs (from

How do Real Time Operating Systems work?

馋奶兔 提交于 2019-12-03 03:10:14
问题 I mean how and why are realtime OSes able to meet deadlines without ever missing them? Or is this just a myth (that they do not miss deadlines)? How are they different from any regular OS and what prevents a regular OS from being an RTOS? 回答1: Meeting deadlines is a function of the application you write. The RTOS simply provides facilities that help you with meeting deadlines. You could also program on "bare metal" (w/o a RTOS) in a big main loop and meet you deadlines. Also keep in mind that

What are the five most commonly used real-time operating systems? [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-03 02:52:09
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I am looking for mostly used 5 Real-Time operating systems. I searched on Google and Wikipedia has a list of RTOSs, but they are in random order and also I am not convinced that all of them really operating real-time. One more question: can we include Windows 7? When we set

What are the five most commonly used real-time operating systems? [closed]

随声附和 提交于 2019-12-02 16:50:49
I am looking for mostly used 5 Real-Time operating systems. I searched on Google and Wikipedia has a list of RTOSs, but they are in random order and also I am not convinced that all of them really operating real-time. One more question: can we include Windows 7? When we set priority of 5 tasks, for example to realtime. Real-time operating systems that I have come in contact with, in order of (subjective) impact: VxWorks QNX eCos RTLinux Especially VxWorks has a long history in critical applications - for example, in cars and various NASA space platforms. It is however neither free nor open

How do Real Time Operating Systems work?

感情迁移 提交于 2019-12-02 16:40:03
I mean how and why are realtime OSes able to meet deadlines without ever missing them? Or is this just a myth (that they do not miss deadlines)? How are they different from any regular OS and what prevents a regular OS from being an RTOS? Benoit Meeting deadlines is a function of the application you write. The RTOS simply provides facilities that help you with meeting deadlines. You could also program on "bare metal" (w/o a RTOS) in a big main loop and meet you deadlines. Also keep in mind that unlike a more general purpose OS, an RTOS has a very limited set of tasks and processes running.

Atomic operation in multithreaded embedded software

别说谁变了你拦得住时间么 提交于 2019-12-02 03:40:33
I have been developing an RTOS based embedded software in C and I have encountered a problem regarding shared resource access from several threads. I have two problems. The first one is seting and getting a value of state variable in state machine. Below is the header file for StateMachine "object": typedef enum{ STATE_01, STATE_02, STATE_03, STATE_04 }state_e; // state machine instance typedef struct{ state_e currState; }StateMachine; extern state_e GetState(StateMachine*); extern void SetState(StateMachine*, state_e); The implementation of the access methods is following: state_e GetState

FreeRTOS configTICK_RATE_HZ

孤人 提交于 2019-12-02 03:22:37
问题 I am using an MSP430f5438 with version 5.4 of FreeRTOS. I am having a funny problem that I can't figure out. Basically, when I set configTICK_RATE_HZ to different values, the LED blinks faster or slower; it should stay the same rate. It blinks slower the higher i set configTICK_RATE_HZ, and faster when I set TICK_RATE lower. vTaskDelayUntil( &xLastFlashTime, xFlashRate ); is such that the LED should only blink once a second no matter what the configTICK_RATE_HZ is. I stepped through and