Menu

GCBASIC now support EEPROM block and EEPROM TABLE data

Anobium
2024-09-04
2024-09-04
  • Anobium

    Anobium - 2024-09-04

    Massive change to GCBASIC compiler to support EEPROM operations for AVRs

    A huge update to the compiler to properly support AVR ( legacy and Dx ) microcontrollers.

    You can now easily create and manage reference data in EEPROM using TABLE or EEPROM instructions.

    AVR microcontrollers operations now support
    - Automatic EEP file creation
    - Table data being saved to EEPROM EEP file.
    - EEPROM - END EEPROM data saved to EEPROM EEP file.
    - New programmer to enable very fast programming - no need for Microchip Studio.

    Specific to ASM
    - AVR ASM .ESEG section for EEPROM data
    - AVR ASM labels support creation of EEPROM and TABLE data blocks
    -
    Specific to GCASM
    - Add ESEG handler for AVR EEPROM
    - Sets ORG correctly
    - Metadata now handles ESEG ASM
    - Updated LST file to show ESEG sections
    - Change HEX file address to handle ESEG DATA as bytes
    - Change ORG error handling to appropriately handle ESEG error messages
    - Add automatic creation of EEP file for ESEG DATA


    New programmer

    The new programmer uses the nEDBG using UPDI interface. This means the PROGMEM and EEPROM can be programmed from GCSTUDIO.

    [tool = atprogram3]
    desc = ATMEL nEDBG using UPDI with EEP
    type = programmer
    useif = 
    progconfig = 
    command = %atmelATPROGRAMdir%\ATprogram.exe
    params = -t nEDBG -i UPDI -d ATMEGA4809  chiperase program  -f "%FileName%"  erase -ee program -ee --format hex -f "%FileNameEEP%"
    workingdir = %atmelATPROGRAMdir%\
    

    Add this to you USE.INI if not already present in your specific USE.INI


    Here is a video of the operations.

    This shows using EEPROM reference data, the ASM files, using Microchip Studio ( slow!) and a proper use case for using the EEPROM reference data.


    @angel-spartan

    There are two items that we need change in GCSTUDIO.

    1. Add the programmer to the default use.ini - I will do that before the next release.
    2. Change the GCCODE clean script to remove EEP files.

    Huge change - enjoy.

     
    • Angel Mier

      Angel Mier - 2024-09-04

      Surely, take it for granted.

      An outstanding work both of you are doing, clearly it's a lot of work you are putting in, on a very short time.

      Angel

       
      👍
      1

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.