DAPLink
libopencm3
DAPLink | libopencm3 | |
---|---|---|
5 | 11 | |
2,161 | 2,944 | |
1.5% | 0.7% | |
6.1 | 5.7 | |
4 days ago | 13 days ago | |
C | C | |
Apache License 2.0 | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
DAPLink
-
At what abstraction level does the USB MSC class operate?
If you just want to transfer data without necessarily using a filesystem on your storage device, check out daplink. It implements a virtual FAT filesystem over USB so you can copy over firmware updates easily.
-
DAP-Link Confusion
From what I've found that DAP-Link is actually an ARM Mbed open source project to basically be similar to STM32 ST-Link: https://github.com/ARMmbed/DAPLink
-
What are some interesting uses of WebUSB you have come across?
It's used for flashing the BBC micro:bit in both Microsoft MakeCode (makecode.microbit.org) and the micro:bit Python Editor (python.microbit.org). MakeCode uses it for lots of other devices like MakeCode Arcade too https://arcade.makecode.com )
It's amazing for students to be able to quickly get a program they've written in their browser onto a device in their hands that can respond to and interact with the real world.
Also great because with MicroPython and the Python Editor you get a standalone Python environment including REPL that's completely isolated from the PC - schools love it because no matter what the students do they're not going to break the host PCs.
(The firmware that implements web USB on the micro:bit's USB interface chip is open source, DAPLink https://github.com/ARMmbed/DAPLink - poke
-
The design approach to the Zig programming language
https://github.com/ARMmbed/DAPLink/blob/main/source/daplink/...
Note the nested do { do { } while (); if (err) break;} while(); if (err) break;
Should that code be rewritten? Most certainly it should, and it should be given a proper Error type. However, when you are first porting it, you need to match semantics or you get a bunch of off-by-one, missed error, or missed end of stream bugs. And, as you point out, the Rust loop{} equivalents suck.
We've all written suboptimal code, and we all live in a suboptimal world. :)
-
How to flash an arm microcontroller on Linux?
I checked for DAPLink, but this seems to require keil, based on what I read in the readme.
libopencm3
- Open source ARM Cortex-M microcontroller library
-
Setting up a good dev environment without recreating the world
Some of the vendor IDEs have the option to generate makefiles for a project. Depending on the processor, you could also opt out to a different system. A lot of the popular cortex-m stuff is supported by libopencm3.
- Is there a command line process for ST embedded devices?
-
Looking for someone interested in designing a HAL
You can also look at examples of HALs such as - libopencm3 (Though this is Cortex only) - RIOT OS (though this requires an RTOS)
- how come there aren't any open source drivers for MCUs?
- Is there a database of peripheral implementations for different STM32 MCU parts?
-
Portable driver libraries or HAL that supports Atmel SAM targets?
Yeah by the looks of it I am going to have to expand my project do creating a portable driver interface as well. Abstracting hardware interfaces to create portable code is fairly common in embedded development. For example, libopencm3 does this and has great support for STM32 parts but very limited support for SAM parts.
-
How can i implement USB interface for an embedded flight controller to enable serial prints, parameter changes AND reading data from an SD card?
TinyUSB or Libopencm3 are probably your best options (although check they support the SAME70).
-
Which uC has the most flexible, feature-packed SPI peripherals?
that is fair. SPI isn't very portable across Arm cpu vendors because all peripherals are vendor specific, i.e. the registers will differ a lot and APIs reflect that. Finding common ground is hard unless using specifically designed portable libraries like https://github.com/libopencm3/libopencm3
- Code organization and modularity
What are some alternatives?
pico-debug - virtual debug pod for RP2040 "Raspberry Pi Pico" with no added hardware
grblHAL - This repo has moved to a new home https://github.com/grblHAL
pyOCD - Open source Python library for programming and debugging Arm Cortex-M microcontrollers
libusb_stm32 - Lightweight USB device Stack for STM32 microcontrollers
PlatformIO - Your Gateway to Embedded Software Development Excellence :alien:
stm32-cube-cmake-vscode - STM32, VSCode and CMake detailed tutorial
NXP-MCUBootUtility - 恩智浦全系列MCU安全启动一站式工具(研发模式),基于Python2.7.15+wxPython4.0.3
stm32-rs - Embedded Rust device crates for STM32 microcontrollers
remote-debugger
rt-thread - RT-Thread is an open source IoT real-time operating system (RTOS).
ig-debugheap - Debug heap useful for tracking down memory errors.
stm32disc_midisynth1 - midi-controlled synth example for STM32F407VG Discovery board