-
Notifications
You must be signed in to change notification settings - Fork 981
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ARMmbed/master
merge from master repo
- Loading branch information
Showing
57 changed files
with
51,289 additions
and
8 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
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/frdmk32w042.c | ||
family: | ||
- source/family/freescale/k32w042/target.c | ||
- source/family/freescale/target_reset_k32w_series.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,4 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/k26f_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/max32630fthr.c | ||
family: | ||
- source/family/maxim/max32630/target.c | ||
- source/family/maxim/max32630/flash_blob.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,47 @@ | ||
common: | ||
target: | ||
- mk64fn1m0xxx12 # Closest device. | ||
core: | ||
- Cortex-M4F | ||
macros: | ||
- INTERFACE_K26F | ||
- CPU_MK26FN2M0VMD18 | ||
- DAPLINK_HIC_ID=0x97969909 # DAPLINK_HIC_ID_K26F | ||
- FLASH_SSD_CONFIG_ENABLE_FLEXNVM_SUPPORT=0 | ||
- FLASH_DRIVER_IS_FLASH_RESIDENT=1 | ||
includes: | ||
- source/hic_hal/freescale/k26f | ||
- source/hic_hal/freescale/k26f/MK26F18 | ||
- source/hic_hal/freescale/iap | ||
- projectfiles/uvision/k26f_bl/build | ||
sources: | ||
hic_hal: | ||
- source/hic_hal/freescale/k26f | ||
- source/hic_hal/freescale/k26f/MK26F18 | ||
- source/hic_hal/freescale/k26f/armcc | ||
fsl_flash_driver: | ||
- source/hic_hal/freescale/iap | ||
|
||
tool_specific: | ||
uvision: | ||
misc: | ||
ld_flags: | ||
- --predefine="-I..\..\..\source\hic_hal\freescale\k26f" | ||
c_flags: | ||
- --no_unaligned_access | ||
- --diag_suppress=66 # disable warning about enums not fitting in signed 32-bit | ||
cxx_flags: | ||
- --no_unaligned_access | ||
asm_flags: | ||
- --no_unaligned_access | ||
make_armcc: | ||
misc: | ||
ld_flags: | ||
- --predefine="-Isource\hic_hal\freescale\k26f" | ||
c_flags: | ||
- --no_unaligned_access | ||
- --diag_suppress=66 # disable warning about enums not fitting in signed 32-bit | ||
cxx_flags: | ||
- --no_unaligned_access | ||
asm_flags: | ||
- --no_unaligned_access |
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,34 @@ | ||
/** | ||
* @file frdmk32w042.c | ||
* @brief board ID for the NXP FRDM-K32W042 board | ||
* | ||
* DAPLink Interface Firmware | ||
* Copyright (c) 2017-2019, 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_board.h" | ||
#include "target_family.h" | ||
|
||
const board_info_t g_board_info = { | ||
.infoVersion = 0x0, | ||
.board_id = "0225", | ||
.family_id = kNXP_KinetisK32W_FamilyID, | ||
.flags = kEnablePageErase, | ||
.daplink_url_name = "PRODINFOHTM", | ||
.daplink_drive_name = "K32W042", | ||
.daplink_target_url = "http://www.nxp.com/frdm-k32w042", | ||
.target_cfg = &target_device, | ||
}; |
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,55 @@ | ||
/** | ||
* @file k26f_bl.c | ||
* @brief board ID and meta-data for the hardware interface circuit (HIC) based on the NXP K26F | ||
* | ||
* 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" | ||
#include "daplink_addr.h" | ||
#include "compiler.h" | ||
#include "target_board.h" | ||
#include "target_family.h" | ||
|
||
// Warning - changing the interface start will break backwards compatibility | ||
COMPILER_ASSERT(DAPLINK_ROM_IF_START == KB(64)); | ||
|
||
// k26f target information | ||
target_cfg_t target_device = { | ||
.sector_size = DAPLINK_SECTOR_SIZE, | ||
// Assume memory regions are same size. Flash algo should ignore requests | ||
// when variable sized sectors exist | ||
// .sector_cnt = ((.flash_end - .flash_start) / .sector_size); | ||
.sector_cnt = (DAPLINK_ROM_IF_SIZE / DAPLINK_SECTOR_SIZE), | ||
.flash_start = DAPLINK_ROM_IF_START, | ||
.flash_end = DAPLINK_ROM_IF_START + DAPLINK_ROM_IF_SIZE, | ||
.ram_start = 0x1fff0000, | ||
.ram_end = 0x20030000, | ||
/* .flash_algo not needed for bootloader */ | ||
}; | ||
|
||
//bootloader has no family | ||
const target_family_descriptor_t *g_target_family = NULL; | ||
|
||
const board_info_t g_board_info = { | ||
.infoVersion = 0x0, | ||
.board_id = "0000", | ||
.daplink_url_name = "HELP_FAQHTM", | ||
.daplink_drive_name = "BOOTLOADER", | ||
.daplink_target_url = "https://mbed.com/daplink", | ||
.target_cfg = &target_device, | ||
}; |
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,30 @@ | ||
/** | ||
* @file max32630fthr.c | ||
* @brief board ID for the Maxim Integrated's MAX32630FTHR | ||
* | ||
* 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_family.h" | ||
#include "target_board.h" | ||
|
||
const board_info_t g_board_info = { | ||
.board_id = "0409", | ||
.family_id = kStub_HWReset_FamilyID, | ||
.flags = kEnablePageErase, | ||
.target_cfg = &target_device, | ||
}; |
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.