Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
RaspberryPi Pico & LLVM & Embedded Swift
Search
yochidros
August 29, 2024
Programming
63
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
140
try! Swift Embedded with Raspberry Pi Pico
yochidros
0
140
Other Decks in Programming
See All in Programming
共通化で考えるべきは、実装より公開する型だった
codeegg
0
260
1年で人数1.5倍、PR数5.5倍増。 品質とアウトカムはどうなったか、 何が効いたか
ike002jp
0
140
作るコストが小さくなった時代 幸せに働くために改めて考えたいこと 〜エンジニアとして価値を出し続けるために注視している二分野〜
yuppeeng
0
110
LaravelLive Japan の裏方のすべて — 第188回 PHP勉強会@東京 (2026-06-24)
suguruooki
2
150
吝嗇家のためのAI活用 / AI development for miser - ChatGPT + Issue Driven Development
tooppoo
0
190
JAWS-UG横浜 #102 AWSサ終供養LT会 成仏できない AWS サービスたち 〜本日、三体供養します〜
maroon1st
0
210
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
140
AI 輔助遺留系統現代化的經驗分享
jame2408
1
1.2k
どこまでゆるくて許されるのか
tk3fftk
0
510
광주소프트웨어마이스터고등학교 DevFest 특강 - 바이브 코딩 시대에서 주니어 개발자로 살아남는 방법
utilforever
1
150
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
1.1k
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
2.8k
Featured
See All Featured
Tell your own story through comics
letsgokoyo
1
1k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
470
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
180
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
Designing for Timeless Needs
cassininazir
1
380
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
The SEO Collaboration Effect
kristinabergwall1
1
510
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