When using 68013a, how to make code more than 9k work

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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.

0 Likes
1 Solution
Anonymous
Not applicable

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.

View solution in original post

0 Likes
12 Replies
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

 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.

0 Likes
Anonymous
Not applicable

 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.

0 Likes
Anonymous
Not applicable

 Sorry, I miss my attached file. Try to re-attach it.

   

 Thanks.

0 Likes
Anonymous
Not applicable

HI ,

   

 

   

There is no attachment.

   

 

   

if the code range and xdata range is not overlapping, then please share the entire project.

   

 

   

Regards,

   

Vikas.

0 Likes
Anonymous
Not applicable

 HI,

   

It seems that it cannot attach .m51 file.

   

Entire project is in the attachment. 

   

Regards

   

Akira

0 Likes
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

 OMG,

   

There is no attachment again.

   

Please give me your E-mail.

0 Likes
Anonymous
Not applicable

Hi

   

 

   

My emial ID is "vavc@cypress.com".

   

 

   

Regards,

   

Vikas.

0 Likes
Anonymous
Not applicable

Hi

   

My email ID is "vavc@cypress.com"

   

 

   

Regards,

   

Vikas.

0 Likes
Anonymous
Not applicable

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,

0 Likes