Menu

pic24 board always compiles to flash

ronny suy
2024-03-11
2024-03-11
  • ronny suy

    ronny suy - 2024-03-11

    Hi Mikael,
    I played with ff5 on the curiousity board. It works well ! But I dicovered that new defenitions are seemingly always compiled to flash. (the prompt shows ok, ram)
    Because after a reset or even a powercycle , the defenitions are still in memory.
    I assume this isn't normal behaviour.
    What could cause this ?

    Regards,
    Ronny

     
  • Mikael Nordman

    Mikael Nordman - 2024-03-11

    That is the normal behaviour. On the PIC24 the code can only be executed from flash, so it is always compiled to flash. The prompt tells you where data is located.

    So

    ram variable ramvar
    

    compiles a variable named ramvar to flash which stores its data in ram.

    eeprom variable eepromvar
    flash variable flashvar
    

    These store the data in eeprom and flash. Remember that flash and eeprom have limited write endurance.

    I recommend reading flashforth.com

     
  • ronny suy

    ronny suy - 2024-03-11

    Thanks. Problem solved.
    Oh , I have read flashforth.com many times ...
    Regards Ronny

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.