rtos

Eclipse 環境中的 NuttX 編譯和除錯

北城以北 提交于 2019-12-10 06:37:31
#01 : NuttX 是什麼 ?? NuttX Real-Time Operating System NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 32-bit microcontroller environments, the primary governing standards in NuttX are Posix and ANSI standards. Additional standard APIs from Unix and other common RTOS's (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()). NuttX was first released in 2007 by Gregory Nutt under the permissive

Prototyping and simulating embedded software on Windows

落爺英雄遲暮 提交于 2019-12-09 11:08:37
问题 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

How can CAS simulators like PTLsim achieve cycle accurate simulation of x86 hardware?

混江龙づ霸主 提交于 2019-12-09 03:42:14
问题 Can somebody enlighten me how does CAS software like http://www.ptlsim.org/ work? How do they achieve cycle accuracy if there is neither information how many cycles are used per instruction nor CPU branch prediction logic is known? Or is everything available over NDAs? I suppose they probably can be pretty accurate with caches being hit or missed (maybe I'm wrong but I think it's easier to predict the internal algorithm), but without knowledge how pipelining and superscalarity are implemented

How RTOS does task switching from interrupt

我是研究僧i 提交于 2019-12-07 01:15:56
问题 Suppose there is two task running TASK_A and TASK_B. While TASK_A is running an interrupt occurred and a context switch to TASK_B is needed. While inside ISR, TASK_B should not be directly jumped since it is still in ISR and have'nt returned yet (for eg: RETI is not executed). If normally returned from ISR it will as usual go back to the TASK_A's last program counter. So the RTOS has to get out of the ISR and as soon as it is out of the ISR it has to do a context switch to TASK_B. Instead of

What is the best way to start programming with Real Time Linux?

时间秒杀一切 提交于 2019-12-06 08:51:48
问题 Although I have implemented many projects in C, I am completely new to operating systems. I tried real time linux on Discovery board (STM32) and got the correct results for blinking LED but I didn't really understand the whole process since I just followed the steps and could not find whole description for each step on the internet. I want to implement scheduling on real time linux. What is the best way to start? Any sites, books, tutorials available? Complete RTLinux process description will

How RTOS does task switching from interrupt

两盒软妹~` 提交于 2019-12-05 05:07:40
Suppose there is two task running TASK_A and TASK_B. While TASK_A is running an interrupt occurred and a context switch to TASK_B is needed. While inside ISR, TASK_B should not be directly jumped since it is still in ISR and have'nt returned yet (for eg: RETI is not executed). If normally returned from ISR it will as usual go back to the TASK_A's last program counter. So the RTOS has to get out of the ISR and as soon as it is out of the ISR it has to do a context switch to TASK_B. Instead of going back to TASK_A how does a RTOS get back control as soon as it exit ISR. In case of switching from

why are RTOS coded only in c?

久未见 提交于 2019-12-05 01:42:01
问题 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? 回答1: 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. 回答2: Real time systems can be programmed in other

Achieving realtime 1 millisecond accurate events without suffering from thread scheduling

血红的双手。 提交于 2019-12-05 01:15:58
问题 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

Quantifiable differences between RTOS kernels for small ARM microcontrollers [closed]

╄→гoц情女王★ 提交于 2019-12-04 12:59:10
There are many different RTOS available for microcontrollers. I am specifically looking for RTOS that support the ARM Cortex M processors. Also, I am not interested in closed source solutions. Attempting to compare the relative merits of each RTOS from websites and mailing lists seems pretty difficult as they mostly seem to have equivalent features and do the same thing. The real differences become apparently only after trying to use each RTOS for some tasks. I know this is somewhat subjective question and probably hard to answer - but there must be many people out there who have actually

Who schedules the scheduler in OS - Isn't it a chicken and egg scenario?

喜欢而已 提交于 2019-12-03 19:14:54
问题 Who schedules the scheduler? Which is the first task created and how is this first task created? Isn't any resource or memory required for it? isn't like a chicken and egg scenario? Isn't scheduler a task? Does it get the CPU at the end of each time slice to check which task needs to be given CPU? Are there any good links which makes a person think and understand deeply all these concepts rather than spilling out some theory which needs to be byhearted? 回答1: The scheduler is scheduled by an