forked from ARMmbed/DAPLink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mahesh Mahadevan <[email protected]>
- Loading branch information
1 parent
d6890f7
commit f87eae1
Showing
24 changed files
with
600 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/lpc4322_bl.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/lpc54114xpresso.c | ||
target: | ||
- source/target/nxp/lpc54114/target.c | ||
- source/target/nxp/target_reset.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
common: | ||
target: | ||
- lpc4322_jet100 | ||
macros: | ||
- INTERFACE_LPC4322 | ||
- CORE_M4 | ||
- INTERNAL_FLASH | ||
- DAPLINK_HIC_ID=0x97969905 # DAPLINK_HIC_ID_LPC4322 | ||
includes: | ||
- source/hic_hal/nxp/lpc4322 | ||
- source/hic_hal/nxp/lpc4322 | ||
sources: | ||
hic_hal: | ||
- source/hic_hal/nxp/lpc4322 | ||
- source/hic_hal/nxp/lpc4322/armcc | ||
- source/hic_hal/nxp/lpc4322 | ||
|
||
tool_specific: | ||
uvision: | ||
misc: | ||
ld_flags: | ||
- --predefine="-I..\..\..\source\hic_hal\nxp\lpc4322" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* @file lpc4322_bl.c | ||
* @brief board ID and meta-data for the hardware interface circuit (HIC) based on the NXP LPC4322 | ||
* | ||
* DAPLink Interface Firmware | ||
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#include "target_config.h" | ||
|
||
const char *board_id = "0000"; | ||
|
||
// lpc4322 target information | ||
target_cfg_t target_device = { | ||
.sector_size = 65536, | ||
// Assume memory is regions are same size. Flash algo should ignore requests | ||
// when variable sized sectors exist | ||
// .sector_cnt = ((.flash_end - .flash_start) / .sector_size); | ||
.sector_cnt = 2, | ||
.flash_start = 0x1A010000, | ||
.flash_end = 0x1A030000, | ||
.ram_start = 0x10000000, | ||
.ram_end = 0x10008000, | ||
/* .flash_algo not needed for bootloader */ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* @file lpc54114xpresso.c | ||
* @brief board ID for the NXP LPC54114Xpresso board | ||
* | ||
* DAPLink Interface Firmware | ||
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#include "virtual_fs.h" | ||
|
||
const char *board_id = "1054"; | ||
|
||
// Override default behavior | ||
// | ||
// URL_NAME and DRIVE_NAME must be 11 characters excluding | ||
// the null terminated character | ||
// Note - 4 byte alignemnt required as workaround for ARMCC compiler bug with weak references | ||
__attribute__((aligned(4))) | ||
const vfs_filename_t daplink_url_name = "PRODINFOHTM"; | ||
__attribute__((aligned(4))) | ||
const vfs_filename_t daplink_drive_name = "LPC54114"; | ||
__attribute__((aligned(4))) | ||
const char *const daplink_target_url = "http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-mcus/software-tools/lpcxpresso-boards/lpcxpresso54114-board:OM13089"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* @file IO_Config.h | ||
* @brief | ||
* | ||
* DAPLink Interface Firmware | ||
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
|
||
// Override all defines if IO_CONFIG_OVERRIDE is defined | ||
#ifndef __IO_CONFIG_H__ | ||
#define __IO_CONFIG_H__ | ||
|
||
#include "daplink.h" | ||
#include "LPC43xx.h" | ||
|
||
// This GPIO configuration is only valid for the LPC4322 HIC | ||
COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_LPC4322); | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.