Browse Source

testing: fix str710 test case now builds

Make the test case easily adjustable in size. str710
has very peculiar flash sector layout, nice for testing,
but a larget test_rom.elf is required.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
tags/v0.4.0-rc2
Øyvind Harboe 11 years ago
parent
commit
87cb29dcfe
4 changed files with 28 additions and 12 deletions
  1. +2
    -0
      testing/examples/STR710Test/.gitignore
  2. +6
    -6
      testing/examples/STR710Test/prj/hitex_str7_ram.ld
  3. +6
    -6
      testing/examples/STR710Test/prj/hitex_str7_rom.ld
  4. +14
    -0
      testing/examples/STR710Test/src/main.c

+ 2
- 0
testing/examples/STR710Test/.gitignore View File

@@ -0,0 +1,2 @@
.dep
src/main.lst

+ 6
- 6
testing/examples/STR710Test/prj/hitex_str7_ram.ld View File

@@ -82,17 +82,17 @@ SECTIONS
{
*(.init)
*(.fini)
PROVIDE_HIDDEN (__preinit_array_start = .);
PROVIDE (__preinit_array_start = .);
KEEP (*(.preinit_array))
PROVIDE_HIDDEN (__preinit_array_end = .);
PROVIDE_HIDDEN (__init_array_start = .);
PROVIDE (__preinit_array_end = .);
PROVIDE (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array))
PROVIDE_HIDDEN (__init_array_end = .);
PROVIDE_HIDDEN (__fini_array_start = .);
PROVIDE (__init_array_end = .);
PROVIDE (__fini_array_start = .);
KEEP (*(.fini_array))
KEEP (*(SORT(.fini_array.*)))
PROVIDE_HIDDEN (__fini_array_end = .);
PROVIDE (__fini_array_end = .);
} >DATA

. = ALIGN(4);


+ 6
- 6
testing/examples/STR710Test/prj/hitex_str7_rom.ld View File

@@ -83,17 +83,17 @@ SECTIONS
{
*(.init)
*(.fini)
PROVIDE_HIDDEN (__preinit_array_start = .);
PROVIDE (__preinit_array_start = .);
KEEP (*(.preinit_array))
PROVIDE_HIDDEN (__preinit_array_end = .);
PROVIDE_HIDDEN (__init_array_start = .);
PROVIDE (__preinit_array_end = .);
PROVIDE (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array))
PROVIDE_HIDDEN (__init_array_end = .);
PROVIDE_HIDDEN (__fini_array_start = .);
PROVIDE (__init_array_end = .);
PROVIDE (__fini_array_start = .);
KEEP (*(.fini_array))
KEEP (*(SORT(.fini_array.*)))
PROVIDE_HIDDEN (__fini_array_end = .);
PROVIDE (__fini_array_end = .);
} >CODE

. = ALIGN(4);


+ 14
- 0
testing/examples/STR710Test/src/main.c View File

@@ -41,6 +41,20 @@
*/
#include "typedefs.h"

/* Increase the size of this dummy global data to create a larger ROM image */
static const char test[] =
"ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
"ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
"ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
"ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
"ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
"ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
"ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
"ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
"ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa";



/*=========================================================================*/
/* DEFINE: All Structures and Common Constants */
/*=========================================================================*/


Loading…
Cancel
Save