Comments (4)
I presume you are using the RA2L1? Which version of the FSP?
This code works for me on the EK-RA2L1 using FSP 2.3.0 to set and clear GPIO P5_01 :-
R_PMISC->PWPR = 0x00;
R_PMISC->PWPR = 0x40;
R_PFS->PORT[5].PIN[01].PmnPFS_b.PMR = 0; //GPIO
R_PFS->PORT[5].PIN[01].PmnPFS_b.PDR = 1; //Set Pin as output
R_PFS->PORT[5].PIN[01].PmnPFS_b.PODR = 1; //P5_01 HIgh using PFS
R_PFS->PORT[5].PIN[01].PmnPFS_b.PODR = 0; //P5_01 Low using PFS
R_PORT5->PCNTR3 = 0x00 | (1 << 1); //P5_01 Set using PCNTR3
R_PORT5->PCNTR3 = 0x00 | ((1 << 1) << 16); //P5_01 Reset PCNTR3
R_PORT5->POSR = 0x00 | (1 << 1); //P5_01 Set using PCNTR3
R_PORT5->PORR = 0x00 | (1 << 1); //P5_01 Reset PCNTR3
from fsp.
R_PORT5->PCNTR3 = 0x00 | (1 << 1); //P5_01 Set using PCNTR3 R_PORT5->PCNTR3 = 0x00 | ((1 << 1) << 16); //P5_01 Reset PCNTR3
i guess that this lines are used 16bit access too. do you check disassembler?
from fsp.
This code works for me on the EK-RA2L1 using FSP 2.3.0 to set and clear GPIO P5_01 :
32bit access not works even from IO-access view at debugger session. But POSR/PORR works well
from fsp.
The write to the PCNTR3 register is a 32 bit access (STR instruction) :-
The access to the POSR/PORR is a 16 bit access (STRH instruction) :-
from fsp.
Related Issues (20)
- HOCOCR2 is not defined in R_SYSTEM HOT 1
- BSP_CFG_HOCO_FREQUENCY is only used if there is FLL HOT 2
- ADSYCR register dereference structure error HOT 3
- RA8 default clock configuration provides incorrect PLL input frequency HOT 2
- Crash when calling RM_VEE_FLASH_Open HOT 3
- R_CRC requires non-const pointer to data HOT 1
- RM_COMMS_I2C semaphore/mutex not initialised HOT 1
- Signature generation with RSA-4096 keys not configurable on RA8 devices in FSP v5.3.0 HOT 1
- Using SCE5 in a C++project causes a build error HOT 2
- Notice regarding Arm TrustZone CVE-2024-0151
- RA8 Lockup when D-Cache Enabled
- [Cmake Build] How to add additional source and include paths ? HOT 2
- [AppImage] Arch Linux "SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback" HOT 2
- [CMake Build] Problem when linking: "cannot open linker script file script/fsp.ld: No such file or directory" HOT 1
- RM_COMMS_I2C: Lower level I2C channel and rate may be incorrect after project migration
- Linker error observed with Arm compiler 6.21 when NetX stack used
- Is line 112 of bsp_irq.c supposed to be "NVIC->IPR" instead of "NVIC->IP"? HOT 2
- R_GPT_InfoGet only reports count direction TIMER_DIRECTION_UP HOT 2
- Request for the Latest Trusted Firmware-M Sample Project HOT 1
- FSP5.4 RA8D1 LIN BUG with uart TX idle state low HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsp.