381 const uint8_t* ns_chal,
407typedef enum : uint32_t {
#define RA8_NSC_VENEER
Mark a TrustZone Secure-to-Non-Secure entry-point veneer.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_nsc_limits_t
Boundary-policy limits exposed to NS callers.
@ k_ra8_nsc_eth_frame_max
Max ethernet frame bytes.
@ k_ra8_nsc_xspi_max_read
Max bytes per ra8_nsc_xspi_read.
@ k_ra8_nsc_log_msg_max_len
Truncated copy size for logs.
ra8_err_t ra8_nsc_eth_send(const uint8_t *ns_frame, uint16_t len)
NSC veneer: hand a frame to the secure ESWM transmit path.
ra8_err_t ra8_nsc_eth_recv(uint8_t *ns_buf, uint16_t *inout_len)
NSC veneer: pull the next received frame to NS memory.
ra8_err_t ra8_nsc_wdt_start(void)
NSC veneer: arm the Secure WDT with the e-reader configuration.
ra8_err_t ra8_nsc_xspi_read(uint32_t flash_off, uint8_t *ns_dst, uint32_t len)
NSC veneer: read len bytes from external XSPI flash.
ra8_err_t ra8_nsc_log_emit(const char *tag, const char *message)
NSC veneer: emit a log line via the secure ITM channel.
ra8_err_t ra8_nsc_xspi_status(uint8_t instance, uint32_t *out_mask)
NSC veneer: query secure-side XSPI status.
ra8_err_t ra8_nsc_ota_commit(uint8_t target_bank)
NSC veneer: commit OTA target bank as the boot bank.
ra8_err_t ra8_nsc_key_vault_challenge(uint16_t slot, const uint8_t *ns_chal, uint8_t *ns_digest)
NSC veneer: SHA-256(key XOR challenge) for a stored slot.
void ra8_nsc_wdt_refresh(void)
NSC veneer: refresh the Secure WDT down-counter.
ra8_err_t ra8_nsc_flash_bank_config(uint32_t raw_value)
NSC veneer: write the flash bank-config word.
ra8_err_t ra8_nsc_periph_init(void)
NSC veneer: bring up the secure-side peripheral substrate.
Macros for declaring Non-Secure Callable veneer functions.