Skip to content

Commit

Permalink
Examples: Fixed M2351 MDK project.
Browse files Browse the repository at this point in the history
- partition_gen.h still contained an issue caused by a tool bug that
  has been fixed in the meanwhile.
- Updated README to clarify that LEDs are used instead of UART
  output.
  • Loading branch information
JonatanAntoni committed Aug 1, 2019
1 parent 8c41ff4 commit 8803e9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Examples/M2351/MDK/Secure/partition_gen.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @brief CMSIS-Core(M) Initial Setup for Secure / Non-Secure Zones for
* Nuvoton M2351
* @version V1.0.0 (FreeMarker generated)
* @date 05-Jul-2019 16:28:52
* @date 1 Aug 2019 11:55:51
******************************************************************************/
/*
* Copyright (c) 2009-2019 Arm Limited. All rights reserved.
Expand Down Expand Up @@ -144,7 +144,7 @@
/*
// <o>End Address <0x1F-0xFFFFFFFF>
*/
#define SAU_INIT_END3 0x0 /* end address of SAU region 0 */
#define SAU_INIT_END3 0x5FFFFFFF /* end address of SAU region 0 */

/*
// <o>Region is
Expand Down Expand Up @@ -305,7 +305,7 @@
// <o.30> Interrupt 30: EPWM1_P1_INT <0=> Secure state <1=> Non-Secure state
// <o.31> Interrupt 31: EPWM1_P2_INT <0=> Secure state <1=> Non-Secure state
*/
#define NVIC_INIT_ITNS0_VAL 0x00040000
#define NVIC_INIT_ITNS0_VAL 0x00041000

/*
// </e>
Expand Down
4 changes: 2 additions & 2 deletions Examples/M2351/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ following steps:
Both projects, Secure and NonSecure needs to be compiled in order.
5. Assure Secure is the active project.
6. Connect the NuMaker-PFM-M2351 using a Micro-USB cable at ICEJ.
7. Assure that ST-Link Debugger is selected and the NULink Debugger is used.
8. Launch a debug session and watch the serial console output.
7. Assure that NULink Debugger is selected.
8. Launch a debug session and watch the LED's LEDG and LEDY are blinking.
12 changes: 6 additions & 6 deletions Examples/M2351/Zone/M2351.azone
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<azone xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="azone.xsd">
<azone xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.2.0" xs:noNamespaceSchemaLocation="azone.xsd">
<rzone name="M2351.rzone"/>
<partition>
<memory access="rw" fixed="1" info="Secure RAM for DATA section" name="DATA_S" offset="0x0" parent="SRAM_S" privilege="" security="s" size="0x8000"/>
<memory access="rw" fixed="1" info="Non-secure RAM for DATA section" name="DATA_NS" offset="0x8000" parent="SRAM_NS" privilege="" security="n" size="0x10000"/>
<memory fixed="1" info="Non-secure FLASH for CODE execution" name="CODE_NS" offset="0x40000" parent="FLASH_NS" size="0x40000"/>
<memory access="rx" fixed="1" info="Secure FLASH for CODE execution" name="CODE_S" offset="0x0" parent="FLASH_S" privilege="" security="s" size="0x3F800" startup="1"/>
<memory fixed="1" info="Secure FLASH for CODE Veneer table" name="VENEER" offset="0x3F800" parent="FLASH_S" size="0x800"/>
<memory fixed="1" info="Non-secure FLASH for CODE execution" name="CODE_NS" offset="0x40000" parent="FLASH_NS" size="0x40000"/>
<peripheral access="prw" group="UART" info="UART Register Map" name="UART1" offset="0x0" privilege="" security="n" size="0x4C" start="0x50071000" start_s="0x40071000"/>
<peripheral access="prw" group="UART" info="UART Register Map" name="UART0" offset="0x0" privilege="" security="s" size="0x4C" start="0x50070000" start_s="0x40070000"/>
<memory access="rw" fixed="1" info="Non-secure RAM for DATA section" name="DATA_NS" offset="0x8000" parent="SRAM_NS" privilege="" security="n" size="0x10000"/>
<memory access="rw" fixed="1" info="Secure RAM for DATA section" name="DATA_S" offset="0x0" parent="SRAM_S" privilege="" security="s" size="0x8000"/>
<peripheral access="prw" group="UART" info="UART Register Map" name="UART0" privilege="" security="s" size="0x4C" start="0x50070000" start_s="0x40070000"/>
<peripheral access="prw" group="UART" info="UART Register Map" name="UART1" privilege="" security="n" size="0x4C" start="0x50071000" start_s="0x40071000"/>
</partition>
<zones>
<zone Dname="M2351KIAAE" Pname="" info="" name="Secure" security="s">
Expand Down

0 comments on commit 8803e9d

Please sign in to comment.