mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 20:03:50 -04:00
Add FreeRTOS-Plus directory.
This commit is contained in:
parent
7bd5f21ad5
commit
f508a5f653
6798 changed files with 134949 additions and 19 deletions
15
FreeRTOS/Demo/CORTEX_MB9A310_IAR_Keil/config/Ram_VTOR.mac
Normal file
15
FreeRTOS/Demo/CORTEX_MB9A310_IAR_Keil/config/Ram_VTOR.mac
Normal file
|
@ -0,0 +1,15 @@
|
|||
execUserReset()
|
||||
{
|
||||
__message("Executing __hwReset");
|
||||
__hwReset(0);
|
||||
__message("__hwReset done");
|
||||
|
||||
__hwResetWithStrategy(0, 2);
|
||||
|
||||
__writeMemory32(0x1FFFC000, 0xE000ED08, "Memory"); //Vector table remap at 0x1FFFC000
|
||||
}
|
||||
|
||||
execUserPreload()
|
||||
{
|
||||
__writeMemory32(0x1FFFC000, 0xE000ED08, "Memory"); //Vector table remap at 0x1FFFC000
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<flash_board>
|
||||
<pass>
|
||||
<loader>$PROJ_DIR$\config\flashloader\FlashMB9A310.flash</loader>
|
||||
</pass>
|
||||
</flash_board>
|
||||
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<flash_device>
|
||||
<exe>$PROJ_DIR$\config\flashloader\FlashMB9A310.out</exe>
|
||||
<page>4</page>
|
||||
<block>2 0x4000</block>
|
||||
<block>1 0x18000</block>
|
||||
<block>3 0x20000</block>
|
||||
<flash_base>0x00000000</flash_base>
|
||||
<macro>$PROJ_DIR$\config\flashloader\FlashMB9A310.mac</macro>
|
||||
<aggregate>1</aggregate>
|
||||
<args_doc>The "--protect" argument is used to program
|
||||
protection code 0x0001 in the security code area of the
|
||||
flash.
|
||||
Note: Writing the protection code disables JTAG access
|
||||
and debug is not possible. To release security, perform
|
||||
the chip erase operation using a serial writer because
|
||||
the security cannot be released through JTAG pins.</args_doc>
|
||||
</flash_device>
|
|
@ -0,0 +1,29 @@
|
|||
setup()
|
||||
{
|
||||
/*Disable HWD*/
|
||||
__writeMemory32(0x1ACCE551, 0x40011C00, "Memory"); //Unlock WDG_LCK = 0x1ACCE551
|
||||
__writeMemory32(0xE5331AAE, 0x40011C00, "Memory"); //Unlock WDG_LCK = 0xE5331AAE
|
||||
__writeMemory32(0x00000000, 0x40011008, "Memory"); //WDG_CTL = 0
|
||||
/*Clock from High Speed internal Oscilator*/
|
||||
__writeMemory32(__readMemory32(0x40010000, "Memory") & ~0xE0, 0x40010000, "Memory");
|
||||
/*Wait*/
|
||||
__delay(5);
|
||||
__emulatorSpeed(0);
|
||||
/*Base Clock Prescaler Register*/
|
||||
__writeMemory32(0, 0x40010010, "Memory");
|
||||
|
||||
/*Vectors at RAM*/
|
||||
__writeMemory32(0x1FFFE000, 0xE000ED08, "Memory"); //Vector table remap at 0x1FFFE000
|
||||
}
|
||||
|
||||
execUserPreload()
|
||||
{
|
||||
__message "----- Prepare hardware for Flashloader -----\n";
|
||||
setup();
|
||||
}
|
||||
execUserFlashInit() // Called by debugger before loading flash loader in RAM.
|
||||
{
|
||||
__message "----- Prepare hardware for Flashloader -----\n";
|
||||
setup();
|
||||
}
|
||||
|
Binary file not shown.
31
FreeRTOS/Demo/CORTEX_MB9A310_IAR_Keil/config/mb9af314.icf
Normal file
31
FreeRTOS/Demo/CORTEX_MB9A310_IAR_Keil/config/mb9af314.icf
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*###ICF### Section handled by ICF editor, don't touch! ****/
|
||||
/*-Editor annotation file-*/
|
||||
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
|
||||
/*-Specials-*/
|
||||
define symbol __ICFEDIT_intvec_start__ = 0x0;
|
||||
/*-Memory Regions-*/
|
||||
define symbol __ICFEDIT_region_ROM_start__ = 0x0;
|
||||
define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
|
||||
define symbol __ICFEDIT_region_RAM_start__ = 0x1FFFC000;
|
||||
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
|
||||
/*-Sizes-*/
|
||||
define symbol __ICFEDIT_size_cstack__ = 0x400;
|
||||
define symbol __ICFEDIT_size_heap__ = 0x8;
|
||||
/**** End of ICF editor section. ###ICF###*/
|
||||
|
||||
|
||||
define memory mem with size = 4G;
|
||||
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
|
||||
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
|
||||
|
||||
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
|
||||
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
|
||||
|
||||
initialize by copy { readwrite };
|
||||
do not initialize { section .noinit };
|
||||
|
||||
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
|
||||
|
||||
place in ROM_region { readonly };
|
||||
place in RAM_region { readwrite,
|
||||
block CSTACK, block HEAP };
|
Loading…
Add table
Add a link
Reference in a new issue