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
69
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
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
150
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
カツオ、ご期待ください
suneo3476
0
190
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Featured
See All Featured
Un-Boring Meetings
codingconduct
0
460
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
580
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
310
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Six Lessons from altMBA
skipperchong
29
4.5k
Agile that works and the tools we love
rasmusluckow
331
22k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
How STYLIGHT went responsive
nonsquared
100
6.3k
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