Skip to main content

Questions tagged [exception]

0 votes
0 answers
71 views

Should a Modbus exception function code set the MSB or add 0x80?

Suppose a client initiates a transaction, sending a function code in the range 128..255. This function code is invalid, so the server should respond with an exception. However, to me it seems like the ...
Martin Geisse's user avatar
1 vote
1 answer
525 views

Exception vs interrupt for Cortex-M chip

I'm not sure how to use the terms "exception" and "interrupt" correctly. In the book Embedded Systems with ARM Cortex-M Microcontrollers in Assembly Language and C it says: "...
gbt's user avatar
  • 721
0 votes
3 answers
535 views

What is the impact of unhandled exception on microcontroller peripherals?

I always assumed that when an unhandled ARM exception occurs (i.e segfault), the microcontroller just stops executing code. This assumption comes from debugging observation: most MCU I worked with ...
gbt's user avatar
  • 721
1 vote
1 answer
104 views

Is qNaN easier than trapping on overflow?

According to James Demmel's article, "Faster Numerical Algorithms via Exception Handling", IEEE Trans. on Computers 43 (1994), 983-992, the way a floating-point processor handles overflow can be ...
rwallace's user avatar
  • 563
0 votes
1 answer
149 views

MATLAB - Allowing only numeric input using Exception Handling [closed]

I am trying to handle exceptions gracefully such that when a user enters a character, when a number is expected, he is notified with a custom warning/message. I know that the try, catch has the ...
rrz0's user avatar
  • 1,201
0 votes
1 answer
108 views

Historical Addressing Modes/Conditions that Complicate Page Fault Handling

I was reading this linked question and the following paragraphs stood out to me: For example x86 and 68000 had instructions which access memory two or more times. Each memory access could cause a ...
cr1901's user avatar
  • 504
0 votes
1 answer
2k views

FreeRTOS causes SYSTICKACT (HardFault) exception

I generated a basic project with CubeMX for STM32F4. After compiling and having successful run, I added FreeRTOS manually. Unfortunately, all the time I'm getting HardFault exception with SYSTICKACT ...
VIPPER's user avatar
  • 366
1 vote
2 answers
109 views

DC motor exception

What happens to our DC motor if we stop motion of the rotor with our hand while motor is active? Will the motor burn? Why, what is really happening in that situation?
Junior's user avatar
  • 1,049
3 votes
1 answer
339 views

Memory deallocation exception when using free()

I am currently working on a project that requires some allocation and deallocation of large arrays on a PIC32MX775. I have a dedicated heap memory size of 1500 bytes, which should be more than ...
Thomas Grainge's user avatar
2 votes
2 answers
2k views

arduino IOException

I am an absolute beginner at all things arduino and I am attempting to practice reading the state of a button each time I press it....but I keep getting an IOException. My code is as follows: ...
sisko's user avatar
  • 255
3 votes
1 answer
885 views

MSP430 Illegal Instruction

A few questions here along the same lines, I'm looking at the datasheet for the MSP430x2xx family (I'm using the MSP430F235 FWIW). It says there in section 2.2.4 that "illegal instruction fetch" is an ...
vicatcu's user avatar
  • 23.1k