Weiping Xu,
I'm developing a product with a microprocessor MC9S08PA4.
With 512 bytes of RAM.
I was watching the project: TWR-S08PT60_Flash_lab_v6.
I understand the management of the Flash and EEPROM memory.
But I see that it uses a lot of RAM to run the routines of writing and erasing flash.
I have only 512 bytes of RAM in the MC9S08PA4.
Using only the routines:
Flash_Program1LongWord
Flash_EraseSector
Occupy 299 bytes of RAM!
Am I right?
Is there another way to write the flash with the PA4 and not have to use as much RAM?
I worked with QD4 with only 256 Bytes of RAM and features doonstack.asm had no problems.
I hope you can help me,
cordially
Roberto.