Submit Search
Upload
RTOS on ARM cortex-M platform -draft
•
4 likes
•
1,211 views
J
Jou Neo
Follow
Introduce how to make a RTOS by yourself on ARM cortex-M platform.
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 72
Download now
Download to read offline
Recommended
Rtos
Rtos
Vinay Diddi
Real Time Operating System Concepts
Real Time Operating System Concepts
Sanjiv Malik
ucOS
ucOS
Ramasubbu .P
Vxworks
Vxworks
ismaeil nethead
Real time Operating System
Real time Operating System
Tech_MX
Rtos part2
Rtos part2
navakishore
RTOS implementation
RTOS implementation
Rajan Kumar
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
JOLLUSUDARSHANREDDY
Recommended
Rtos
Rtos
Vinay Diddi
Real Time Operating System Concepts
Real Time Operating System Concepts
Sanjiv Malik
ucOS
ucOS
Ramasubbu .P
Vxworks
Vxworks
ismaeil nethead
Real time Operating System
Real time Operating System
Tech_MX
Rtos part2
Rtos part2
navakishore
RTOS implementation
RTOS implementation
Rajan Kumar
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
RTOS MICRO CONTROLLER OPERATING SYSTEM-2
JOLLUSUDARSHANREDDY
Real Time Operating System
Real Time Operating System
Sharad Pandey
Chapter 19 - Real Time Systems
Chapter 19 - Real Time Systems
Wayne Jones Jnr
Os2
Os2
gopal10scs185
MicroC/OS-II
MicroC/OS-II
Digicomm Semiconductor Private Limited
Real time operating system
Real time operating system
Khuram Shahzad
Rtos
Rtos
sharvani musandi
Real Time Kernels
Real Time Kernels
Arnav Soni
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
Linaro
Os rtos.ppt
Os rtos.ppt
rahul km
Real Time Operating Systems
Real Time Operating Systems
Pawandeep Kaur
Real Time Operating Systems
Real Time Operating Systems
Rohit Joshi
Testing real-time Linux. What to test and how
Testing real-time Linux. What to test and how
Chirag Jog
Real Time Operating Systems
Real Time Operating Systems
Ashwani Garg
Rtos princples adn case study
Rtos princples adn case study
vanamali_vanu
Preempt_rt realtime patch
Preempt_rt realtime patch
Emre Can Kucukoglu
Basic functions & types of RTOS ES
Basic functions & types of RTOS ES
JOLLUSUDARSHANREDDY
Mastering Real-time Linux
Mastering Real-time Linux
Jean-François Deverge
Linux Preempt-RT Internals
Linux Preempt-RT Internals
哲豪 康哲豪
How to Measure RTOS Performance
How to Measure RTOS Performance
mentoresd
Introduction to Real-Time Operating Systems
Introduction to Real-Time Operating Systems
coolmirza143
How to Hunt for Lateral Movement on Your Network
How to Hunt for Lateral Movement on Your Network
Sqrrl
Advanced Threats and Lateral Movement Detection
Advanced Threats and Lateral Movement Detection
Greg Foss
More Related Content
What's hot
Real Time Operating System
Real Time Operating System
Sharad Pandey
Chapter 19 - Real Time Systems
Chapter 19 - Real Time Systems
Wayne Jones Jnr
Os2
Os2
gopal10scs185
MicroC/OS-II
MicroC/OS-II
Digicomm Semiconductor Private Limited
Real time operating system
Real time operating system
Khuram Shahzad
Rtos
Rtos
sharvani musandi
Real Time Kernels
Real Time Kernels
Arnav Soni
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
Linaro
Os rtos.ppt
Os rtos.ppt
rahul km
Real Time Operating Systems
Real Time Operating Systems
Pawandeep Kaur
Real Time Operating Systems
Real Time Operating Systems
Rohit Joshi
Testing real-time Linux. What to test and how
Testing real-time Linux. What to test and how
Chirag Jog
Real Time Operating Systems
Real Time Operating Systems
Ashwani Garg
Rtos princples adn case study
Rtos princples adn case study
vanamali_vanu
Preempt_rt realtime patch
Preempt_rt realtime patch
Emre Can Kucukoglu
Basic functions & types of RTOS ES
Basic functions & types of RTOS ES
JOLLUSUDARSHANREDDY
Mastering Real-time Linux
Mastering Real-time Linux
Jean-François Deverge
Linux Preempt-RT Internals
Linux Preempt-RT Internals
哲豪 康哲豪
How to Measure RTOS Performance
How to Measure RTOS Performance
mentoresd
Introduction to Real-Time Operating Systems
Introduction to Real-Time Operating Systems
coolmirza143
What's hot
(20)
Real Time Operating System
Real Time Operating System
Chapter 19 - Real Time Systems
Chapter 19 - Real Time Systems
Os2
Os2
MicroC/OS-II
MicroC/OS-II
Real time operating system
Real time operating system
Rtos
Rtos
Real Time Kernels
Real Time Kernels
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
HKG15-305: Real Time processing comparing the RT patch vs Core isolation
Os rtos.ppt
Os rtos.ppt
Real Time Operating Systems
Real Time Operating Systems
Real Time Operating Systems
Real Time Operating Systems
Testing real-time Linux. What to test and how
Testing real-time Linux. What to test and how
Real Time Operating Systems
Real Time Operating Systems
Rtos princples adn case study
Rtos princples adn case study
Preempt_rt realtime patch
Preempt_rt realtime patch
Basic functions & types of RTOS ES
Basic functions & types of RTOS ES
Mastering Real-time Linux
Mastering Real-time Linux
Linux Preempt-RT Internals
Linux Preempt-RT Internals
How to Measure RTOS Performance
How to Measure RTOS Performance
Introduction to Real-Time Operating Systems
Introduction to Real-Time Operating Systems
Viewers also liked
How to Hunt for Lateral Movement on Your Network
How to Hunt for Lateral Movement on Your Network
Sqrrl
Advanced Threats and Lateral Movement Detection
Advanced Threats and Lateral Movement Detection
Greg Foss
Hunting Lateral Movement in Windows Infrastructure
Hunting Lateral Movement in Windows Infrastructure
Sergey Soldatov
Two-fet based PUF
Two-fet based PUF
Riccardo Bernardini
Dakotacon 2017
Dakotacon 2017
Blue Teamer
Kaspersky managed protection
Kaspersky managed protection
Sergey Soldatov
A Threat Hunter Himself
A Threat Hunter Himself
Sergey Soldatov
Io t security-ameba-ppt
Io t security-ameba-ppt
Jou Neo
Threat hunting as SOC process
Threat hunting as SOC process
Sergey Soldatov
Physically Unclonable Random Permutations
Physically Unclonable Random Permutations
Riccardo Bernardini
Whitewood entropy and random numbers - owasp - austin - jan 2017
Whitewood entropy and random numbers - owasp - austin - jan 2017
WhitewoodOWASP
A Very Stable Diode-Based Physically Unclonable Constant
A Very Stable Diode-Based Physically Unclonable Constant
Riccardo Bernardini
Active Directory - Real Defense For Domain Admins
Active Directory - Real Defense For Domain Admins
Jason Lang
Threat Intelligence Field of Dreams
Threat Intelligence Field of Dreams
Greg Foss
Deploying Privileged Access Workstations (PAWs)
Deploying Privileged Access Workstations (PAWs)
Blue Teamer
Terra Bruciata: an open source initiative for software correctness
Terra Bruciata: an open source initiative for software correctness
Riccardo Bernardini
Rtos ameba
Rtos ameba
Jou Neo
PHDays '14 Cracking java pseudo random sequences by egorov & soldatov
PHDays '14 Cracking java pseudo random sequences by egorov & soldatov
Sergey Soldatov
Generalized Elias Schemes for Truly Random Bits
Generalized Elias Schemes for Truly Random Bits
Riccardo Bernardini
Трудовые будни охотника на угрозы
Трудовые будни охотника на угрозы
Sergey Soldatov
Viewers also liked
(20)
How to Hunt for Lateral Movement on Your Network
How to Hunt for Lateral Movement on Your Network
Advanced Threats and Lateral Movement Detection
Advanced Threats and Lateral Movement Detection
Hunting Lateral Movement in Windows Infrastructure
Hunting Lateral Movement in Windows Infrastructure
Two-fet based PUF
Two-fet based PUF
Dakotacon 2017
Dakotacon 2017
Kaspersky managed protection
Kaspersky managed protection
A Threat Hunter Himself
A Threat Hunter Himself
Io t security-ameba-ppt
Io t security-ameba-ppt
Threat hunting as SOC process
Threat hunting as SOC process
Physically Unclonable Random Permutations
Physically Unclonable Random Permutations
Whitewood entropy and random numbers - owasp - austin - jan 2017
Whitewood entropy and random numbers - owasp - austin - jan 2017
A Very Stable Diode-Based Physically Unclonable Constant
A Very Stable Diode-Based Physically Unclonable Constant
Active Directory - Real Defense For Domain Admins
Active Directory - Real Defense For Domain Admins
Threat Intelligence Field of Dreams
Threat Intelligence Field of Dreams
Deploying Privileged Access Workstations (PAWs)
Deploying Privileged Access Workstations (PAWs)
Terra Bruciata: an open source initiative for software correctness
Terra Bruciata: an open source initiative for software correctness
Rtos ameba
Rtos ameba
PHDays '14 Cracking java pseudo random sequences by egorov & soldatov
PHDays '14 Cracking java pseudo random sequences by egorov & soldatov
Generalized Elias Schemes for Truly Random Bits
Generalized Elias Schemes for Truly Random Bits
Трудовые будни охотника на угрозы
Трудовые будни охотника на угрозы
Similar to RTOS on ARM cortex-M platform -draft
[Defcon] Hardware backdooring is practical
[Defcon] Hardware backdooring is practical
Moabi.com
Hardware backdooring is practical : slides
Hardware backdooring is practical : slides
Moabi.com
ARM® Cortex™ M Bootup_CMSIS_Part_2_3
ARM® Cortex™ M Bootup_CMSIS_Part_2_3
Raahul Raghavan
Advanced Apache Spark Meetup: How Spark Beat Hadoop @ 100 TB Daytona GraySor...
Advanced Apache Spark Meetup: How Spark Beat Hadoop @ 100 TB Daytona GraySor...
Chris Fregly
[CCC-28c3] Post Memory Corruption Memory Analysis
[CCC-28c3] Post Memory Corruption Memory Analysis
Moabi.com
Programar para GPUs
Programar para GPUs
Alcides Fonseca
ACPI and FreeBSD (Part 1)
ACPI and FreeBSD (Part 1)
Nate Lawson
U-Boot Porting on New Hardware
U-Boot Porting on New Hardware
RuggedBoardGroup
“Linux Kernel CPU Hotplug in the Multicore System”
“Linux Kernel CPU Hotplug in the Multicore System”
GlobalLogic Ukraine
Introduction to FreeRTOS
Introduction to FreeRTOS
ICS
Network Programming: Data Plane Development Kit (DPDK)
Network Programming: Data Plane Development Kit (DPDK)
Andriy Berestovskyy
Operating Systems - A Primer
Operating Systems - A Primer
Saumil Shah
Linux Network Stack
Linux Network Stack
Adrien Mahieux
Micro processor
Micro processor
Neeraj Dhiman
Accelerating SDN/NFV with transparent offloading architecture
Accelerating SDN/NFV with transparent offloading architecture
Open Networking Summits
Jagan Teki - U-boot from scratch
Jagan Teki - U-boot from scratch
linuxlab_conf
QEMU and Raspberry Pi. Instant Embedded Development
QEMU and Raspberry Pi. Instant Embedded Development
GlobalLogic Ukraine
The x86 Family
The x86 Family
Motaz Saad
Exploring Compiler Optimization Opportunities for the OpenMP 4.x Accelerator...
Exploring Compiler Optimization Opportunities for the OpenMP 4.x Accelerator...
Akihiro Hayashi
Android Boot Time Optimization
Android Boot Time Optimization
Kan-Ru Chen
Similar to RTOS on ARM cortex-M platform -draft
(20)
[Defcon] Hardware backdooring is practical
[Defcon] Hardware backdooring is practical
Hardware backdooring is practical : slides
Hardware backdooring is practical : slides
ARM® Cortex™ M Bootup_CMSIS_Part_2_3
ARM® Cortex™ M Bootup_CMSIS_Part_2_3
Advanced Apache Spark Meetup: How Spark Beat Hadoop @ 100 TB Daytona GraySor...
Advanced Apache Spark Meetup: How Spark Beat Hadoop @ 100 TB Daytona GraySor...
[CCC-28c3] Post Memory Corruption Memory Analysis
[CCC-28c3] Post Memory Corruption Memory Analysis
Programar para GPUs
Programar para GPUs
ACPI and FreeBSD (Part 1)
ACPI and FreeBSD (Part 1)
U-Boot Porting on New Hardware
U-Boot Porting on New Hardware
“Linux Kernel CPU Hotplug in the Multicore System”
“Linux Kernel CPU Hotplug in the Multicore System”
Introduction to FreeRTOS
Introduction to FreeRTOS
Network Programming: Data Plane Development Kit (DPDK)
Network Programming: Data Plane Development Kit (DPDK)
Operating Systems - A Primer
Operating Systems - A Primer
Linux Network Stack
Linux Network Stack
Micro processor
Micro processor
Accelerating SDN/NFV with transparent offloading architecture
Accelerating SDN/NFV with transparent offloading architecture
Jagan Teki - U-boot from scratch
Jagan Teki - U-boot from scratch
QEMU and Raspberry Pi. Instant Embedded Development
QEMU and Raspberry Pi. Instant Embedded Development
The x86 Family
The x86 Family
Exploring Compiler Optimization Opportunities for the OpenMP 4.x Accelerator...
Exploring Compiler Optimization Opportunities for the OpenMP 4.x Accelerator...
Android Boot Time Optimization
Android Boot Time Optimization
Recently uploaded
University management System project report..pdf
University management System project report..pdf
Kamal Acharya
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
SIVASHANKAR N
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
upamatechverse
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
rknatarajan
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
slot gacor bisa pakai pulsa
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Call Girls in Nagpur High Profile
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
Extrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
120cr0395
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
Asutosh Ranjan
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls in Nagpur High Profile
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
Call Girls in Nagpur High Profile
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
fenichawla
Online banking management system project.pdf
Online banking management system project.pdf
Kamal Acharya
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
sanyuktamishra911
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
SIVASHANKAR N
Recently uploaded
(20)
University management System project report..pdf
University management System project report..pdf
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Extrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
Online banking management system project.pdf
Online banking management system project.pdf
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
RTOS on ARM cortex-M platform -draft
1.
RTOS - CM Neo
Jou
2.
IOT 技術同好會 Search :
Ameba / IoT
3.
AMEBA
4.
CMSIS-DAP USB mbed disk
/ USB-Serial / Debug
5.
TOPICS Cortex-M RTOS OS / Realtime HW
design for RTOS Micro Kernel memory schedule IPC Future
6.
ARM ARCH
7.
ARM
8.
ARM CORTEX
9.
TOPICS Cortex-M RTOS OS / Realtime HW
design for RTOS Micro Kernel memory schedule IPC Future
10.
OS -> OR 運籌學 資源
=> 有效運⽤ 兵⼒/糧草/時間...
11.
空間 Memory DOS - 640K arduino
: Atmega328 : 2K SRAM / 32K flash Ameba : 512K internal
12.
時間 CPU 處理速度 cortem-M3/M4 1.25 DMIPS/MHz Ameba
- 166MHz
13.
時空轉換 compiler toolchain 參數選擇
-Osize / -Otime 空間換取時間 e.g. loop unroll, 查表 : switch , … 時間換取空間 e.g. loop without unroll, compression
14.
資源 除了空間時間外, 還有什麼資源需要管理? Power consumption
-> Zephyr 容易 porting CMSIS middleware (USB / TCPIP / .. ) ….
15.
TRADE OFF 複雜的動態系統 external flash
-> external RAM -> internal RAM -> cache ... task priority / critical path power consumption …
16.
TOPICS Cortex-M RTOS OS / Realtime HW
design for RTOS Micro Kernel memory schedule IPC
17.
即時 - REAL
TIME deadline => priority -> renice -> preemptive Linux : RTOS ? kernel 非搶佔, user 權限⾼也無法搶佔 時間計算/限制機制 改良 重改 linux - PREEMPT_RT dual kernel - 替換底層 - Xenomai ( 底層⽤ Nucleus )
18.
TOPICS Cortex-M RTOS OS / Realtime HW
design for RTOS performance Micro Kernel memory schedule IPC Future
19.
HW FOR RTOS MSP
/ PSP LR - branch (bx lr), EXC_RETURN auto push/pop stack privileged / handler - thread
20.
REGISTERS
21.
AAPCS Procedure Call Standard
for ARM Architecture
22.
HANDLER privileged thread / handler handler
only have privileged mode
23.
EXC_RETURN Exception : thread
-> handler LR : EXC_RETURN
24.
TOPICS Cortex-M RTOS OS / Realtime HW
design for RTOS performance Micro Kernel memory schedule IPC Future
25.
微核⼼ Memory Thread IPC
26.
TEXT / DATA *
Howard - HyperC OS * Linker script -http://njiot.blogspot.tw/2016/03/arduino-ameba-100-textdatabssheapstack.html
27.
動態管理 C: malloc /
free sbrk() linker script
28.
動態管理 Windows: VirtualAlloc / HeapAlloc 非分⾴
/ 分⾴ Linux: vmalloc / kmalloc : GFP_ATOMIC / GFP_KERNEL
29.
動態管理 cortex-M : no
MMU , no virtual address 經濟 <-> 技術, RAM 價格曲線 MMU overhead / die size cost fragment / chunk / page / utilization
30.
CACHE Ameba : cortex-m3
, no cache instruction / data barrier : ISB , DSB, DMB
31.
TOPICS Cortex-M RTOS OS / Realtime Micro
Kernel memory schedule IPC
32.
多⼯-1 真的需要多⼯? * https://github.com/liuxuming/trochili
33.
ARDUINO setup() loop()
34.
多⼯-2 ISR * https://github.com/liuxuming/trochili
35.
無線程排程-ISR 8-bit / 16-bit
programming x86 BIOS/DOS INT
36.
VECTOR TABLE
37.
線程排程 - TIMER
- 1 One shot / period latency : 8 cycles auto push pop by HW Pros : easy, quick, less overhead
38.
TICKER SCHEDULER ESP 8266
- yield() do back ground functions ; https://github.com/Toshik/TickerScheduler void setup(void) { … if (ts.add(0, 5000, task0, true)) { Serial.println("Tick task - task0 ok"); } if (ts.add(1, 2000, task1, true)) { Serial.println("Tick task - task1 ok"); } …. } void task0(void) { Serial.println("Task0"); } … void loop(void) { ts.update(); }
39.
TICKER SCHEDULER
40.
TICKER SCHEDULER ESP 8266
- yield() do back ground functions ; https://github.com/Toshik/TickerScheduler
41.
ARM MBED TICKER https://developer.mbed.org/handbook/Ticker
42.
TIMER CONS HW timer
有限 SW timer : 延遲 preemptive no reentrant context switch ? function execution -> starvation
43.
多⼯ - 2 multi-tasks
44.
多⼯ - 3 ⼯作
Task 程式執⾏最⼩單位? Process =>Thread Unix -> Mach 第⼀代 micro kernel Mac OSX
45.
THREAD
46.
ARDUINO SCHEDULER zero, MKR1000
- cortex-m0+ , Due - cortex-m3 https://www.arduino.cc/en/Reference/Scheduler
47.
ARDUINO SCHEDULER 為何需要多⼯
48.
ARDUINO SCHEDULR NUM_REGS=10, https://github.com/arduino-libraries/Scheduler/blob/master/src/Scheduler.cpp
49.
ARDUINO SCHEDULR NUM_REGS=10, https://github.com/arduino-libraries/Scheduler/blob/master/src/Scheduler.cpp
50.
ARDUINO SCHEDULR NUM_REGS=10, https://github.com/arduino-libraries/Scheduler/blob/master/src/Scheduler.cpp
51.
ARDUINO SCHEDULER 和 mini-arm-os
/ RTX 很像 比 timer 優點 : TCB : Task control block 各⾃有 stack
52.
RTX 何時切換: systick interrupt CMSIS API IPC
53.
SWITCH- SYSTICK
54.
SWITCH - PENDSVC
55.
CMSIS-RTOS Cortex Microcontroller Software
Interface Standard
56.
IDLE TASK busy waiting
耗電 WFI / WFE 中斷完成時直接休眠, 不回 Thread, 省下 stack push/ pop
57.
TOPICS Cortex-M RTOS OS / Realtime Micro
Kernel memory schedule IPC
58.
IPC - 1 Inter
Process Communication L4 kernel - 第⼆代微核⼼重點 f9-kernel: http://wiki.csie.ncku.edu.tw/ embedded/f9-kernel
59.
SHARE MEMORY No thread
safe flag interrupt write status thread polling
60.
CRITICAL SECTION atomic spinlock /
mutex / semaphore 差異?
61.
IPC -⼩訊息傳遞 signal events mutex semaphore
62.
IPC - ⼤訊息傳遞 message
queue mail queue
63.
L4 http://www.slideshare.net/microkerneldude/from-l3-to-sel4-what-have-we-learnt-in-20-years-l4 https://www.youtube.com/watch?v=RdoaFc5-1Rk
64.
優先權錯逆 priority inversion realtime -
deadline
65.
優先權錯逆 ⽕星探測計畫 http://wiki.csie.ncku.edu.tw/embedded/priority-inversion-on-Mars.pdf
66.
複雜 drivers wifi, usb, … network
protocol TCP/IP SSL / TLS MQTT / HTTP ….
67.
MBED OS LoRa :
https://docs.mbed.com/docs/lora-with-mbed/en/latest/intro-to-lora/
68.
WIFI 驅動程式-1 http://www.slideshare.net/simenli/adv-embedded
69.
WIN WDI DRIVER
70.
安全 資料安全 資訊隱藏與封裝 (C++) 資訊最⼩化公開原則 各⾃ stack 系統安全
: security boot 網路安全 : SSL/TLS
71.
安全- 硬體設計 Ameba Cortex-M3
: MPU -> mbed uvisor hardware crypto engine 加解密, 簽章 : AES / SHA-2 TrustZone : v8m : SAU stack limit
72.
FUTURE Benchmark ARM mbed /
Arduino CMSIS++ / mbed minar NUTTX : ardupilot / cortex-m4 Zephyr : Linux ⼩弟 dynamic linking / module loading hypervisor
Download now