-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2705 from hathach/v203-use-224kb
V203 use 224kb
- Loading branch information
Showing
17 changed files
with
112 additions
and
72 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
set(MCU_VARIANT D6) | ||
|
||
set(LD_FLASH_SIZE 64K) | ||
# 64KB zero-wait, 224KB total flash | ||
#set(LD_FLASH_SIZE 64K) | ||
set(LD_FLASH_SIZE 224K) | ||
set(LD_RAM_SIZE 20K) | ||
|
||
# set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/../../linker/${CH32_FAMILY}_tinyuf2.ld) | ||
|
||
function(update_board TARGET) | ||
target_compile_definitions(${TARGET} PUBLIC | ||
SYSCLK_FREQ_144MHz_HSE=144000000 | ||
CH32_FLASH_ENHANCE_READ_MODE=1 | ||
CFG_EXAMPLE_MSC_DUAL_READONLY | ||
) | ||
endfunction() |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
set(MCU_VARIANT D6) | ||
|
||
set(LD_FLASH_SIZE 32K) | ||
# 32KB zero-wait, 224KB total flash | ||
#set(LD_FLASH_SIZE 32K) | ||
set(LD_FLASH_SIZE 224K) | ||
set(LD_RAM_SIZE 10K) | ||
|
||
function(update_board TARGET) | ||
target_compile_definitions(${TARGET} PUBLIC | ||
SYSCLK_FREQ_144MHz_HSI=144000000 | ||
CH32_FLASH_ENHANCE_READ_MODE=1 | ||
CFG_EXAMPLE_MSC_DUAL_READONLY | ||
) | ||
endfunction() |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
set(MCU_VARIANT D6) | ||
|
||
set(LD_FLASH_SIZE 64K) | ||
# 64KB zero-wait, 224KB total flash | ||
#set(LD_FLASH_SIZE 64K) | ||
set(LD_FLASH_SIZE 224K) | ||
set(LD_RAM_SIZE 20K) | ||
|
||
function(update_board TARGET) | ||
target_compile_definitions(${TARGET} PUBLIC | ||
SYSCLK_FREQ_144MHz_HSE=144000000 | ||
CH32_FLASH_ENHANCE_READ_MODE=1 | ||
CFG_EXAMPLE_MSC_DUAL_READONLY | ||
) | ||
endfunction() |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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