-
Notifications
You must be signed in to change notification settings - Fork 59
Add a demo for using LVGL, DRAM, LLVM Toolchain, ELF on an STM32F746G discovery board #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Phew, the CI finally passes |
…e Makefile into elf2hex.py
@@ -42,5 +46,12 @@ jobs: | |||
- name: Build ${{ matrix.example }} | |||
working-directory: ${{ matrix.example }} | |||
run: | | |||
export STM_BOARD=STM32F746G_DISCOVERY | |||
./build-elf.sh | |||
if [[ "${{ matrix.example }}" == "stm32-blink" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should make this part of matrix. instead of manually switching
@@ -0,0 +1,71 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use the format file at the repo root?
@@ -0,0 +1 @@ | |||
main-snapshot-2025-03-28 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move this to the repo root? It would be nice to have all examples on the same version. We should later update the GitHub actions to reference this file.
## | ||
## This source file is part of the Swift open source project | ||
## | ||
## Copyright (c) 2023 Apple Inc. and the Swift project authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
date
build: | ||
@echo "checking dependencies..." | ||
|
||
# TODO: Check that we have swiftly and recent Swift main toolchain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm?
} | ||
}, | ||
{ | ||
"identity" : "swiftsdl2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this avoidable?
1. Connect the STM32F746G-DISCO board via the ST-LINK USB port to your Mac. | ||
2. Install a recent nightly "main" Swift toolchain. This is best done using `swiftly`, for example with: | ||
```console | ||
$ swiftly install main-snapshot-2025-04-12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should tell people to install swiftly and instead rely on the .swift-version in this repo. This allows users to download the repo and not have to worry about manually selecting a compatible toolchain. Thats our/ci's responsibility.
#include <string.h> | ||
#include <stdint.h> | ||
|
||
int getentropy(char *buffer, size_t length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets add a disclaimer to this implementation?
See:
TODOs: