Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
RaspberryPi Pico & LLVM & Embedded Swift
Search
yochidros
August 29, 2024
Programming
68
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RaspberryPi Pico & LLVM & Embedded Swift
yochidros
August 29, 2024
More Decks by yochidros
See All by yochidros
Raspberry Pi Pico をSwiftで操作する
yochidros
0
150
try! Swift Embedded with Raspberry Pi Pico
yochidros
0
160
Other Decks in Programming
See All in Programming
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
370
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
390
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
410
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
0
1.3k
Webの地図
yosuke_furukawa
PRO
6
4.5k
[GoCon2026] When Goroutines Are Not Enough: Runtime Locality in High-Throughput Go
takehaya
6
2.2k
巨大モノリシックアプリ モダン化大作戦
ktcryomm
0
1k
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
360
AIを上手に使っていこうとしたら越境せざるを得なくなった話 〜実践1年で見えた境界を越えなければならない理由と進め方〜 / Crossing borders with AI
tomoyakitaura
4
1.2k
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
250
A2UI for Android: Safely Rendering AI-Generated UI with Jetpack Compose - DroidKaigi 2026
itsmedreamwalker
0
140
スマート反転とウェブアクセシビリティ
camiha
0
210
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
エンジニアに許された特別な時間の終わり
watany
109
250k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
WCS-LA-2024
lcolladotor
0
830
[RailsConf 2023] Rails as a piece of cake
palkan
59
7k
The Curious Case for Waylosing
cassininazir
1
510
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Side Projects
sachag
456
43k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
460
Unsuck your backbone
ammeep
672
58k
GitHub's CSS Performance
jonrohan
1033
470k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Transcript
RaspberryPi Pico && LLVM && Embedded Swift yochidros swift expands!
#3 2024/08/29
w *%ɿyochidros w ॴଐɿגࣜձࣾϏοτΩʔ w J04ΤϯδχΞ w ےτϨͱϓϩάϥϛϯά͕͖ ࣗݾհ ࣮Ոͷ🐶
iOSDC 2024 08/23 Fri TrackD
1JDP4%, 0'' 0/ PCKFDU
1JDP4%, 0'' 0/ PCKFDU
https://github.com/raspberrypi/pico-sdk/releases/tag/2.0.0 Recent LLVM Embedded Toolchain for ArmRM versions are supported
on Arm.
https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm
PICO_DEFAULT_COMPILER="pico_arm_clang" PICO_COMPILER="pico_arm_clang" PICO_TOOLCHAIN_PATH="/Applications/LLVM-ET-Arm-18.1.3-Darwin- universal" CMAKE_TOOLCHAIN_FILE="దͳύε" $ TOOLCHAINS=$(SWIFT_TOOLCHAINS) \ PICO_SDK_PATH=“దͳύε" \
PICO_DEFAULT_COMPILER=“pico_arm_clang" \ PICO_COMPILER="pico_arm_clang" \ PICO_TOOLCHAIN_PATH=$(PICO_TOOLCHAIN_PATH) \ CMAKE_TOOLCHAIN_FILE="దͳύε" PICO_BOARD=$(BOARD) \ cmake --build build
cmake/preload/platforms/RP2040.make -set(PICO_DEFAULT_COMPILER "pico_arm_cortex_m0plus_gcc") +set(PICO_DEFAULT_COMPILER "pico_arm_cortex_m0plus_clang") set(PICO_CHIP rp2040)
ld.lld: error: unde f ined symbol: getentropy >>> referenced by
stack_protector.c:28 (/workspace/workspace/llvm-embedded/llvm-18/ build-and-test/build/picolibc/armv6m_soft_nofp/src/picolibc_armv6m_soft_nofp- build/../../../../../src/picolibc/newlib/libc/ssp/stack_protector.c:28) >>> libc_ssp_stack_protector.c.o:(__stack_chk_init) in archive /Applications/LLVM-ET- Arm-18.1.3-Darwin-universal/lib/clang-runtimes/arm-none-eabi/armv6m_soft_nofp/lib/libc.a >>> referenced by stack_protector.c:0 (/workspace/workspace/llvm-embedded/llvm-18/ build-and-test/build/picolibc/armv6m_soft_nofp/src/picolibc_armv6m_soft_nofp- build/../../../../../src/picolibc/newlib/libc/ssp/stack_protector.c:0) >>> libc_ssp_stack_protector.c.o:(__stack_chk_init) in archive /Applications/LLVM-ET- Arm-18.1.3-Darwin-universal/lib/clang-runtimes/arm-none-eabi/armv6m_soft_nofp/lib/libc.a stack protectorͷγϯϘϧ͕Έ͔ͭΒͳ͍😇
-disable-stack-protector
LLVMͰϏϧυͰ͖Δ 🎉
try! Swift Embedded with Raspberry Pi Pico https://speakerdeck.com/yochidros/try-swift-embedded-with-raspberry-pi-pico?slide=18
https://speakerdeck.com/k_koheyi/draft?slide=31 K-Kohey͞Μͷʮ ήʔϜϘʔΠΞυόϯεͰSwiftΛಈ͔ͦ͏ʯ͔Βൈਮ
LLVMͩͱϏϧυͰ͖Δ 🎉
·ͱΊ w1JDP4%,W͔Β--7.&NCFEEFE5PPMDIBJOͰϏϧυՄೳ wEJTBCMFTUBDLQSPUFDUPSͰTXJGU্ͷTUBDLQSPUFDUPSΛղআͰ͖Δ w--7.ͩͱDMBTTͳͲ͕ར༻Ͱ͖ΔΑ͏ʹͳΔ w4XJGUͰͷهड़ͷ෯͕͕Δ
https://github.com/yochidros/pico-swift-playground