From 8b5ab2e812b773bfee88ccf57d0437a43c74393b Mon Sep 17 00:00:00 2001 From: dam1n19 <dam1n19@soton.ac.uk> Date: Thu, 29 Jun 2023 20:55:41 +0100 Subject: [PATCH] updated linker scripts --- software/common/scripts/cmsdk_bootloader.ld | 4 ++-- software/common/scripts/cmsdk_cm0.ld | 2 +- testcodes/aes128_tests/aes128_tests.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/software/common/scripts/cmsdk_bootloader.ld b/software/common/scripts/cmsdk_bootloader.ld index bc1fd29..155a8dc 100644 --- a/software/common/scripts/cmsdk_bootloader.ld +++ b/software/common/scripts/cmsdk_bootloader.ld @@ -33,8 +33,8 @@ INCLUDE "lib-nosys.ld" MEMORY { - FLASH (rx) : ORIGIN = 0x01000000, LENGTH = 0x1000 /* 4K */ - RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000 /* 64K */ + FLASH (rx) : ORIGIN = 0x10000000, LENGTH = 0x1000 /* 4K */ + RAM (rwx) : ORIGIN = 0x30000000, LENGTH = 0x3C00 /* 15K */ } INCLUDE "sections.ld" diff --git a/software/common/scripts/cmsdk_cm0.ld b/software/common/scripts/cmsdk_cm0.ld index 2ac111b..c5da2af 100644 --- a/software/common/scripts/cmsdk_cm0.ld +++ b/software/common/scripts/cmsdk_cm0.ld @@ -34,7 +34,7 @@ INCLUDE "lib-nosys.ld" MEMORY { FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x10000 /* 64K */ - RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0xFC00 /* 63K */ + RAM (rwx) : ORIGIN = 0x30000000, LENGTH = 0x3C00 /* 15K */ /* 64K is available, but reserve some space for */ /* 1) debug tester communication for debug tests */ /* 2) DMA data structure for DMA tests */ diff --git a/testcodes/aes128_tests/aes128_tests.c b/testcodes/aes128_tests/aes128_tests.c index 3dbccad..36bc549 100644 --- a/testcodes/aes128_tests/aes128_tests.c +++ b/testcodes/aes128_tests/aes128_tests.c @@ -440,7 +440,7 @@ void aes128_decrypt_dma(uint8_t *key, uint32_t nbytes, uint8_t *input, uint8_t * int main(void) { - char rx_char [256] = "soclabs AES128v1"; // init to 0 + char rx_char [256] = "SoCLabs AES128v1"; // init to 0 unsigned char id_string [16] = {0}; int i, fail=0; unsigned char * p; -- GitLab