<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">
<p class="details" style="font-style: italic; color: #737278;">
<a href="https://gitlab.rtems.org/gedare">Gedare Bloom</a> created an issue: <a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5197">#5197</a>
</p>
<p>
Assignee: Gedare Bloom
</p>
<div class="md" style="position: relative; z-index: 1; color: #28272d; word-wrap: break-word;">
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">The following discussion from <a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/49" data-reference-type="merge_request" data-original="!49" data-link="false" data-link-reference="false" data-merge-request="81" data-project="26" data-project-path="rtems/rtos/rtems" data-iid="49" data-container="body" data-placement="top" title="cpukit: add support for common CAN/CAN FD stack" class="gfm gfm-merge_request" style="margin-top: 0;">!49</a> should be addressed:</p>
<ul class="task-list" dir="auto" style="text-align: initial; list-style-type: disc; margin: 0; padding: 0;">
<li class="task-list-item" style="margin-top: 0; line-height: 1.6em; margin-left: 25px; padding-left: 3px; list-style-type: none; position: relative; min-height: 22px; padding-inline-start: 28px; margin-inline-start: 0 !important;">
<p style="color: #28272d; margin: 0 0 16px;"><task-button style="margin-top: 0;"></task-button><input type="checkbox" class="task-list-item-checkbox" disabled style="position: absolute; inset-inline-start: 8px; inset-block-start: 5px;"> <a href="https://gitlab.rtems.org/ppisa" data-reference-type="user" data-user="20" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="Pavel Pisa" style="color: #0b5cad; background-color: #cbe2f9; border-radius: .25rem; padding: 0 2px;">@ppisa</a> started a <a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/49#note_118423" data-reference-type="merge_request" data-original="discussion" data-link="true" data-link-reference="true" data-merge-request="81" data-project="26" data-project-path="rtems/rtos/rtems" data-iid="49" data-container="body" data-placement="top" title="cpukit: add support for common CAN/CAN FD stack" class="gfm gfm-merge_request">discussion</a>:</p>
<blockquote style="font-size: inherit; color: #4c4b51; padding-top: .5rem; padding-bottom: .5rem; padding-left: 1rem; border-left-color: #dcdcde; border-left-style: solid; margin: .5rem 0; border-width: 0 0 0 4px;">
<p style="color: inherit; line-height: 1.5; margin: 0 0 16px;">I have managed to add FPGA loading for RTEMS to our <a href="https://www.pikron.com/pages/products/cpu_boards/lx_cpu.html" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">LX_CPU</a> (NXP LPC4088 + Xilinx XC6SLX9) board RTEMS lpc40xx_ea_ram. It is horrible hack. The single CTU CAN FD IP core fits there only barely in minimal configuration, but I managed stack to send message even when not acknowledged when no other CAN node is present, but I have to change configuration for unacknowledged sending to</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style='display: block; font-size: 14px; color: #28272d; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: .25rem; white-space: pre; margin-top: 0; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;"> mode_reg = ( ctrlmode & CAN_CTRLMODE_PRESUME_ACK ) ?</span>
<span id="LC2" class="line" lang="plaintext">- ( mode_reg | REG_MODE_SAM ) :</span>
<span id="LC3" class="line" lang="plaintext">- ( mode_reg & ~REG_MODE_SAM );</span>
<span id="LC4" class="line" lang="plaintext">+ ( mode_reg | REG_MODE_STM ) :</span>
<span id="LC5" class="line" lang="plaintext">+ ( mode_reg & ~REG_MODE_STM );</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p style="color: inherit; line-height: 1.5; margin: 0;">There are more options for passing unacknowledged TX (<code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>STM</code>), self acknowledged (<code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>SAM</code>, added in later CTU CAN FD versions) etc. But for the <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>CAN_CTRLMODE_PRESUME_ACK</code> has <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; font-family: "GitLab Mono","JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; vertical-align: bottom; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>REG_MODE_STM</code> better match. So I propose this change now or later. It can be discussed even with CTU CAN IP core HDL main author, Ondrej Ille and Jiri Novak, our faculty CAN expert delivering testers for Skoda Auto. But I think that this change is the best option and it is tested.</p>
</blockquote>
</li>
</ul>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #737278;">
—
<br>
<a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5197">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.rtems.org">gitlab.rtems.org</a>. <a href="https://gitlab.rtems.org/-/sent_notifications/b5dbe024cad70f5035051e22be4aa5fd/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.rtems.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.rtems.org/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5197"}}</script>
</p>
</div>
</body>
</html>