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
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
610
エージェンティックRAGにAWSで入門しよう!
har1101
9
1.7k
スマートグラスで並列バイブコーディング
hyshu
0
260
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.5k
JavaDoc 再入門
nagise
1
380
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
600
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.3k
Skillsは効率化、Agentsは"自分の拡張"——Builder時代のエージェント編成(CC Night 2026)
wemra
1
140
AIで効率化できた業務・日常
ochtum
0
140
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
RTSPクライアントを自作してみた話
simotin13
0
620
トークンをケチるな、設計しろ:GitHub Copilotを賢く使うコンテキスト戦略
ochtum
0
140
Featured
See All Featured
Making Projects Easy
brettharned
120
6.7k
Six Lessons from altMBA
skipperchong
29
4.3k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Abbi's Birthday
coloredviolet
3
8.2k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Rails Girls Zürich Keynote
gr2m
96
14k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
170
Designing for Performance
lara
611
70k
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