Hello, I would like to save a log in the nrf5340 FLASH, how many times is possible to write? May I write in the Application CPU Flash from the Network CPU FLASH when the Application CPU is in WFE() status (System ON I suppose).
Thank you!
Emag
Hello, I would like to save a log in the nrf5340 FLASH, how many times is possible to write? May I write in the Application CPU Flash from the Network CPU FLASH when the Application CPU is in WFE() status (System ON I suppose).
Thank you!
Emag
Hi,
The Endurance of the flash memory is given in the Absolute maximum ratings:
Flash memory | ||||
Endurance | 10 000 | Write/erase cycles |
[EDIT]: The network core's memory map includes the peripherals, RAM, and flash of the application core. The network core can access the application core's resources even when the application CPU is in sleep mode, but on the Engineering revision of the chip, the application CPU must be woken to access flash.
The MDK does not seem to include support for this, as it will either include the nrf5340_application.h or nrf5340_network.h, depending on whether NRF5340_XXAA_APPLICATION or NRF5340_XXAA_NETWORK is defined. These files will only define the peripherals in either APPLICATION or NETWORK domain. To access the APPLICATION domain peripherals, you can use the peripheral instantiation base addresses directly from the network core application.
Best regards,
Jørgen
Please see my updated answer above.
ok i'll try the peripheral instantiation. Other question: to avoid the USBD not functional I need to add a FTDI USB->I2C master on my project. May I share the same I2C pins of the nrf5340 as master when the FTDI is not enabled and as Slave when I try to access the I2C Bus with the FTDI chip? Changin on fly the same pin functions for nrf5340 port.
BR,
Emag
Yes, it is possible to reconfigure the pins between TWI and TWIS in run-time. Just make sure you un-initialize the other instance before you setup the new instance.