Timers in Montavista Linux using Power PC
I have to design a real time system with a sub 10 ms accuracy using
Montavista Linux. There will be an interrupt generated every 1 ms from
Is it possible to set the Montavista Kernel HZ variable to 1000 (1 ms
interrupt)? So what I am asking is if the tick in the Montavista
Kernel can be redefined …
I need to design Timers – I need to decide whether I will be using the
kernel timers – or not.
Additionally how do I need an event generated when a timer interval of
(1/2) ms expires – Is it possible to do with a 1 ms timer interrupt ?
Thanks a million
Related Forum Messages
Hello, All! Few days ago I downloaded preview kit from MontaVista web-site. This kit contains toolchain, utilities (like busybox etc.) and so on. My platform is AMD Alchemy AU1550 (MIPS32). Also I have linux kernel sources supplied by AMD for their platform. So I was doing everything according to documentation: 1) install toolchain from montavista 2) build kernel from AMD 3) etc. First stage was OK, but while doing second one I've found that toolchain from MontaVista doesn't have essential binary - mips_fp_le-nm, and I suppose many ...Hello, All! RedHat 9.0 MontaVista Linux Professional Edition 3.1 kernel 2.4.20_mvl31 I've got a problem with using DevRocket. After creating kernel project, for example, all stuff is located in the $HOME/montavista/devrocket/workspace/myproject. According to documentation, while making project, the sources of linux kernel should be copied to my project's directory - nevertheless it don't happen. I do it by myself, using the command "Import" - I'm using the kernel supplied with MVL distribution. Further I'm trying to compile the kernel. But it's done only if sources are located in $HOME/montavista/devrocket/workspace/myproject - it's not comfortable. And in case I create seperate directory, like $HOME/montavista/devrocket/workspace/myproject/linux and put the sources inside that dir. - compilation doesn't happen at all, ...Hello, I'm having a problem with using the timers on AT91SAM9263-EK with linux kernel 2.6.27. The problem is that when I write to the timers the system starts to do strange things, the touch screen stops to work. And the other problem is that I can`t register an interrupt for the timers, because it is used by the kernel. Can some one help me? Thanks in advance.Hi all, has some one before experience on how to program the TC1 in AP7000 under Linux in a Loadable Module, and how to programm an Interrupt service routine in case of a Compare match event. i must use the hardware timer, because i must read an external Chip every 100 micro second, and i think this will only be reached when i use the TC in the AP7000-chip and no hrtimer, because i think that the last one will poll only when the system tick is occured, so no more then 1 milli second at a time (HZ = 1000) in ...Hi, I'm writing a little "kernel" for a small microprocessor. Right now it just implements tasks, and does scheduling. That is , I have a timer fire every ms in which the interrupt handler sets up the kernel stack and pc, and the "kernel" merly checks if the current task has reached its timeslice. Now I want to do some abstractios over events.For now interrupts, but have no idea what that takes. One of the interrupts signals the press of a button, I want tasks to wait on such an event. Whats the basis of doing that ? I'd like the interrupt handlers as small as possible. One solution ...We are getting ready to start a new product and we are leaning to ThreadX for the RTOS (our second choice in montavista) . We want to base our architecture off of PC/104. I wanted advice on a SBC that is PC/104 (or has a PC/104 bus on it) that is very easy to get ThreadX, NetX and FileX up and running on. The board needs to have Ethernet (that NetX will work with) and USB. Order of preference for processors are ARM, PowerPC and 486. I asked EL this question and they said "There are so many PC104 boards out there ...I use 8051's RTC timer in order to keep track of current time. Every time the timer expires, I increment a variable tick by 1, and when tick equals NUMBER_OF_TICKS_IN_SECOND I increment current time by 1 second (and clears tick). My problem is finding the exact value of NUMBER_OF_TICKS_IN_SECOND for the time ticking to be accurate. Currently, I have an error of 3 minutes every 10 hours. Is there any efficient to find the correct value? Moreover, are there any tips for reaching high accuracy of time ticking? For example, currently some of the timers constantly operate and some of them sometimes operate and sometimes not. Is ...What I mean is, are there timers that I can set an interval for, enable or disable, and have an event fire (and handled through an event handler) when the timer expires? Exactly like a timer gadget in the grown up .net If so can someone point me to an example. Regards RohanHello everybody I need to write my own uart driver (kernel module) for AT91SAM9260. How can I shutdown linux uart driver at the runtime to startup my driver without any collisions? I wrote kernel module and compiled linux kernel without uart's supply, but when I allow TXRDY interrupt in US_IER register, linux is hunging for ever. But there is a silence on the uart line. Maybe I just can run my kernel module instead of module that compilled with kernel and maybe I don't need to compile kernel without uart's supply? Help me please) My major target is to do all uart routines ...Has anybody created a library which allows I2C to run without using the interrupts? Simply polling the TWINT bit instead of it setting off an interrupt? I'm using two timers already for timing sensitive operations and would love it if I could run I2C in the background, so-to-speak. edit: More questions as I think of them 1. Would it be possible to set the arduino to us clock stretching while acting as slave receiver? I'm thinking just setting the TWINT interrupt routine to set to the clock line to open collector should do it. 2. When an interrupt occurs the global ...Hi, I would like to take advantages of the hardware TWI (I2C) functionality, which is available on the AT91SAM9G20. Therefore, I would like to write a Linux kernel module for it. However, when reading the documentation in the Linux kernel source tree regarding TWI (Linux kernel 22.214.171.124), I see some "worrying" comments. To start with, in the file /linux-126.96.36.199/drivers/i2c/busses/Kconfig, I read the following: Quote:Hi forum, as a newbie to linux on ARMs I learned a lot about the architecture of raspberrypi over the last few weeks and I'm really looking forward to my first board. While waiting for the board I tried to compile a kernel today and prepare an image. My plan is to start with the "official" kernel from kernel.org, patch it and crosscompile it (all on my Ubuntu system). I got the kernel sources and found a patch for raspberrypi on github. So I copied them via git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitgit clone https://github.com/simoncadman/Raspberry-Pi-Kernel-Patch.git However, when I try to patch the kernel, I get various messages ...So I am having a small problem, and I believe it is no problem at all, just BASCOM`s simulator acting funny. I have two timers, T1 and T2, that are configured to output an interrupt at 1hz and 14.4KHz respectively. In simulation, if I stop one or the other timer, everything is peachy, each running timer behaves perfectly fine. However, if I enable both timers at the same time, I still get the 14.4KHz interrupt, but the 1Hz one stops firing completely. Both ISRs are very short. I believe this is just an artefact of the simulator's limited timers support, ...I'm using ARM Cortex-R4 for my system. I'm little bit confused about which linux should I go for - Standard Linux Kernel with MMU disabled or uCLinux. On an eval board, I have run the standard kernel compiled with MMU disabled. I used cramfs filesystem which available on the official ARM website. After the kernel boots up, I receive the shell but I couldn't do much experimentation as I found that most of the time, the shell stops responding (particularly when I press for auto-completion). So, I'm still not sure whether MMU less kernel shall run smoothly if I use ...I have succesfully built 2.6.23.atmel.5 kernel and it is running well in NGW100. (it is patch with ISI patches from avr32linux.org) But when i used the same linux kernel on AP7000 OEM from ICnova, the uboot is able to read the kernel image, but does not continue to display the booting sequences message. Is there any setting i need to edit? I also curious if the ISI patch is compatible to the current linux kernel. :-SHi: System Configuration: Hardware: Custom Board based on the AT91SAM9260EK with Dataflash AT45DB642 on SPI0 and NPCS1 SD Card (MCI Enabled) at NPCS0 Software (stored in the Dataflash): AT91 Bootstrap U-Boot 2009.08 Linux 188.8.131.52 Problem: We require to upgrade the Linux Kernel remotely via TCP/IP (but don't have access to a local TFTP server). Application is downloaded from a remote server. It seems that once Linux is up an running, there is no way to access the Dataflash to update the kernel. Questions: 1. Is it possible to update the Linux Kernel with the described system (hardware/software)? 2. Is there any way to access the Dataflash from Linux, so that the kernel can be ...Hi friends, I have ported Linux-2.6.30 to AT91SAM9261-EK, I have compiled my kernel with following option enabled 1. in Kernel Hacking sub-menu and select these options: [*] Kernel debugging lt-- not sure about this one [*] Compile the kernel with debug info [*] KGB: kernel debugging with remote gdb ---gt[*] KGDB: use kgdb over the serial console After doing this i have flashed the kernel to SAM board, But after booting no change, My target board is not waiting for GDB connection from Host. Please any one can help me. Is there any KGDB patch for Linux 2.6.30 for AT91SAM9261. Tell me what all the things ...Hello. I'm using an AT91SAM9GS45-EKES board and Linux Kernel 2.6.36. I'm having problems to have the MMC adaptor working on this kernel. The original kernel that came with the board was 2.6.30 and the MMC worked just fine. The reason I changed to 2.6.36 is that I need to use USB Wi-Fi adaptors and the Modules for these adaptors only exists on 2.6.36. I noticed that for this specific board kernel 2.6.33 has been used too. Unfortunately this kernel does not have the modules I need for USB Wi-Fi adaptors. Reading dmesg dump I noticed that MMC won't even be detected. On kernel ...Hi Friends i am using dspic30f6010A i want to know how to calculate the timer value for different timers. dspic30f6010A having 5 timers i want to know how to differ the timer value for each timer. In my project i am using 10Mhz external Crystal oscillator,prescaler value 256 , for timer 4 manually i am putting the period register value 9765 for 1 seconds interrupt . I think it is correct for 1 seconds interrupt period, but mathematically i want to know how it is correct how to calculate interrupt period for different timers please help me friends please. Please ...Here's something... I'm using the [strike]LCD[/strike] TFT Touch Shield on a Mega 2560, and I need a 62 ms timer interrupt, as I've attached a 30-pin SIPP RAM stick to the Mega (a la the 8-bit microprocessor Linux system) and it needs to be refreshed ever 62ms. The overall goal is to make the Mega emulate not a ARM system but Notch's DCPU-16 from his up-coming game 0x10c (I'm using the SIPP instead of four banks of 32Kbyte SRAM because I have it around.) That said, a bit of research says that any timers will interfere with the LCD Shield, because it ...
- MontaVista PreviewKit problems
- MontaVista Linux & DevRocket
- Timers on 9263ek with linux
- How to Programm TimerCB1 and his interrupt in loadable Module ?
- Help with small kernel..
- ThreadX and PC/104
- Clock accuracy
- Are there timers on the Netduino Plus?
- Linux uart driver for AT91SAM9260
- I2C without interrupts?
- AT91SAM9G20: TWI + Linux
- Patch for latest kernel on kernel.org
- Timer interrupt issue: reality or simulator broken?
- Running MMU less Linux on Cortex-R4
- Linux Kernel 2.6.23.atmel.5 not displaying during booting(ICnova AP7k)
- How to upgrade remotely kernel located in Dataflash
- Using KGDB on AT91SAM9261
- MMC Problem on Linux Kernel 2.6.36
- Dspic30F6010A Timer Calculation
- TFT Touch Shield & Timers