Questions tagged [exception]
10 questions
3
votes
1 answer
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 interrupt source for the Reset vector. Then…

vicatcu
- 22,499
- 13
- 79
- 155
3
votes
1 answer
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 sufficient and I have previously had the system…

Thomas Grainge
- 39
- 4
2
votes
2 answers
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:
int ledPin;
int button;
int buttonVal;
void setup(){
…

sisko
- 255
- 1
- 2
- 9
1
vote
1 answer
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:
"Exceptions are the interrupts that come from the processor core. These…

gbt
- 671
- 6
- 17
1
vote
1 answer
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 important to the speed of operations that are not…

rwallace
- 559
- 3
- 11
1
vote
2 answers
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
- 1,009
- 4
- 23
- 44
0
votes
3 answers
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 stopped in an assembly routine when segfaulting.
As…

gbt
- 671
- 6
- 17
0
votes
1 answer
MATLAB - Allowing only numeric input using Exception Handling
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 following syntax:
try
statements
catch exception
…

rrz0
- 1,171
- 1
- 21
- 42
0
votes
1 answer
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 page fault. Hence the CPU must either roll-back the…

cr1901
- 494
- 3
- 12
0
votes
1 answer
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 bit in SCB->SHCSR set to 1. What wrong I've done…

VIPPER
- 356
- 2
- 5
- 20