Skip to content

Commit 4446649

Browse files
committed
[nRF54] build with Core 0.9.135
1 parent 64327dd commit 4446649

3 files changed

Lines changed: 13 additions & 31 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ jobs:
421421
if [[ "$BOARD" =~ "nrf54l15clean:nrf54l15clean:" ]]; then
422422
arduino --pref "boardsmanager.additional.urls=https://raw.githubusercontent.com/lolren/NRF54L15-Clean-Arduino-core/refs/heads/main/package_nrf54l15clean_index.json" --save-prefs ;
423423
# arduino --pref "boardsmanager.additional.urls=https://github.com/lolren/nrf54-arduino-core/releases/download/v0.7.0/package_nrf54l15clean_index.json" --save-prefs ;
424-
arduino --install-boards nrf54l15clean:nrf54l15clean:0.9.120 ;
424+
arduino --install-boards nrf54l15clean:nrf54l15clean:0.9.135 ;
425425
arduino --pref "custom_clean_cpu=xiao_nrf54l15_cpu128" --save-prefs ;
426426
arduino --pref "custom_clean_vpr=xiao_nrf54l15_off" --save-prefs ;
427427
arduino --pref "custom_clean_zigbee=xiao_nrf54l15_off" --save-prefs ;

software/firmware/source/SoftRF/src/platform/iomap/Lierda_AM36_PK02.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define SOC_GPIO_PIN_AM36_SCL1 10
3131

3232
// User button
33-
#define SOC_GPIO_PIN_AM36_BUTTON_AUX 4
33+
#define SOC_GPIO_PIN_AM36_BUTTON 4
3434

3535
// NeoPixel
3636
#define SOC_GPIO_PIN_AM36_LED 18

software/firmware/source/SoftRF/src/platform/nRF54.cpp

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -251,33 +251,15 @@ enum {
251251

252252
PY25Q64HA_INDEX,
253253

254-
NRF54_EXTERNAL_FLASH_DEVICE_COUNT
254+
EXTERNAL_FLASH_DEVICE_COUNT
255255
};
256256

257-
#if !defined(MX25R6435F)
258-
// Settings for the Macronix MX25R6435F 8MiB SPI flash.
259-
// Datasheet:
260-
// http://www.macronix.com/Lists/Datasheet/Attachments/7428/MX25R6435F,%20Wide%20Range,%2064Mb,%20v1.4.pdf
261-
// By default its in lower power mode which can only do 8mhz. In high power mode
262-
// it can do 80mhz.
263-
#define MX25R6435F \
264-
{ \
265-
.total_size = (1UL << 23), /* 8 MiB */ \
266-
.start_up_time_us = 5000, .manufacturer_id = 0xc2, \
267-
.memory_type = 0x28, .capacity = 0x17, .max_clock_speed_mhz = 8, \
268-
.quad_enable_bit_mask = 0x40, .has_sector_protection = false, \
269-
.supports_fast_read = true, .supports_qspi = true, \
270-
.supports_qspi_writes = true, .write_status_register_split = false, \
271-
.single_status_byte = true, .is_fram = false, \
272-
}
273-
#endif /* MX25R6435F */
274-
275257
/// List of all possible flash devices used by nRF54 boards
276-
static SPIFlash_Device_t nrf54_possible_devices[] = {
258+
static SPIFlash_Device_t possible_devices[] = {
277259
// Nordic Semi L15 and LM20 DKs
278260
[MX25R6435F_INDEX] = MX25R6435F,
279261
// Seeed Studio XIAO LM20A
280-
[PY25Q64HA_INDEX] = P25Q64HA_ALT_JEDEC,
262+
[PY25Q64HA_INDEX] = PY25Q64HA_ALT_JEDEC,
281263
};
282264

283265
#include <SdFat_Adafruit_Fork.h>
@@ -363,9 +345,9 @@ static void nRF54_setup()
363345
{
364346
case NRF54_LR2021EVK1XCS1:
365347
#if defined(ARDUINO_XIAO_NRF54LM20A_CLEAN)
366-
nrf54_possible_devices[PY25Q64HA_INDEX].max_clock_speed_mhz = 33;
367-
nrf54_possible_devices[PY25Q64HA_INDEX].supports_qspi = false;
368-
nrf54_possible_devices[PY25Q64HA_INDEX].supports_qspi_writes = false;
348+
possible_devices[PY25Q64HA_INDEX].max_clock_speed_mhz = 33;
349+
possible_devices[PY25Q64HA_INDEX].supports_qspi = false;
350+
possible_devices[PY25Q64HA_INDEX].supports_qspi_writes = false;
369351
#if 1
370352
FlashTrans = new Adafruit_FlashTransport_QSPI_NRF54(
371353
SOC_GPIO_PIN_SFL_EVK_SCK,
@@ -386,9 +368,9 @@ static void nRF54_setup()
386368

387369
case NRF54_PCA10156:
388370
#if defined(ARDUINO_NRF54L15DK_PCA10156)
389-
nrf54_possible_devices[MX25R6435F_INDEX].max_clock_speed_mhz = 33;
390-
nrf54_possible_devices[MX25R6435F_INDEX].supports_qspi = false;
391-
nrf54_possible_devices[MX25R6435F_INDEX].supports_qspi_writes = false;
371+
possible_devices[MX25R6435F_INDEX].max_clock_speed_mhz = 33;
372+
possible_devices[MX25R6435F_INDEX].supports_qspi = false;
373+
possible_devices[MX25R6435F_INDEX].supports_qspi_writes = false;
392374
#if 0
393375
FlashTrans = new Adafruit_FlashTransport_QSPI_NRF54(
394376
SOC_GPIO_PIN_SFL_DK_SCK,
@@ -416,8 +398,8 @@ static void nRF54_setup()
416398
FlashTrans->end();
417399

418400
SPIFlash = new Adafruit_SPIFlash(FlashTrans);
419-
nRF54_has_spiflash = SPIFlash->begin(nrf54_possible_devices,
420-
NRF54_EXTERNAL_FLASH_DEVICE_COUNT);
401+
nRF54_has_spiflash = SPIFlash->begin(possible_devices,
402+
EXTERNAL_FLASH_DEVICE_COUNT);
421403
}
422404

423405
if (nRF54_has_spiflash) {

0 commit comments

Comments
 (0)