Skip to content
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

Adds STM32G0B1 port. #810

Merged
merged 40 commits into from
Jan 18, 2025
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
7307764
initial copy from f0x
Aug 27, 2023
6d23706
updated interunt vectors
Aug 27, 2023
a854ae5
adding g0 hal compilation
Aug 27, 2023
e208f76
adding target for g0 nucleo
Aug 27, 2023
358e5e4
Merge branch 'master' of https://github.com/bakerstu/openMRN into bjb…
Aug 27, 2023
db7670e
Fixes G0B1 compilation.
Aug 27, 2023
297342d
added cube subfolders for g0
Aug 27, 2023
5a7c4ef
formatting updates
Aug 27, 2023
6528508
formatting updates
Aug 27, 2023
3bda9c2
Added includes for G0B1 processor
Aug 27, 2023
8032f8c
updated functions for G0 processor, now compiles, but still a work in…
Aug 27, 2023
76ae2ff
Corrected compile errors for STM32G0B1; todo: FDCAN
Sep 24, 2023
e07a1d5
Fixed linker errors with clock settings.
Oct 24, 2023
dcebf41
Merge branch 'master' into bjb-stm32g0b1
balazsracz Jan 16, 2025
b22858d
Fixes compilation errors.
balazsracz Jan 16, 2025
0435541
Moves some files to a generic directory.
balazsracz Jan 16, 2025
f271237
Recreates symlinks.
balazsracz Jan 16, 2025
c075fd8
Adds find emulator to g0b1 directory.
balazsracz Jan 16, 2025
136630c
Removes SysTick implementations from the HAL compiled sources for the…
balazsracz Jan 18, 2025
a5339af
References find-emulator.mk for debug access.
balazsracz Jan 18, 2025
8032258
Adds board support files for the G0B1 railcom board.
balazsracz Jan 18, 2025
119b366
Adds blink_raw target for the G0B1 railcom board.
balazsracz Jan 18, 2025
c31592d
Revert undesired change in F091 application.
balazsracz Jan 18, 2025
2e21c33
Updates in default_handler.h:
balazsracz Jan 18, 2025
5cbc162
Fixes RAM size for G0B1 (it is 128K RAM, not 64k).
balazsracz Jan 18, 2025
5b13d08
Fix broken sentence in comments.
balazsracz Jan 18, 2025
e5247a5
Adds makefile code to factory reset a G0B1.
balazsracz Jan 18, 2025
5630c5d
Fixes clock_setup and blinker functions for G0B1.
balazsracz Jan 18, 2025
72a25c8
Fix comment.
balazsracz Jan 18, 2025
c3709fa
Adds io-board port for g0b1 railcom (in serial mode only).
balazsracz Jan 18, 2025
fee0a11
Adds generated makefiles.
balazsracz Jan 18, 2025
2769f5f
Fixes HwInit of the nucleo-g0b1 board as well.
balazsracz Jan 18, 2025
8c25b66
Adds missing find-emulator symlink
balazsracz Jan 18, 2025
38c464f
Switches railcom board to crystal HSE.
balazsracz Jan 18, 2025
482c589
Adds a warning about poor clock accuracy.
balazsracz Jan 18, 2025
6c23c39
Reverts (meaningful) changes in Stm32Can.hxx.
balazsracz Jan 18, 2025
02b6587
Fixes I2C clock rate.
balazsracz Jan 18, 2025
a1e9046
Updates file header comments.
balazsracz Jan 18, 2025
f6174b8
removes dead code.
balazsracz Jan 18, 2025
b69f9b2
Fixes file header comments.
balazsracz Jan 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixes file header comments.
balazsracz committed Jan 18, 2025
commit b69f9b281e27df564a317a8934854df8ea37c4ea
9 changes: 5 additions & 4 deletions boards/st-stm32g0b1rc-railcom/HwInit.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** \copyright
* Copyright (c) 2018, Balazs Racz
* Copyright (c) 2025, Balazs Racz
* Copyright (c) 2023, Brian Barnt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,11 +27,11 @@
*
* \file HwInit.cxx
*
* This file represents the hardware initialization for the STM32G0B1RE Nucelo
* board (bare).
* This file represents the hardware initialization for the G0B1-based RailCom
* board.
*
* @author Balazs Racz & Brian Barnt
* @date August 26, 2023
* @date 18 Jan 2025
*/

#include <new>
38 changes: 38 additions & 0 deletions boards/st-stm32g0b1rc-railcom/hardware.hxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
/** \copyright
* Copyright (c) 2025, Balazs Racz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* \file hardware.hxx
*
* Pinout definitions for the G0B1 based RailCom board.
*
* @author Balazs Racz
* @date 18 Jan 2025
*/

#ifndef _HARDWARE_HXX_
#define _HARDWARE_HXX_

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No file block header.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

#include "Stm32Gpio.hxx"
#include "utils/GpioInitializer.hxx"
@@ -11,3 +47,5 @@ typedef GpioInitializer<LED_GREEN_RAW_Pin, SW_USER_Pin> GpioInit;

typedef LED_GREEN_RAW_Pin BLINKER_RAW_Pin;
typedef BLINKER_Pin LED_GREEN_Pin;

#endif // _HARDWARE_HXX_
3 changes: 2 additions & 1 deletion boards/st-stm32g0b1re-nucleo/HwInit.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** \copyright
* Copyright (c) 2018, Balazs Racz
* Copyright (c) 2025, Balazs Racz
* Copyright (c) 2023, Brian Barnt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
39 changes: 39 additions & 0 deletions boards/st-stm32g0b1re-nucleo/hardware.hxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
/** \copyright
* Copyright (c) 2025, Balazs Racz
* Copyright (c) 2023, Brian Barnt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* \file hardware.hxx
*
* Pinout definitions for the Nucleo-G0B1 board.
*
* @author Balazs Racz & Brian Barnt
* @date 18 Jan 2025
*/

#ifndef _HARDWARE_HXX_
#define _HARDWARE_HXX_

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing file block header.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

#include "Stm32Gpio.hxx"
#include "utils/GpioInitializer.hxx"
@@ -11,3 +48,5 @@ typedef GpioInitializer<LED_GREEN_RAW_Pin,SW_USER_Pin> GpioInit;

typedef LED_GREEN_RAW_Pin BLINKER_RAW_Pin;
typedef BLINKER_Pin LED_GREEN_Pin;

#endif // _HARDWARE_HXX_
2 changes: 1 addition & 1 deletion boards/st-stm32g0b1xx/startup.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** \copyright
* Copyright (c) 2015, Stuart W Baker
* Copyright (c) 2015-2025, Stuart W Baker, Balazs Racz, Brian Barnt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without