- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I connect 128K EEPROM in 68013a system, and the firmware works well.
When I to add some case branch in switch sentence, and the size of compiled firmware just less than 16k (Total Code Bytes = 9354), then the firmware does not work ( window can not recognize my device). If I delete the case branch, the firmware resume work well. I am very sure case sentence is no error because it is very simple. Is it possibily there is a clash in code and .a51 file which include configuration description?
I hope to get your advice.
Attched file is my KeilC setting image.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I assume that you are using the full version of keil. Correct me if I am wrong.
After building the project, open the .m51 file and check the code range and xdata range. The xdata range and code range shouldn't overlap. Make the xdata range to start from the next address from where the code range is ending.
In the project right click on the target1 and select "options for target target1" and click on the tab BL51 LOCATE and change the xdata range.
FYI:You can see the code range at the bottom of the project after the project is built.
Regards,
Vikas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I assume that you are using the full version of keil. Correct me if I am wrong.
After building the project, open the .m51 file and check the code range and xdata range. The xdata range and code range shouldn't overlap. Make the xdata range to start from the next address from where the code range is ending.
In the project right click on the target1 and select "options for target target1" and click on the tab BL51 LOCATE and change the xdata range.
FYI:You can see the code range at the bottom of the project after the project is built.
Regards,
Vikas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I had check m51 file, it seems like there is not any overlap in xdata and code memory.
xdata/code memory part is in the attched file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I had check m51 file, it seems like there is not any overlap in xdata and code memory.
xdata/code memory part is in the attched file.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I miss my attached file. Try to re-attach it.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI ,
There is no attachment.
if the code range and xdata range is not overlapping, then please share the entire project.
Regards,
Vikas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
It seems that it cannot attach .m51 file.
Entire project is in the attachment.
Regards
Akira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
There is no attachment,Please send your project to vavc@cypress.com . I wil go through the porject and get back to you.
Regards,
Vikas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have attached my project. Is it lost? I try to re-attach it.
Would you main give me a E-mail that I can send the project to you.
Or you can send me a mail then I can reply it .
My E-mail : abcde7931@sina.com
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OMG,
There is no attachment again.
Please give me your E-mail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Akira,
If your compiled code is large than 8KB and you need download it into your EEPROM.
You should modify your KEIL uVision setting as below:
"hex2bix -i -m 0x4000 -f 0xC2 -o ******.iic ******.hex" (***** is your file name)
Because the default code range of hex2bix convertion is 8KB.
If i am wrong, please correct me. Thanks!
Regards
Sheng,