Hi,
I need to optimize RAM used by ramfunc for having a space where I put secured parts of the code.
Unfortunatelly flash api uses a lot of it. I saw 3 functions that have a source code:
- Fapi_serviceWatchdogTime
- Fapi_setupEepromSectorEnable (it occupies 104 words of RAM)
- Fapi_setupBankSectorEnable
Are they really called for my chip? I would like to get rid of them.
For example if I do not use watchdog, can I remove [1]?
Is [2] used for F28379D device? There is Eeprom in the name but no eeprom is on this chip.
The function is not very optimal, three registers are setup and for each of them FSM_WR_ENA_BITS.WR_ENA is enabled and dissabled. Can it be done for whole sequence instead?
[3] looks like setting a mask whick sectors can be programmed [?]. Is it neccessary to have it in RAM? Can't I call it once before I start flash programming?
Can you provide more information about them? In the Flash API documentation (1.54) there is not very much details.
The RAM is very precious!
Regards,
Piotr Romaniuk