Part Number: AM13E23019
Other Parts Discussed in Thread: DRV8323
Hi,
The AM13E23019 SDK has an example project, "1sh_sl_foc_drv8329a", which demonstrates allocating a function in SRAM. This function is called from an ISR, but the ISR is allocated in flash memory. In the applications I create with the STM32G4, which also has an area of SRAM for executing code (CCM-SRAM), there's a procedure to allocate interrupt vectors in SRAM (AN4296 document, link below). This is done in the routine "startup_stm32g474xx.a", where after the RESET, the interrupt vectors are copied from flash memory to the SRAM area called CCMRAM. The advantage is that when an interrupt occurs, all the code runs in SRAM without needing to call a function allocated in SRAM, thus increasing performance.
How could I do something equivalent for the AM13E23019?
Ari