You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to add a mission to my microbit repo that uses svd2zig on nrf51.svd. There was a sentinel error on a previous svd2zig and zig/master combo but that has since been eliminated. However, before I discovered that the problem was eliminated I wrote this script and discovered a lot of the posborne svd files had either InvalidXML or StreamTooLong errors.
I ran xmllint on all of the invalid ones and it did not report any issues.
Do you have any immediate insight into the StreamTooLong errors?
Regards,
Mark
#!/bin/bash
for f in $(find cmsis-svd -iname '*.svd' | sort)
do
zig-cache/bin/svd2zig $f 2> errors > /dev/null
if [[ $? != 0 ]]
then
error=$(grep -i error: errors)
if [[ $? != 0 ]]
then
echo $f
cat errors
else
echo $f $error
fi
fi
done
The text was updated successfully, but these errors were encountered:
Hey Mark, as stated in the readme, I wrote only enough to translate the specific svd file I needed so I know there are plenty of valid svd fields that are not parsed currently.
Can you link me to one that generates the StreamTooLong error? That comes from within the std lib so I'm not sure.
Moved from stack to global because of size. Of 658 .svd files, 159 report invalid xml and the stream too long errors are eliminated. Next week will see if the invalid xml errors can be replaced with a more specific message of which tag is not recognized.
I'd like to add a mission to my microbit repo that uses svd2zig on nrf51.svd. There was a sentinel error on a previous svd2zig and zig/master combo but that has since been eliminated. However, before I discovered that the problem was eliminated I wrote this script and discovered a lot of the posborne svd files had either InvalidXML or StreamTooLong errors.
I ran xmllint on all of the invalid ones and it did not report any issues.
Do you have any immediate insight into the StreamTooLong errors?
Regards,
Mark
The text was updated successfully, but these errors were encountered: