You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The supported chip lists shows some Renesas R7FA parts, but notably the R7FA4M1 (RA4M1) part is not listed.
When attaching I get the error shown in the title. Unknown ARM Cortex-M Designer 423 Partno 16 M4
I've looked in the renesas_ra.c file and can see some support for the RA family. There are defines for RA2A1 and RA4M2, there's an emum for PNR_SERIES_RA4M1, etc.
My guess is it is a simple matter of figuring out the correct parameters and creating a PR for the changes.
I'm reasonably new to this sort of thing so a few pointers on where to get started would be super helpful.
I have a EK-RA4M1 development kit and also a bread boarded 48QFP test circuit.
I'm using v2.3 of the genuine BPM from 1BitSquared.
The main differences I can see between RA4M1 and RA4M2 are
Attribute
RA4M1
RA4M2
Core
Cortex M4
Cortex M33
Speed
48MHz
100MHz
RAM
32kB
128kB
Flash
256kB
512kB
The RA4M1 comes in a 40QFN package with 5v tolerant pins so makes an easier transition for a legacy project I'm working on.
The text was updated successfully, but these errors were encountered:
The flash registers that store the chip identification and info have different locations.
Register
RA4M1
RA4M2
UIDR0-3
0x0100_3C00 + 14h/20h
0x0100_8190 + n × 4
PNR 0-3
0x0100_3C00 + 24h/30h
0x0100_80F0 + n × 4
MCUVER
0x0100_3C00 + 44h
0x0100_81B0
The base address shown for the RA4M1 is tagged as FMIFRT in the documentation. I notice there is code referencing this for some of the chips in the renesas_ra.c file
In addition the RA4M2 has a lot of other register controlling access to protection bits and the startup code. However these are probably not relevant to just reading from the chip.
My next question concerns the "magic numbers" in the renesas_ra.c file
Where do these come from ? How would I add definitions for the RA4M1 ?
It also appears that even within the RA series there are two types of flash (MF3/4 and RV40)
Part
Flash Type
RA2A1
MF3
RA4M1
MF3
RA4M2
RV40
RA4M3
RV40
RA6M2
RV40
So does that will mean access to the flash will need to follow the code for the RA2A1 ? I note there is a comment in the code in function renesas_add_flash
/* FIXME: implement MF3/4 flash */
so it looks like this has not been made to work yet.
fastbike
changed the title
Renases R7FA4M1: Unknown ARM Cortex-M Designer 423 Partno 16 M4
Renesas R7FA4M1: Unknown ARM Cortex-M Designer 423 Partno 16 M4
Jun 11, 2024
The supported chip lists shows some Renesas R7FA parts, but notably the R7FA4M1 (RA4M1) part is not listed.
When attaching I get the error shown in the title.
Unknown ARM Cortex-M Designer 423 Partno 16 M4
I've looked in the renesas_ra.c file and can see some support for the RA family. There are defines for RA2A1 and RA4M2, there's an emum for PNR_SERIES_RA4M1, etc.
My guess is it is a simple matter of figuring out the correct parameters and creating a PR for the changes.
I'm reasonably new to this sort of thing so a few pointers on where to get started would be super helpful.
I have a EK-RA4M1 development kit and also a bread boarded 48QFP test circuit.
I'm using v2.3 of the genuine BPM from 1BitSquared.
The main differences I can see between RA4M1 and RA4M2 are
The RA4M1 comes in a 40QFN package with 5v tolerant pins so makes an easier transition for a legacy project I'm working on.
The text was updated successfully, but these errors were encountered: