Kristofer Jonsson | a08e9d4 | 2021-04-28 12:32:28 +0200 | [diff] [blame] | 1 | @startuml |
| 2 | |
| 3 | skinparam backgroundColor #EEEBDC |
| 4 | |
| 5 | box "Hardware" #FFC700 |
| 6 | participant "Cortex-M" as cortexm |
| 7 | participant "Ethos-U" as ethosu |
| 8 | end box |
| 9 | |
| 10 | box "CMSIS Device" #0091BD |
| 11 | participant "__VECTOR_TABLE" as ivec |
| 12 | participant "Reset_Handler()" as reset |
| 13 | end box |
| 14 | |
| 15 | box "Compiler" #FF6B00 |
| 16 | participant "Runtime" as runtime |
| 17 | end box |
| 18 | |
| 19 | box "Target" #95D600 |
| 20 | participant "common" as common |
| 21 | participant "corstone-300" as target |
| 22 | end box |
| 23 | |
| 24 | box "Drivers" #00C1DE |
| 25 | participant "NPU" as driver |
| 26 | participant "UART" as uart |
| 27 | participant "MPU" as mpu |
| 28 | end box |
| 29 | |
| 30 | box "Application" #7D868C |
| 31 | participant "main()" as main |
| 32 | end box |
| 33 | |
| 34 | cortexm -> ivec++: |
| 35 | ivec -> reset++: Reset_Handler() |
| 36 | reset -> reset++: SystemInit() |
| 37 | deactivate reset |
| 38 | |
| 39 | reset -> runtime++: __main() |
| 40 | note over runtime |
| 41 | Scatter loading |
| 42 | Initializing stack and heap |
| 43 | end note |
| 44 | |
| 45 | note over runtime |
| 46 | Calling constructors |
| 47 | end note |
| 48 | |
| 49 | runtime -> common++: init() [constructor] |
| 50 | note over common |
| 51 | The constructor is called after stack and heap have been initialized, |
| 52 | but before the main() function is called |
| 53 | end note |
| 54 | |
| 55 | common -> target++: targetSetup() |
| 56 | target -> uart++: uart_init() |
| 57 | return |
| 58 | |
| 59 | target -> driver++: ethosu_init() |
| 60 | return |
| 61 | |
| 62 | target -> mpu++: loadAndEnableConfig() |
| 63 | return |
| 64 | return |
| 65 | return |
| 66 | |
| 67 | runtime -> main++: main() |
| 68 | note over main |
| 69 | Running application |
| 70 | end note |
| 71 | @enduml |