Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Feature: Blackpill-F4 ADC#2114

Open
ALTracer wants to merge 144 commits intoblackmagic-debug:mainfrom
ALTracer:feature/blackpill-f4-adc
Open

Feature: Blackpill-F4 ADC#2114
ALTracer wants to merge 144 commits intoblackmagic-debug:mainfrom
ALTracer:feature/blackpill-f4-adc

Conversation

@ALTracer
Copy link
Copy Markdown
Contributor

Detailed description

  • This is a new feature for one platform, enhancing feature-parity with other platforms.
  • The existing problem is blackpill-f4 measuring "Unknown" target voltage.
  • This PR solves that by providing an implementation of platform_target_voltage() through ADC1 channel 8 pin PB0 expecting 1/2 resistive divided VTRef (routed by external add-on board, for example).

Idea implemented in November of 2024. Not runtime-tested since then because I don't have add-on boards.

Your checklist for this pull request

Closing issues

@ALTracer ALTracer force-pushed the feature/blackpill-f4-adc branch from 5bec05e to ef1650d Compare April 25, 2025 18:04
gojimmypi and others added 29 commits March 8, 2026 09:20
…p USB, timing, and setting up the correct vector table address
@ALTracer ALTracer force-pushed the feature/blackpill-f4-adc branch from 9ab9c8e to 00db6b1 Compare March 24, 2026 18:28
ALTracer and others added 24 commits March 25, 2026 19:27
* Any CSR access is only possible on a halted hard
* Violating the order results in 4 (wrong state)
* Tested chips include GD32F103CB, GD32F303CC, GD32E508ZE
…, native and swlink to solve the out of Flash space problems again
* Use small regno in riscv_hostio_request
* Power-off ADC after use (only used upon target scan)
* Prescale ADC1 clock (APB2) by 4
* Refactor regular sequence of 2 channels into two launches
@ALTracer ALTracer force-pushed the feature/blackpill-f4-adc branch from 00db6b1 to 3bb848d Compare March 29, 2026 22:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants