Questions tagged [interrupt]
Use for questions related to interrupt signals and interrupt handling.
3,154
questions
0
votes
0
answers
10
views
NextJS ISR revalidate doesn't work for static pages when i18n is active
I have faced this problem in my real world project. I will use the blog-starter demo from NextJS documentation for simplicity.
Nextjs version 13.0.3.
I have a main page. I use getStaticProps() with ...
0
votes
0
answers
9
views
Triggering to start kinect recording
Can a trigger or interrupt signal be handled using the usb ports? What I am trying to understand, is if a "message" from any other stream or client or an interrupt from keyboard can act as a ...
0
votes
0
answers
23
views
Question on when to use ISB/DMB in Cortex processors?
I am a bit confused on when/where to apply ISB/DMB instructions. On one hand it's portrayed that operations within the processor will always stay consistent on the otherhand it indicates things can be ...
0
votes
1
answer
99
views
+50
A single "next" command of gdb when debugging linux kernel is always jumping to unpridicted location
When I am debugging linux kernel on a SMP CPU, pressing "next" command sometimes jumps to unpredicted location, like other function on another CPU core. Maybe during the duration of "...
0
votes
0
answers
10
views
Can't install JetsonGPIO library on Jetson TK1
I'm following the steps written here: https://github.com/pjueon/JetsonGPIO to install the library, because I need it to use the GPIO as interrupt.
Everything goes well until step 4, when I have to ...
0
votes
1
answer
26
views
Qt qml - how can I handle the interrupt when the interrupt occurs in the MouseArea?
MouseArea {
drag.target: targetA
drag.minimumX: 22
drag.maximumX: 40
drag.maximumY: 22
drag.maximumY: 50
onPositionChanged: {
console.log("onPositionChanged.....
0
votes
1
answer
31
views
Stopping Python Cell and still getting the data
I did a huge mistake in my while loop, which is scrapping data from some websites. I just figured it out after running it already for 2h. Is there a way that I can freeze/ stop the running cell and ...
0
votes
0
answers
35
views
How do I prevent an ISR loop?
I am writing an OS to run on QEMU, and I have defined custom ISR's, however, when I trigger interrupt using
__asm__ ("int $0");
It is handled correctly, but when I do:
int a = 0;
int b = 5;
...
1
vote
1
answer
44
views
any pin change interrupt in my avr microcontroller cause a micro reset
I'm coding with Microchip studio for an ATmaga644p microcontroller.
I just want to activate pin change interrupt on my microcontroller for pinA.1, A.2, A.3.
But the problem is that when I activate it, ...
0
votes
3
answers
40
views
How can I link Systick_Handler() to the exception of Systick?
I am doing some programming on Arm Cortex M0 by C without any built-in libraries. I want to make a timer based on Systick and there is my code.
void systick_enable(void){
SYSTICK_BASE -> CSR = ...
0
votes
0
answers
23
views
When two UART communication occurs using same controller at same baud rate one USART which is in polling mode in while loop stops [closed]
I am using two UARTs of STM32F302R8TX controller for 485 communication. In one 485 communication microcontroller acts as master where it reads data from 8 slaves hence I have kept that communication ...
1
vote
1
answer
41
views
Cortex M4 SVC code appears to always pass in 255 for the SVC number
I've tried following the documentation to make an SVC instruction work. From the Arm documentation here my SVC_Handler function is as they specify:
void SVC_Handler(void)
{
__asm(
".global ...
1
vote
0
answers
22
views
Interrupt a recvfrom() call in Python using a specific key press
I have a while loop in Python calling a function that is expecting to receieve a message from an UDP client with a recvfrom() call.
I would like to know if it is possible to interrupt the message ...
0
votes
3
answers
54
views
avr128db48 USART_RXC_vect interrupt not working
#define F_CPU 4000000
#define BAUD_RATE(BAUD) ((64.0*F_CPU)/(BAUD*16.0))
#include <avr/io.h>
#include <avr/interrupt.h>
volatile uint8_t a;
volatile uint8_t b;
void UART_sw_write(char c)
...
0
votes
1
answer
45
views
interrupt inside struct in Rust
I'm new in Rust embedded and I want to use the #[interrupt] macro inside a struct.
In the following example, I configure 2 GPIO as input and enable interrupt:
use core::cell::RefCell;
use cortex_m::...
0
votes
0
answers
15
views
Why does my clock interrupt handler jump out of infinite loops
This is a piece of code that implements the operating system in Bochs+FreeDOS, and the program enters protected mode from real mode, where my focus is on writing clock interrupt functions in protected ...
0
votes
0
answers
15
views
attachInterrupt not working in library code
I want to read data from flow sensor.I'm using yf s201 flow sensor. I find code in network an use that. Code is working but I want a make libray.So I make a cpp and h file. But the code "...
0
votes
0
answers
63
views
I2C is not sending a repeated start
I encountered a problem. I have an STM32F103C8T6 controller and I am trying to implement I2C communication using interrupts. The problem is that when I need to send a repeated start, it doesn't happen....
0
votes
1
answer
17
views
STM32U5 Alarm IT not clearing
I have a problem with clearing the RTC alarm IT. I am using STM32U585 MCU and RTC alarms that are set to specific time. Date is masked, only time is used.
Here is the code to set up the alarm:
...
1
vote
0
answers
49
views
How can I interrupt a Timer which runs a function continuously in Micropython?
I am running a Timer periodically to read from multiple ultrasonic sensors. This is done in Micropython on a Raspberry Pi Pico W.
The time this read takes is dependent on the distance of the nearest ...
0
votes
0
answers
57
views
Measuring 2 Frequencies simultaneously with Input Capture on STM32
i want to read out 2 rectangular Frequencies on a STM32L151C8TxA in a range of 0-70 Hz and adjust a PWM according to this 2 Frequencies. The first frequency should be recorded by Timer 2 on Channel 4 ...
0
votes
2
answers
27
views
how to deal with a ISR on atmega324pb?
I have this problem:
I want to make a difference between the triggers (BTN0 and BTN1 - pins for this 2 buttons are in the same Interrupt vector - PCINT2). How could I know who triggers the ISR?
this ...
0
votes
0
answers
40
views
WFI seems not work as expected in ARMv7 plus RTOS
I am working on ARMv7 cortex-a7 (dual-core) with an RTOS, now I am trying to use WFI instruction in IDLE task.
I asked the vendor of the cortex-a7 if WFI/WFE can work or not, and got the answer is '...
1
vote
1
answer
86
views
What is INT 0x29 (29h, 41) on Windows x86-64?
What does this x86-64 assembly code do? What is interrupt 41?
MOV ECX, 0x7
INT 0x29
0
votes
0
answers
61
views
Getting spurious or garbled ISRs upon startup of x86 OS
I have been working on an x86 OS using GRUB-multiboot as of late and have run into a problem concerning the IDT (or more specifically ISRs). Upon starting up my OS, an ISR is generated and then no ...
1
vote
1
answer
35
views
When executing assembler code, the error "this interrupt is not defined yet" occurs
When I run the written code, the error "this interrupt is not defined yet, it is availabe for custom functions. you can define this interrupt by modifying interrupt vector table refer to the list ...
0
votes
0
answers
25
views
Monitoring_track timeout_Simulation of servers processing batches
I want to calculate Average waiting_time and Average sojourn time, in which waiting time is the time from when a customer arrives until the customer is served and sojourn time is the time from the ...
0
votes
0
answers
37
views
trying to recive a data using stm32 if the data starts with letter 'a' but thats not happening
uint8_t Rx_data\[10\];
static void MX_GPIO_Init(void);`
static void MX_USART2_UART_Init(void);
HAL_UART_RxCpltCallback(UART_HandleTypeDef huart2)
{
if(Rx_data[0] == 'a')
{
...
0
votes
1
answer
59
views
Simulating a system of batching jobs with interrupting set-up/switch-on times using Simpy
I am new to Simpy and have a problem with combining batching jobs and interrupting set-up time. So could you please help me?
I would like to create a system with servers that need time to set up ...
1
vote
0
answers
66
views
Only one IRQ comes in upon initializing IDT
I am trying to work on an x86 operating system and coding it in C. My OS uses GRUB-Multiboot and thus far I have been able to get a GDT working.
I am currently working on my IDT and have run into a ...
0
votes
0
answers
24
views
What happens when a tomcat server's request thread interrupt flag is set
i was trying to understand what happens when a tomcat request thread is interrupted.
So let's say client sends a request to my tomcat server and some blocking operation(like future.get()), wrapped ...
3
votes
0
answers
72
views
std::atomic<> for avr-gcc
I wonder if it would be possible to write std::atomic<> for the use on the AVR µC. The
__atomic_xxx() built-ins are unfortunately not implemented in avr-gcc.
As I understand basic load/store of ...
0
votes
0
answers
40
views
Is Software Generated Interrupt (SGI) an synchronous exception on ARMv8?
I am trying to write a bare metal application on an ARMv8 board. When I signal a SGI, the exception type of the SGI is synchronous while I am expecting it to be either FIQ or IRQ. Can I config it to ...
1
vote
1
answer
71
views
VMX virtual apic interrupt
How to send external interrupts to guest when following enabled:
Use TPR shadow
Virtualize APIC access
APIC register virtualization
Virtual-interrupt delivery
Acknowledge external interrupts
External ...
0
votes
0
answers
40
views
STM32F0 - How long do timers take to set count value?
I've got an issue with STM32F0 timers. I'm doing everything register level and am disabling a timer and zeroing the count. After this I re-enable external interrupts and restart the timer on receipt ...
0
votes
1
answer
82
views
Modify the example named UART_HyperTerminal_IT to enable UART reception interrupts on STM32F4?
I'm developing a project with STM32F4 and I need to enable the UART6 receive interrupt. I have used STM32CubeMX to enable the UART6 and in the STM32CubeMX I have enabled the NVIC USART6 global ...
1
vote
1
answer
19
views
How is ARM PPI is triggered and handled by an SMP ARM system?
I am working on an ARMv7 project, which has 2 cores.
According to ARM GICv2 spec. there are 16 PPIs for each core.
So my understanding is the PPI is local to each ARM core, and it should be signaled ...
0
votes
1
answer
66
views
"interrupt function contains function calls" gcc error
In my code I get this
"error: interrupt function contains function calls: foo"
when compiling with the toolchain: riscv32-unknown-elf-gcc (gcc version 5.2.0 (GCC))
but not with this ...
1
vote
0
answers
42
views
Can I get an interrupt/segfault on int overflow on either x86-64 or ARM?
I have two toy assembly programs. x86-64 and ARM8
I'd like to write a loop that adds 1<<62 into an accumulator and overflow the int (should be 5 or less iterations depending if it overflows on ...
2
votes
1
answer
68
views
How to get GPS Data when switch is pressed in Atmega328p
So I am working on getting the gps data when the button is pressed using external interrupt. My problem is , it is working without the external interrupt but when I added it, it's not getting the data....
-1
votes
1
answer
43
views
Interrupt is sometimes adding two (repeated) elements to array instead of one
Im trying to write code that records LED's when a button is pressed, stores them into an array, and when that array is 5 long, it stops cycling through LED colours and plays the recorded pattern. It ...
0
votes
0
answers
45
views
Can't get the analogue watchdog to trigger an interrupt on the DFSDM peripheral of a STM32L475
I have an AMC1306 current shunt modulator feeding 1-bit PDM data at 10 MHz into a STM32L475. Filter0 takes the bit stream from Channel0 and applies a sinc3 filter with Fosr=125 and Iosr=4. This ...
0
votes
0
answers
48
views
Clearing or preventing pending interrupts in an ISR
Summary:
An ISR necessarily causes its own trigger pin to toggle randomly multiple times. These toggles (during the ISR) should be ignored, but aren't, and result in another interrupt to be set as ...
0
votes
0
answers
36
views
System panic when set multiple '1' in GICv2 GICD_ITARGETSRn in ARMv7
I am working on a AliOS-Things project with an ARMv7 SOC (2cores).
And now I want to change GICD_ITARGETSRn to distrubite one interrupt to multiple cores by setting 011b, but the system will crash ...
0
votes
1
answer
85
views
Send and read the button state via CAN bus using Arduino
I'm intending to read the change of button input using 2 separate Arduino that connected via CAN bus (MP2515). The transmitter will connect to button with internal pulldown resistor, that pin will act ...
1
vote
1
answer
119
views
C++ volatile Interrupt ISR DMA
I know there is a lot of confusion regarding volatile.
So I have 3 real life examples I'm not sure about the correct usage of volatile.
1) DMA Stream
The hardware writes directly to data with DMA.
...
0
votes
1
answer
37
views
Configuring 256 different priority levels for each interrupt in ARM Cortex-M4
I am working with ARM Cortex-M4 interrupts. I had enabled the core to handle a maximum of 240 interrupts. I have also enabled the interrupts. But while trying to set the priority of the interrupts, I ...
0
votes
1
answer
32
views
How to make children send info on a timer?
I need to create a project where a main program creates a given number of child processes and each child launches exec, there are 2 type of child processes and they comunicate using message queues.
...
0
votes
1
answer
134
views
ESP32 Highest Priority Interrupt To Grab Timer Value In Assembly
I'm trying to install a GPIO interrupt on ESP32 that records a once per second pulse as precisely as possible. The other running processes (on both processors) delay my normal C based interrupt (...