Revision History
Date |
Version |
Release Notes |
|---|---|---|
2026-10-09 |
v1.4 |
|
2026-06-09 |
v1.3 |
|
2026-05-08 |
v1.2 |
|
2025-07-08 |
v1.1 |
|
2025-03-06 |
v1.0 |
|
2023-10-17 |
v0.5 |
First release |
[CPU-863] Misaligned Memory Access May Lead to Exception
Description
A misaligned load instruction immediately followed by a store instruction may raise a load access fault exception (exception code 5) when the load address and the store address lie in regions with different access permissions configured via Physical Memory Protection (PMP) or Physical Memory Attributes (PMA).
For example, the following sequence commonly triggers this issue when copying an unaligned word from flash or ROM into RAM:
lw a0, 0(a1) # unaligned 32-bit address load from a read-only PMP region (e.g., ROM)
sw a0, 0(a2) # store to a read-write PMP region (e.g., RAM)
Root cause:
A misaligned load that crosses a word boundary is split internally into two transactions. Due to a timing alignment issue in the design, the second transaction of the misaligned load can incorrectly be checked against the store’s access permissions instead of its own, triggering an exception.
Workarounds
The RISC-V specification does not guarantee that hardware supports misaligned accesses. General-purpose RISC-V code should not rely on that support. If misaligned accesses cannot be avoided, such as when porting third-party libraries, use the following workarounds:
Insert one or more nop instructions between the misaligned load and the following store. This prevents the incorrect permission check described above.
Note
Linkers that support the
--fix-esp-pmp-misalignoption can insert nop instructions between consecutive load and store instructions automatically. This option is conservative, as it may also insert extra nop instructions for pairs that would not trigger this exception, for example, when the accesses are aligned or when both access the same PMP region.When copying memory, use misaligned load/store only for the first and last misaligned words of a data block, and use aligned load/store for the words in between. This approach requires fewer nop instructions and has better performance than inserting nop instructions throughout.
Configure the same PMP/PMA permissions for the memory regions accessed by the misaligned load and the following store. This may require saving and restoring the permission settings around the affected code.
Solution
No fix scheduled.
[ECDSA_DS-836] Signatures with Invalid r and s Values Are Incorrectly Accepted
Description
When the signature {r = 0 or n, s = 0 or n} with invalid r and s values is submitted to the ECDSA_DS peripheral against any message and public key, the peripheral incorrectly reports the signature as “valid”.
Workarounds
Use RSA_DS Secure Boot instead of ECDSA_DS Secure Boot.
Solution
No fix scheduled.
[ECDSA_DS-837] Signatures with Invalid s Values Are Incorrectly Accepted
Description
When the signature {r = (Qa + G).x, s = 0 or n} with an invalid s value is submitted to the ECDSA_DS peripheral against any message and public key, the peripheral incorrectly reports the signature as “valid”.
Workarounds
Use RSA_DS Secure Boot instead of ECDSA_DS Secure Boot.
Solution
No fix scheduled.
[I2C-308] I2C Slave Fails in Multiple-read Under Non-FIFO Mode
Description
If the I2C slave non-FIFO mode is enabled and the master performs multiple-read operation on the slave, the master can not correctly read the data from the slave.
Workarounds
Set I2C_FIFO_ADDR_CFG_EN and I2C_SLV_TX_AUTO_START_EN to 1 and I2C_FIFO_PRT_EN to 0 for the slave.
After configuration, the master must access the slave using the following command sequence: RSTART -> WRITE (slave addr, fifo addr) -> RSTART -> WRITE (slave addr) -> READ (NACK) -> STOP, with only one byte allowed to be read each time.
Solution
Fixed in chip revision v1.2.