New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stm32f103xb interface #257
Changes from all commits
44097bc
1ebf44a
2a19cb5
9a71392
595b7d8
47291b0
5ffac26
d76199d
794c1b6
63d9b92
91daf85
fc676b3
a3f7f28
b3f4432
b580f5b
f662439
ba25235
1f4ddb4
eedc5fc
2c1d5e4
632ac80
5bf65fb
0ac2e02
29ddff4
9b8de20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32f072rb.c | ||
target: | ||
- source/target/st/stm32f072rb/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32f103rb.c | ||
target: | ||
- source/target/st/stm32f103rb/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32f103xb_bl.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32f207zg.c | ||
target: | ||
- source/target/st/stm32f207zg/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32f334r8.c | ||
target: | ||
- source/target/st/stm32f334r8/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32f401re.c | ||
target: | ||
- source/target/st/stm32f401re/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32f411re.c | ||
target: | ||
- source/target/st/stm32f411/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32f429zi.c | ||
target: | ||
- source/target/st/stm32f429zi/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32f746zg.c | ||
target: | ||
- source/target/st/stm32f746zg/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/stm32l476rg.c | ||
target: | ||
- source/target/st/stm32l476rg/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
common: | ||
sources: | ||
board: | ||
- source/board/ublox_evk_odin_w2.c | ||
target: | ||
- source/target/st/stm32f439zi/target.c | ||
- source/target/st/target_reset.c |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
common: | ||
target: | ||
- stm32f103xb | ||
core: | ||
- Cortex-M3 | ||
macros: | ||
- INTERFACE_STM32F103XB | ||
- USE_HAL_DRIVER | ||
- STM32F103xB | ||
- DAPLINK_HIC_ID=0x97969908 # DAPLINK_HIC_ID_STM32F103XB | ||
- __packed=__packed # Prevent redefinition of __packed with ARMCC | ||
- DAPLINK_NO_ASSERT_FILENAMES | ||
includes: | ||
- source/hic_hal/stm32/stm32f103xb | ||
- source/hic_hal/stm32/stm32f103xb/cmsis | ||
- source/hic_hal/stm32/stm32f103xb/STM32F1xx_HAL_Driver | ||
- source/hic_hal/stm32/stm32f103xb/STM32F1xx_HAL_Driver/Inc | ||
sources: | ||
hic_hal: | ||
- source/hic_hal/stm32/stm32f103xb | ||
- source/hic_hal/stm32/stm32f103xb/cmsis | ||
- source/hic_hal/stm32/stm32f103xb/armcc | ||
- source/hic_hal/stm32/stm32f103xb/STM32F1xx_HAL_Driver/Src | ||
|
||
tool_specific: | ||
uvision: | ||
misc: | ||
ld_flags: | ||
- --predefine="-I..\..\..\source\hic_hal\stm32\stm32f103xb" | ||
c_flags: | ||
- --no_unaligned_access | ||
cxx_flags: | ||
- --no_unaligned_access | ||
asm_flags: | ||
- --no_unaligned_access | ||
make_armcc: | ||
misc: | ||
ld_flags: | ||
- --predefine="-Isource\hic_hal\stm32\stm32f103xb" | ||
c_flags: | ||
- --no_unaligned_access | ||
cxx_flags: | ||
- --no_unaligned_access | ||
asm_flags: | ||
- --no_unaligned_access |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @file stm32f103rb.c | ||
* @brief board ID for the STM32 NUCLEO-F103RB 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. | ||
*/ | ||
|
||
const char *board_id = "0720"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @file stm32f103rb.c | ||
* @brief board ID for the STM32 NUCLEO-F103RB 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. | ||
*/ | ||
|
||
const char *board_id = "0700"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* @file stm32f103_bl.c | ||
* @brief board ID and meta-data for the hardware interface circuit (HIC) based on STM32F103XB | ||
* | ||
* 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"; | ||
|
||
// stm32f103 target information | ||
target_cfg_t target_device = { | ||
.sector_size = 0x400, | ||
// 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 = ((KB(128) - KB(48)) / 0x400), | ||
.flash_start = 0x08000000 + KB(48), | ||
.flash_end = 0x08000000 + KB(128), | ||
.ram_start = 0x20000000, | ||
.ram_end = 0x20005000 | ||
/* .flash_algo not needed for bootloader */ | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @file stm32f103rb.c | ||
* @brief board ID for the STM32 NUCLEO-F103RB board | ||
* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, different file and no NXP Nucleo. |
||
* 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. | ||
*/ | ||
|
||
const char *board_id = "0835"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @file stm32f103rb.c | ||
* @brief board ID for the STM32 NUCLEO-F103RB board | ||
* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dito. |
||
* 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. | ||
*/ | ||
|
||
const char *board_id = "0735"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @file stm32f401re.c | ||
* @brief board ID for the STM32 NUCLEO-F401RE board | ||
* | ||
* DAPLink Interface Firmware | ||
* Copyright (c) 2017-2017, 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. | ||
*/ | ||
|
||
const char *board_id = "0720"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @file stm32f103rb.c | ||
* @brief board ID for the STM32 NUCLEO-F103RB board | ||
* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dito. |
||
* 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. | ||
*/ | ||
|
||
const char *board_id = "0740"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* @file stm32f429zi.c | ||
* @brief board ID for the STM32 NUCLEO-F429ZI board | ||
* | ||
* DAPLink Interface Firmware | ||
* Copyright (c) 2017-2017, 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. | ||
*/ | ||
|
||
const char *board_id = "0796"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.