Skip to content
New issue

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

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

Already on GitHub? # to your account

" ihex too large for flash" #60

Open
shyhkaelo opened this issue Jul 6, 2020 · 7 comments
Open

" ihex too large for flash" #60

shyhkaelo opened this issue Jul 6, 2020 · 7 comments

Comments

@shyhkaelo
Copy link

I built a project and compiled it, the program used 520 bytes showed in MPLAB X IDE
But when I executed pyupdi to download my code, terminal replied the information " ihex too large for flash "
截圖 2020-07-07 上午1 31 29

@maciejap
Copy link

Can you add here this ihex?

@mraardvark
Copy link
Owner

I wonder if its because MPLAB bakes the fuse values into the hexfile at a high offset...?

@edenraf
Copy link

edenraf commented Apr 22, 2021

A year later...did anyone find a reason for this or a fix? I have the same issue. MPLAB IDE tells me I'm using a few % and then pyupdi says its too big.
I am using a mega808. I have successfully programmed using a simple blinky code.
Then I started using Microchip code configurator but now it is "too big".
I attached my hex (as txt) if that helps.
uvsnus2.X.production.txt

@mraardvark
Copy link
Owner

Same thought - MPLAB is putting fuses in the hexfile at a huge offset, and pyupdi is not fuse-aware.
I recommend to use pymcuprog which is properly maintained
Give it a try at least: pip install pymcuprog

@edenraf
Copy link

edenraf commented Apr 22, 2021

Same thought - MPLAB is putting fuses in the hexfile at a huge offset, and pyupdi is not fuse-aware.
I recommend to use pymcuprog which is properly maintained
Give it a try at least: pip install pymcuprog

Hey thanks for the reply. I'll check it out. I am trying to simply program with it but I have no luck. Is this correct?
pymcuprog write -d mega808 -t UART -u COM10 -f myfile.hex

I get the answer:
Connecting to any UART pyedbglib.hidtransport.hidtransportbase - ERROR - No CMSIS-DAP devices found. Unable to connect to USB device

@edenraf
Copy link

edenraf commented Apr 22, 2021

Same thought - MPLAB is putting fuses in the hexfile at a huge offset, and pyupdi is not fuse-aware.
I recommend to use pymcuprog which is properly maintained
Give it a try at least: pip install pymcuprog

Hey thanks for the reply. I'll check it out. I am trying to simply program with it but I have no luck. Is this correct?
pymcuprog write -d mega808 -t UART -u COM10 -f myfile.hex

I get the answer:
Connecting to any UART pyedbglib.hidtransport.hidtransportbase - ERROR - No CMSIS-DAP devices found. Unable to connect to USB device

For anyone else facing the problem of not reading the documentation well, I did this and it worked
pymcuprog ping -d atmega808 -t uart -u com10

@mraardvark
Copy link
Owner

ah, case sensitive...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants