Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USBasp based on Atmega 8A cannot bake 328P because has less RAM & Flash #244

Open
IoannR opened this issue Feb 10, 2021 · 0 comments
Open

Comments

@IoannR
Copy link

IoannR commented Feb 10, 2021

I have tried to bake my Atmega 328P with USBasp (8A) by a sketch, but got an error that I run out of memory.
I have tried the same code but in Atmega IDE - it worked there.

Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
Error: The program size (14854 bytes) is greater than maximum allowed (8192 bytes)
RAM:   [======*** [checkprogsize] Explicit exit, status 1
====]  110.9% (used 1136 bytes from 1024 bytes)
Flash: [==========]  181.3% (used 14854 bytes from 8192 bytes)

The platform.ini file was set in accordance with this Official Instruction

[env:usbasp]
monitor_port = usbasp
platform = atmelavr
board = usbasp
board_build.mcu = ATmega328P
board_build.f_cpu = 8000000L
framework = arduino
lib_deps = 
	jdolinay/avr-debugger @ ~1.1
	arduino-libraries/SD@^1.2.4
build_flags = 
	-DAVR8_BREAKPOINT_MODE=1
@ivankravets ivankravets transferred this issue from platformio/platformio-vscode-ide Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants