Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • FPC Source FPC Source
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,276
    • Issues 1,276
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 55
    • Merge requests 55
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • FPC
  • FPC SourceFPC Source
  • Issues
  • #39534
Closed
Open
Created Jan 19, 2022 by Damir Šeligo@dseligo

Constant dynamic array: AVR/embedded flash problem

Summary

Constant dynamic array data doesn't get stored in flash memory when using section 'progmem' with AVR/embedded target.

System Information

  • Operating system: Host Windows 11, target: embedded
  • Processor architecture: AVR6
  • Compiler version: Lazarus 2.3.0 (rev main-2_3-1133-g2ac55d4800) FPC 3.3.1 i386-win32-win32/win64
  • Device: Microcontroller ATmega2561

Steps to reproduce

test : array of byte = (1, 2, 3, 4, 10); section '.progmem';

What is the current bug behavior?

Only pointer to the array is stored in flash memory (says @PascalDragon).

Lazarus forum discussion

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking