<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Keep getting assertion errors when casting typedef struct to uint8_t *</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54480/keep-getting-assertion-errors-when-casting-typedef-struct-to-uint8_t</link><description>Update: Was me being a dumb ass and calling the advertising start higher up in code that I thought I disabled. After truly disabling the BLE, I was able to debug and found my problem that eventually was later down in a method inside CAN_Send that was</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Nov 2019 13:03:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54480/keep-getting-assertion-errors-when-casting-typedef-struct-to-uint8_t" /><item><title>RE: Keep getting assertion errors when casting typedef struct to uint8_t *</title><link>https://devzone.nordicsemi.com/thread/221077?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 13:03:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e9b7102-339d-4c31-b42d-993263bc90be</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. I see. Can you try to define &amp;quot;DEBUG&amp;quot; in your preprocessor defines? (Let me know if you are not sure how to do this). Then monitor your log, it should give some more info than the PC at 0x00015520. It should point to one of the APP_ERROR_CHECK(err_code). Which one does it point to, and what function call did that err_code come from? And what was err_code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep getting assertion errors when casting typedef struct to uint8_t *</title><link>https://devzone.nordicsemi.com/thread/220669?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 17:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7ed6c9-729b-4b26-8223-0a6c12067228</guid><dc:creator>superglitch</dc:creator><description>&lt;p&gt;I can verify that it happens at that point, as I&amp;#39;ve tried to put a breakpoint after this call and it never gets there.&amp;nbsp; Also, if I remove this call allows me to debug as I&amp;#39;m calling it before advertising starts.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s an assertion that is apart of the SDK.&amp;nbsp; It&amp;#39;s erroring out on app_error_fault_handler with an id of 1 and pc at 0x00015520&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve changed it to not using typedef structs and it operates fine, it&amp;#39;s only when casting typedef structs to uint8_t*&amp;nbsp; Is there a better way to track down where the assertion is happening so I can see which part of the SDK is causing the error to be thrown?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep getting assertion errors when casting typedef struct to uint8_t *</title><link>https://devzone.nordicsemi.com/thread/220620?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 14:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afcf604c-8379-4f81-8718-37ee5c9e5095</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What sort of assertion do you get? Is it the error handler in the SDK? Or some other assert? Can you show me how it looks when you are debugging?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you sure the issue is not that you step through the code while the softdevice is running? If you stop when the softdevice is either connected to something, advertising or scanning, the application will assert, because the Softdevice will miss a lot of time critical events. Does it happen when you aren&amp;#39;t debugging as well?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>