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

Support for nRF52810 #1

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 38 additions & 0 deletions boards/generic_nrf52810.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"build": {
"arduino":{
"ldscript": "nrf52810_xxaa.ld"
},
"core": "nRF5",
"cpu": "cortex-m4",
"extra_flags": "-DARDUINO_GENERIC",
"f_cpu": "64000000L",
"mcu": "nrf52810_xxaa",
"variant": "Generic"
},
"connectivity": [
"bluetooth"
],
"debug": {
"jlink_device": "nRF52810_xxAA",
"svd_path": "nrf52.svd"
},
"frameworks": [
"arduino"
],
"name": "Generic nRF52810",
"upload": {
"maximum_ram_size": 24576,
"maximum_size": 180224,
"protocol": "jlink",
"protocols": [
"jlink",
"nrfjprog",
"stlink",
"cmsis-dap",
"blackmagic"
]
},
"url": "https://www.nordicsemi.com/Products/Bluetooth-Low-Energy",
"vendor": "Generic"
}
3 changes: 2 additions & 1 deletion builder/frameworks/arduino/nrf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@
]
)

if board.get("build.cpu") == "cortex-m4":
# only nRF5283x and nRF52840 have FPUs
if any(mcu in board.get("build.mcu") for mcu in {'5283', '52840'}):
env.Append(
ASFLAGS=[
"-mfloat-abi=hard",
Expand Down