iSLER CH573 Fixes#875
Merged
cnlohr merged 4 commits intocnlohr:masterfrom Mar 15, 2026
Merged
Conversation
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update iSLER to fix TX and RX on the CH573.
The problem with the CH573 is the DMA can only access a portion of RAM. We thus need to ensure the buffers for TX and RX fall in this section. We use the
.dma_safelinker section previously defined (see #733). This requires adding a section attribute on the buffers. Since the.dma_safesection is uninitialized, we also have to manually initialize these buffers at start up. This adds no extra overhead, because if the section were initialized this would be happening anyway instart.Major changes:
ISLER_BUF_ATTR. This satisfies both section and alignment requirements.FUNCONF_ISLER_BUFFER_SECTIONto the section name, e.g.".bss"FUNCONF_ISLER_SECTIONis replaced byFUNCONF_ISLER_FUNCTION_SECTIONwhich takes just the section name instead of the full attribute.LLE_BUFandLLE_BUF2are flipped. This makesLLE_BUFconsistently the receive buffer.Tested on CH573 for both TX and RX using
ble_beaconandiSLERexamples. Also tested with a simple TX and RX demo on the CH592 to confirm nothing broke.Seeking review from @biemster