This error occurs when I compile code to chip "Hex file program memory is outside selected chip memory range". Found an earlier posting a while back with similar problem and Ben gave solution, which I have tried but it does not work .
Also the chip I am using is PIC16F1847 which according to Microchip data sheet I have is 8K words but the advanced config menu states it is 4K words, Using Flowcode 4
Any suggestions?
Error Hex File program memory is outside selected chip
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Error Hex File program memory is outside selected chip
Hi John,
I have posted a fix here:
http://www.matrixmultimedia.com/mmforum ... 700#p34940
Can you please let me know if that sorts the issue out or not.
Thanks
Martin
I have posted a fix here:
http://www.matrixmultimedia.com/mmforum ... 700#p34940
Can you please let me know if that sorts the issue out or not.
Thanks
Martin
Martin
-
- Posts: 23
- Joined: Sun Oct 09, 2011 4:38 pm
- Has thanked: 4 times
- Been thanked: 2 times
- Contact:
Re: Error Hex File program memory is outside selected chip
Hi Martin
Thanks for link to PPP file which I have just swapped for existing file as per instructions. The only problem is the PIC16F1847 is no longer listed in the advanced config screen?
Cheers
John
Thanks for link to PPP file which I have just swapped for existing file as per instructions. The only problem is the PIC16F1847 is no longer listed in the advanced config screen?
Cheers
John
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Error Hex File program memory is outside selected chip
Replacing file should not make it disappear.
All the file should do is change the available memory. Maybe you can check that that the file you replaced has got today's date on it?
I have just downloaded the file I posted and replaced the ppp_config_data2.cfg again (just to make sure all is ok).
I can confirm the 16F1847 is just above 16F1933 Edit corrected post.
.
All the file should do is change the available memory. Maybe you can check that that the file you replaced has got today's date on it?
I have just downloaded the file I posted and replaced the ppp_config_data2.cfg again (just to make sure all is ok).
I can confirm the 16F1847 is just above 16F1933 Edit corrected post.
.
Martin
-
- Posts: 23
- Joined: Sun Oct 09, 2011 4:38 pm
- Has thanked: 4 times
- Been thanked: 2 times
- Contact:
Re: Error Hex File program memory is outside selected chip
Hi Martin,
One other thing I forgot to mention is that I had a look at the data sheet earlier on for 1847 and it headlines it as 8K words but when describing its memory locations avaiable for data it lists it as 128 x 32 which to my maths gives 4096 .......?
I did reduce my code to about 2800 odd and although it compiled ok to chip it did some strange things like repeating the ADC and Index values (from previous program you helped me with on forum) so although I have a possible problem of memory size recognition (data sheet) the PIC16F1847 did not behave as I would have expected.
Thanks,
John
One other thing I forgot to mention is that I had a look at the data sheet earlier on for 1847 and it headlines it as 8K words but when describing its memory locations avaiable for data it lists it as 128 x 32 which to my maths gives 4096 .......?
I did reduce my code to about 2800 odd and although it compiled ok to chip it did some strange things like repeating the ADC and Index values (from previous program you helped me with on forum) so although I have a possible problem of memory size recognition (data sheet) the PIC16F1847 did not behave as I would have expected.
Thanks,
John
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Error Hex File program memory is outside selected chip
I know data sheets can have errors, so before changing the memory I first looked at product selector:
As for the ADC, Im guessing is it a similar issue to:
http://www.matrixmultimedia.com/mmforum ... 46&#p26879
But I have to call it a night for tonight.
Maybe Matrx M could help tomorrow as I wont be able to until tomorrow eve.
Of course if that and the data sheet are both wrong then I can repost the file, but altered back to 4096 Words.As for the ADC, Im guessing is it a similar issue to:
http://www.matrixmultimedia.com/mmforum ... 46&#p26879
But I have to call it a night for tonight.
Maybe Matrx M could help tomorrow as I wont be able to until tomorrow eve.
Martin
-
- Posts: 23
- Joined: Sun Oct 09, 2011 4:38 pm
- Has thanked: 4 times
- Been thanked: 2 times
- Contact:
Re: Error Hex File program memory is outside selected chip
Hi Martin
Thanks for info. I have had a look at the links given today and will have a go with the 1847 again on the weekend. In the meantime I went back to using the PIC16F88 and reduced code size by not using the floating point maths for voltage interpretation of ADC. Small error in voltage reading but close enough for this application.
Cheers,
John
Thanks for info. I have had a look at the links given today and will have a go with the 1847 again on the weekend. In the meantime I went back to using the PIC16F88 and reduced code size by not using the floating point maths for voltage interpretation of ADC. Small error in voltage reading but close enough for this application.
Cheers,
John
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Error Hex File program memory is outside selected chip
Hi John,
I can confirm the 16F1847 is affected by this ADC issue.As promised a soultion for today
Since your target device reqires an updated PIC_ADC_23.c, Rosenbaum (who first came up with an elegant solution) has posted the fix you will require:
http://www.matrixmultimedia.com/mmforum ... 46&#p27866
If 64bit windows go to C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Components
or
If 32bit windows go to C:\Program Files\Flowcode V4\Components
Make a copy of PIC_ADC_23.c
then replace original with attached file.
As for floating point maths, yes it's much much more accurate, but its also very ROM and RAM hungry and for 8 bit pics should be last resort
Martin
I can confirm the 16F1847 is affected by this ADC issue.As promised a soultion for today
Since your target device reqires an updated PIC_ADC_23.c, Rosenbaum (who first came up with an elegant solution) has posted the fix you will require:
http://www.matrixmultimedia.com/mmforum ... 46&#p27866
If 64bit windows go to C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Components
or
If 32bit windows go to C:\Program Files\Flowcode V4\Components
Make a copy of PIC_ADC_23.c
then replace original with attached file.
As for floating point maths, yes it's much much more accurate, but its also very ROM and RAM hungry and for 8 bit pics should be last resort
Martin
Martin