[xsde-users] XML parsing on a LPC4357 ARM environment fails
Marwijn Hessel
Marwijn.Hessel at Alten.nl
Tue Aug 6 10:38:20 EDT 2013
Dear,
We are trying to make the generated code work on a LPC4357 ARM environment
with FreeRTOS.
The main problem is parsing of the XML data.
This example works on the LPC4357 target:
<?xml version="1.0" encoding="UTF-8"?>
<Canvas xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ScadaInterface.xsd">
<description>Gyro Compass</description>
<ship_information length="100" bowGpsDistToBow="5"
sternGpsDistToStern="5"/>
<Layer id="1" name="Compass" background="false" visible="true">
<shapes x="0" y="0">
<colour red="0" green="0" blue="0"/>
</shapes>
</Layer>
</Canvas>
The next example does not work on the LPC4357 target:
<?xml version="1.0" encoding="UTF-8"?>
<Canvas xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ScadaInterface.xsd">
<description>Gyro Compass</description>
<ship_information length="100" bowGpsDistToBow="5"
sternGpsDistToStern="5"/>
<Layer id="1" name="Compass" background="false" visible="true">
<shapes xsi:type="Bitmap_t" x="100" y="0" uri="GyroCompass.bmp"
width="0" height="0" angle="0" rx="400" ry="300" eventAction="ROTATION"
scale="1.0" offset="0">
<colour red="0" green="0" blue="0"/>
<raster/>
</shapes>
</Layer>
</Canvas>
The second example does not give any exception (or likewise), it triggers a
hard fault. Which means the CPU is crashed.
In the attachment you find the XSD and XML files we want to use in the
project. The XSD/e version we use is v3.2.0.
We have also added a test source file, main.cpp. We try to parse a snippet
of our xml file using the generated XSD/e classes from our XSD file. Both
example snippets can be found in the source file.
Addition information about the LPC4357 you can find here:
http://www.embeddedartists.com/products/kits/lpc4357_kit.php
The compiler used is Yagarto (is GCC for ARM) which you can find here:
http://www.emb4fun.de/archive/gabmt/index.html
Kind regards,
Marwijn
PS: At the moment I'm working for Alphatron (see http://www.alphatron.nl/),
can you provide us additional information about a support contract?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ScadaInterface.zip
Type: application/octet-stream
Size: 7370 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsde-users/attachments/20130806/f3d892be/ScadaInterface.obj
More information about the xsde-users
mailing list