Skip to content

fixed Arduino Nano R4: CI, CAN, OPAMP & freeRTOS #485

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

Merged
merged 4 commits into from
Aug 12, 2025
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
6 changes: 6 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
id: git_minima
- fqbn: arduino-git:renesas:unor4wifi
id: git_wifi
- fqbn: arduino-git:renesas:nanor4
id: git_nanor4


# make board type-specific customizations to the matrix jobs
Expand Down Expand Up @@ -112,6 +114,10 @@ jobs:
fqbn: "arduino-git:renesas:minima"
additional-sketch-paths: |
- libraries/OPAMP
- board:
fqbn: "arduino-git:renesas:nanor4"
additional-sketch-paths: |
- libraries/OPAMP
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion libraries/Arduino_CAN/src/R7FA4M1_CAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "R7FA4M1_CAN.h"

#if defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4)
#if defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4) || defined(ARDUINO_NANO_R4)

#include <IRQManager.h>

Expand Down
2 changes: 1 addition & 1 deletion libraries/Arduino_CAN/src/R7FA4M1_CAN.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <Arduino.h>

#if defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4)
#if defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4) || defined(ARDUINO_NANO_R4)

#include "api/HardwareCAN.h"

Expand Down
4 changes: 2 additions & 2 deletions libraries/Arduino_FreeRTOS/src/Arduino_FreeRTOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#pragma once

#if !defined(ARDUINO_PORTENTA_C33) && !defined(ARDUINO_MINIMA) && !defined(ARDUINO_UNOWIFIR4)
# error "FreeRTOS is currently only supported for the Portenta C33, Arduino Uno R4 Minima and Arduino Uno R4 WiFi."
#if !defined(ARDUINO_PORTENTA_C33) && !defined(ARDUINO_MINIMA) && !defined(ARDUINO_UNOWIFIR4) && !defined(ARDUINO_NANO_R4)
# error "FreeRTOS is currently only supported for the Portenta C33, Arduino Uno R4 Minima, Arduino Uno R4 WiF and Arduino Nano R4."
#endif

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion libraries/Arduino_FreeRTOS/src/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ FSP_HEADER
#ifndef configTOTAL_HEAP_SIZE
# if defined(ARDUINO_PORTENTA_C33)
# define configTOTAL_HEAP_SIZE (0x8000)
# elif (defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4))
# elif (defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4)) || defined(ARDUINO_NANO_R4)
# define configTOTAL_HEAP_SIZE (0x2000) /* R7FA4M1AB has 32 kByte RAM total, so we only allocate 8 kByte RAM for FreeRTOS heap. */
# else
# error "Define the total allowed heap size dependent on your MCU's available RAM."
Expand Down
2 changes: 1 addition & 1 deletion libraries/OPAMP/src/OPAMP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <Arduino.h>

/* Make sure this library fails to compile for unsupported boards. */
#if !defined(ARDUINO_UNOWIFIR4) && !defined(ARDUINO_MINIMA)
#if !defined(ARDUINO_UNOWIFIR4) && !defined(ARDUINO_MINIMA) && !defined(ARDUINO_NANO_R4)
#error "Unsupported board for OPAMP library."
#endif

Expand Down
Loading