661 views
in Embedded Wizard Studio by
We have a unit for translated text that has about 67 strings in it.  These strings are set to output to the blob file.  The blob is loaded to flash which is mapped for access from our processor.

Most of the strings work, but a couple of them cause an unaligned access violation.  This violation occurs because the XBlobStringRes.Block value is set to -1 in the blob.bin file for these particular strings.  The value is added to the base address of the blob and results in an address that is outside off the blob and not aligned, code is "res.Block  = EwBlobStartAddress + v->Block;".  See EwGetVariantOfString() and the value of res.Block in particular.

What would cause a string to be generated in a blob by EW with a Block value of -1?

 

Thanks.

Wade Anderson

1 Answer

0 votes
by

Hello Wade,

have you tried the version 14.05? This version contains a bug-fix for issue similar to your description. See also Release Notes.

Best regards

Paul Banach

by
Paul,

I had 14.02 and the check for update said there were no updates, but got 14.05 from the download site and installed that.

14.05 appears to generate the same blob.bin.  It's byte for byte identical.  However, the problem seems to present itself differently now.  It's still an unaligned  access.  Now EwGetBlobConstant() called from EwGetVariantOfString() is returning an unaligned pointer for the 62nd of 65 strings.

Thanks.

Wade
by
Hello Wade,

could you please provide us a small example project demonstrating the issue?

Best regards

Paul Banach
by
Paul,

Problem solved!

Turns out we needed to configure our external flash so unaligned access was allowed.  Your request for a sample project caused me to question more things and led me down that path.  Thanks for your help and a great product.

 

Wade

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...