Keil™, An ARM® Company

Technical Support

µVISION1: NOT ALL CODE BANK HEX FILES ARE GENERATED


Information in this article applies to:

  • µVision Version 1
  • C51 Version 5.50

QUESTION

I am writing a code banking project that uses banks 0, 2 and 3. When building my project, I run both the OC51 and OH51 programs to generate the code bank object files and hex files respectively.

The OC51 program generates object files for code banks 0, 2 and 3, however, the OH51 program only generates a hex file for code bank 0.

If I use code banks 0, 1 and 2, then hex files are generated for all three code banks. is this a bug?

ANSWER

Yes, this is a bug in µVision, and it will be fixed in the next version of µVision.

As a workaround, place something into code bank 1. For example, a constant code variable that isn't used or a function that isn't called. When programming your memory device, ignore the hex file for code bank 1.

Last Reviewed: Thursday, June 10, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure