mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 11:53:53 -04:00
Added demo for the MB9A314 - the IAR project is working, the Keil one is not set up for the correct chip yet.
This commit is contained in:
parent
9c92745440
commit
bcbd6c8a7d
24 changed files with 27442 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
BIN
Demo/CORTEX_MB9A310_IAR_Keil/config/flashloader/FlashMB9A310.out
Normal file
BIN
Demo/CORTEX_MB9A310_IAR_Keil/config/flashloader/FlashMB9A310.out
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue