problem in code gerate

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

cross mob
Anonymous
Not applicable

Hi again

   

I have a problem in size code generation. I wrote a program that occupies only 20% of flash memory, but to build,  the debug  tells me the following message: branch out of range. what will be happening?

   

I'm using psoc designer 5.2. I'm just using the LCD module

   

help please

   

sorry the bad inglish!

   

Thank you

   

Obrigado

   

Deus abençoe

0 Likes
8 Replies
Anonymous
Not applicable

correcting

   

what might be happening?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I would suggest you to zip your project folder and upload the file here, so we all can have a look at.

   

 

   

Bob

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

By the way: "Branch out of bounds" sounds like an assembly error. Are you using C and/or assembly?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I'm using assembly

0 Likes
Anonymous
Not applicable

Are you had similar problem bob?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

When you use assembly you can make errors that cause exactly your errormessage. Quite easy: you have a jump-instruction and you must use an LJMP. The JMP just reaches +- 128 Bytes (estimated).

   

 

   

So Why do you not use C ????

   

 

   

Bob

0 Likes
Anonymous
Not applicable

IT IS MY PROBLEM! I get this menssage also, the build request for change CALL of LCALL, Wold like of know why.

   

I'll try in C

   

thank you by answer!

   

Fica com Deus

   

Abraços

0 Likes
Anonymous
Not applicable

Bob thank you, your answer helped me

   

changed jmp per ljmp and call per lcall sucefull

   

abraços

   

Fica com Deus

0 Likes