<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>It's saying that it doesn't know how to convert this:</div></div><div dir="ltr"><div dir="ltr"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div dir="ltr"><div>{ false,false,false,false,0x00,0x00,"Reset Enable" };</div></div></blockquote><div dir="ltr"><div>Into one of these:</div></div></div></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>std::map<long long unsigned int,CommandAttr>:</div></div></div></div></div></div></blockquote><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><br></div><div>Which is possibly because you didn't intend to make a hash-map of commands. If you just want a single command, you could do:</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div dir="ltr"><div dir="ltr"><div>CommandAttr qspi_cmd = { false,false,false,false,0x00,0x00,"Reset Enable" };</div></div></div></blockquote><div dir="ltr"><div dir="ltr"><div>If you want to do a map of commands, you'll have to look up the syntax for initialising std::maps, which I think goes something like:</div><div><br></div><div>qspi_cmds[0x66] = {</div><div>    {1, { false,false,false,false,0x00,0x00,"Reset Enable" }},<br></div><div>    {2, { false,false,true,false,0x00,0x00,"Reset Disable" }}</div><div>}</div><div><br></div><div>Geoff</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 18, 2019 at 1:12 AM follower <<a href="mailto:follower@rancidbacon.com">follower@rancidbacon.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 18 Jan 2019 at 11:57, Robin Gilks <<a href="mailto:robin@gilks.org" target="_blank">robin@gilks.org</a>> wrote:<br>
> source/QSPIAnalyzerCommands.h:3:8: note:   no known conversion for<br>
> argument 1 from ‘<brace-enclosed initializer list>’ to ‘const<br>
> CommandAttr&’<br>
<br>
I "dabble" in C++ and suspect the above is the key part of the error message.<br>
<br>
A search for "no known conversion for argument 1 from ‘<brace-enclosed<br>
initializer list>" results in:<br>
<br>
 * <<a href="https://stackoverflow.com/questions/4118025/brace-enclosed-initializer-list-constructor" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/4118025/brace-enclosed-initializer-list-constructor</a>><br>
 * <<a href="https://en.cppreference.com/w/cpp/language/list_initialization" rel="noreferrer" target="_blank">https://en.cppreference.com/w/cpp/language/list_initialization</a>><br>
<br>
Which suggests it may be related to not having the correct C++<br>
standard specified?<br>
<br>
I didn't look at the build files to follow-up on this...<br>
<br>
--Philip;<br>
<br>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.ourshack.com" target="_blank">Chchrobotics@lists.ourshack.com</a><br>
<a href="https://lists.ourshack.com/mailman/listinfo/chchrobotics" rel="noreferrer" target="_blank">https://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" rel="noreferrer" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Meetings usually 3rd Monday each month. See <a href="http://kiwibots.org" rel="noreferrer" target="_blank">http://kiwibots.org</a> for venue, directions and dates.<br>
When replying, please edit your Subject line to reflect new subjects.</blockquote></div></div></div></div></div>