Os motores de busca de Datasheet de Componentes eletrônicos
  Portuguese  ▼
ALLDATASHEETPT.COM

X  

SW4STM32C Folha de dados(PDF) 51 Page - STMicroelectronics

Nome de Peças SW4STM32C
Descrição Electrónicos  STM32 microcontroller debug toolbox
PDF  99 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrônico  STMICROELECTRONICS [STMicroelectronics]
Página de início  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

SW4STM32C Folha de dados(HTML) 51 Page - STMicroelectronics

Back Button SW4STM32C Datasheet HTML 47Page - STMicroelectronics SW4STM32C Datasheet HTML 48Page - STMicroelectronics SW4STM32C Datasheet HTML 49Page - STMicroelectronics SW4STM32C Datasheet HTML 50Page - STMicroelectronics SW4STM32C Datasheet HTML 51Page - STMicroelectronics SW4STM32C Datasheet HTML 52Page - STMicroelectronics SW4STM32C Datasheet HTML 53Page - STMicroelectronics SW4STM32C Datasheet HTML 54Page - STMicroelectronics SW4STM32C Datasheet HTML 55Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 51 / 99 page
background image
DocID030181 Rev 2
51/99
AN4989
Exception handling
98
Figure 32. Keil® Access to Show Caller Code in Contextual menu
6.3
Trapping div/0 exception
Most often, code execution causing a division by zero are difficult to investigate:
•
Nothing is neither triggered nor trapped.
•
Erroneous returned value generates an unexpected and unpredictable behavior that is
very difficult to analyze.
This chapter gives several tips in order to properly trap div/0 exceptions.
6.3.1
Cortex®-M0/M0+ case
For targets that do not support hardware division instructions (SDIV/UDIV), integer division-
by-zero errors can be trapped and identified by means of the appropriate C library helper
functions:
__aeabi_idiv0()
When integer division by zero is detected, a branch to __aeabi_idiv0() is made. A
breakpoint placed on __aeabi_idiv0() allow to trap the division by zero.
To ease the breakpoint application, override the default function:
void __aeabi_idiv0()
{
#ifdef DEBUG
__BKPT(0);
#endif
}
This way, and depending on IDE, the call stack or registers can be examined and the
offending line in the source code can be rapidly found.
To go further refer to section 7.7 of ARM® Compiler Software Development Guide.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99


Folha de dados Download

Go To PDF Page


Ligação URL



ALLDATASHEET é útil para você?  [ DONATE ] 

Sobre Alldatasheet   |   Publicidade   |   Contato conosco   |   Privacy Policy   |   Link para a ficha técnica    |   roca de Link   |   Lista de Fabricantes
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com