<?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>Cryptocell and usb</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112743/cryptocell-and-usb</link><description>I was building the &amp;quot;console&amp;quot; sample code found in zephyr for my custom nrf52840 board and I managed to get it to work. But as soon as cryptocell gets enabled, it doesn&amp;#39;t work anymore. 
 
 Q1: Why doesn&amp;#39;t the devicetree find &amp;quot;nordic,cryptocell&amp;quot;? I get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Oct 2024 08:15:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112743/cryptocell-and-usb" /><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/505281?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 08:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0278be15-d48b-44cf-8744-47202b596496</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;Welp, I found the problem... Cryptocell HAS to be enabled in bootloader stage in order to have it enabled in app. So if you have mcuboot running without cryptocell you can only run apps without CC enabled in them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/501887?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 10:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a0b8215-5e5f-4adf-b350-718a2d2a7b17</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I double checked&amp;nbsp;when I build with your board files, and both the bootloader and application are configured to use the LFRC (boards without crystals is also very common and as long as the LFRC is configured that should not cause problems).&lt;/p&gt;
&lt;p&gt;Regardign this being a HW issue I don&amp;#39;t see anythign indicating it, but on the other hand it is difficult to understand this issue, so it could be worth while taking a look if you can shere your schematics (and perhaps also the layout).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/501108?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 09:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a57eafc5-deba-4d5f-b8c5-33fb0923a6cb</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;Would you be able to test it without 32k clock CONNECTED to mcu?&lt;/p&gt;
&lt;p&gt;The nrf52dk doesnt have full CC and the only difference I can figure out is that you DK board has external 32k clock connected.&lt;/p&gt;
&lt;p&gt;Also I did figure out that the app breaks before EARLY, PRE_KERNEL_1 and PRE_KERNEL_2. I used LEDs as debug in those states.&lt;/p&gt;
&lt;p&gt;I also tried to enable usb logging in APPLICATION state and it worked, but when I enabled it in PRE or POST kernel, then my PRE kernel LED debug flashed really fast. So confirming that the app with CC enabled does not even reach kernel.&lt;/p&gt;
&lt;p&gt;Do you have any ideas if this could be a&amp;nbsp;schematic&amp;nbsp;problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/500414?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 11:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87938fb6-eeeb-42ca-acb7-229645049967</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. I misunderstood this to be about USB and CryptoCell (I did not see any samples failing with your your board files, withou or without CryptoCell or debugging or not). But this is related to your MCUBoot configuration it seems? To test that, I took the zephy blinkyt sample from nRF Connect SDK 2.6.1 and did the following changes:&lt;/p&gt;
&lt;p&gt;Added to prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOOTLOADER_MCUBOOT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;made a child_image/mcuboot.conf where I copy-pasted all configs from your last post. And as I am testing on the nRF52840 DK I modified&amp;nbsp;nrf52840_qalmari.dts so that led0 is gpio P0.14 as that is a LED on the DK.&lt;/p&gt;
&lt;p&gt;So this is your board files (with the led0 pin changed) and your mcuboot configuration. However, the applciation is startd and works as expected. So I am unfortunately still not able to reproduce the issue.&lt;/p&gt;
&lt;p&gt;Can you explain more, and perhaps attach the application (all files including config files, CMakeLists.txt etc)&amp;nbsp;that you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/500390?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 09:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6beb5b68-2e60-4321-802d-e4ed9991ee26</guid><dc:creator>AintMina</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/112743/cryptocell-and-usb/500388"]I thought the problem was running the usb console sample with CryptoCell defined in your board files?[/quote]
&lt;p&gt;No, the problem is that CC breaks ANY sample code. I remembered that I tested the bluetooth function to work WITH debugger not without.&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/112743/cryptocell-and-usb/500388"]And if so, can we start with if you are using MCUboot, NSIB, both, or some custom bootloader?[/quote]
&lt;p&gt;Im using MCUboot from the SDK with this config and CC disabled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM=n

CONFIG_MAIN_STACK_SIZE=10240
CONFIG_MBEDTLS_CFG_FILE=&amp;quot;mcuboot-mbedtls-cfg.h&amp;quot;

CONFIG_BOOT_SWAP_SAVE_ENCTLV=n
CONFIG_BOOT_ENCRYPT_IMAGE=n

CONFIG_BOOT_UPGRADE_ONLY=n
CONFIG_BOOT_BOOTSTRAP=n

### mbedTLS has its own heap
# CONFIG_HEAP_MEM_POOL_SIZE is not set

### We never want Zephyr&amp;#39;s copy of tinycrypt.  If tinycrypt is needed,
### MCUboot has its own copy in tree.
# CONFIG_TINYCRYPT is not set
# CONFIG_TINYCRYPT_ECC_DSA is not set
# CONFIG_TINYCRYPT_SHA256 is not set

CONFIG_FLASH=y
CONFIG_FPROTECT=y

### Various Zephyr boards enable features that we don&amp;#39;t want.
# CONFIG_BT is not set
# CONFIG_BT_CTLR is not set
# CONFIG_I2C is not set

CONFIG_LOG=y
CONFIG_LOG_MODE_MINIMAL=y # former CONFIG_MODE_MINIMAL
### Ensure Zephyr logging changes don&amp;#39;t use more resources
CONFIG_LOG_DEFAULT_LEVEL=0
### Use info log level by default
CONFIG_MCUBOOT_LOG_LEVEL_INF=y
### Decrease footprint by ~4 KB in comparison to CBPRINTF_COMPLETE=y
CONFIG_CBPRINTF_NANO=y
### Use the minimal C library to reduce flash usage
CONFIG_MINIMAL_LIBC=y
CONFIG_NRF_RTC_TIMER_USER_CHAN_COUNT=0



# IS BOOTLOADER?
CONFIG_IS_BOOTLOADER=y
CONFIG_BOOTLOADER_SRAM_SIZE=256
CONFIG_MCUBOOT_INDICATION_LED=y

# Required by USB
CONFIG_MULTITHREADING=y

# USB
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DFU_CLASS=y
CONFIG_USB_DEVICE_REMOTE_WAKEUP=n

#### MAY FUCK UP YOUR DAY 
#CONFIG_USB_DFU_REBOOT=y

CONFIG_USB_DEVICE_PRODUCT=&amp;quot;MCUBOOT&amp;quot;
CONFIG_USB_DEVICE_VID=0x1915
CONFIG_USB_DEVICE_PID=0x520F

CONFIG_BOOT_USB_DFU_GPIO=y
CONFIG_BOOT_SERIAL_PIN_RESET=y


# Serial
CONFIG_CONSOLE=n
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_LINE_CTRL=y

# MCUBoot serial
CONFIG_GPIO=y
CONFIG_MCUBOOT_SERIAL=y
CONFIG_BOOT_SERIAL_CDC_ACM=y
CONFIG_NORDIC_QSPI_NOR=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also to add here, the same code works with CC disabled and uploaded through MCUboot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/500388?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 09:14:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d25fc5b5-a686-4041-be01-2d2217d266a0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I thought the problem was running the usb console sample with CryptoCell defined in your board files? I tested that with nRF Connect SDK&amp;nbsp;v2.6.1 as that is what you descibed. (So that is using the saple from sdk-zephyr in that nRF Connect SDK release).&lt;/p&gt;
[quote user="AintMina"]Is there some specific config I need in the mcuboot to upload CC software? though it did also break the bootloader when CC was enabled...[/quote]
&lt;p&gt;No. But as the bootloader&amp;nbsp;normally does crypto operations (validating images on activation and on boot), there may be a difference depending on if CryptoCell is enabled or not if you configure the bootloder to use cryptocell fro crypto operations. Is the issue here in the bootloader? If so we need to look into that. And if so, can we start with if you are using MCUboot, NSIB, both, or some custom bootloader? And also if using the bootloaders we provide in the SDK, which changes have you made and can you share the configuration etc?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/500374?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 08:36:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f720e296-9b79-4813-b16c-3bdf1f5a695d</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;I though we already established this that it&amp;#39;s not USB and CryptoCell, it&amp;#39;s just CryptoCell.&lt;/p&gt;
&lt;p&gt;There is no need to trigger anything and no, CC(CryptoCell) is the only change.&lt;/p&gt;
&lt;p&gt;Hmm...&lt;/p&gt;
&lt;p&gt;Are there some HW requirements for CC?&lt;/p&gt;
&lt;p&gt;Does it require external 32k clock?&lt;/p&gt;
&lt;p&gt;Did you use&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main"&gt;sdk-zephyr&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main"&gt;zephyr&lt;/a&gt;? the board files do differ between these. I used sdk-zephyr since thats what vscode automatically uses.&lt;/p&gt;
&lt;p&gt;Is there some specific config I need in the mcuboot to upload CC software? though it did also break the bootloader when CC was enabled...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/500240?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 14:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2847043-50d7-4df4-b0d9-e01a66eef63a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I built the console sample (zephyr/samples/subsys/usb/console/) using your unmodified board files (which include cryptocell in the device tree), and the sample works as expected when I test on a DK also when I am not debugging (I even power-cycled the device). I get the expected output in the CDC terminal.&lt;/p&gt;
&lt;p&gt;Do you need to do anything else to trigger the issue? As mentionned before I am not able to see a link between USB and CryptoCell so honestly I am not very suprised about this result. Could it be that you have also made other changes at the same time, and that the problem was something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/500144?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 08:44:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dcb0801-d7d2-4443-ab31-59bfdd84b741</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;Don&amp;#39;t mind the mess, it&amp;#39;s a work in progress still.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6747.boards.zip"&gt;devzone.nordicsemi.com/.../6747.boards.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1724834369401v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/500122?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 07:50:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4270df3a-7147-43e0-a4d6-d57a601f5d21</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AintMina"]The problem is that in vscode the &amp;quot;flash&amp;quot;, &amp;quot;erase and flash&amp;quot; and &amp;quot;debug&amp;quot; all use &amp;quot;merged.hex&amp;quot; and not the APP. Meaning everytime I flash my app with the debugger I replace my working bootloader with the non working one. This is a terrible way of doing things if bootloader and app are developed by different people or departments. This means I HAVE to have the bootloader on my computer when I want to debug an app for it.[/quote]
&lt;p&gt;That is a good point. The reason we do it like this is that it makes the most common use case working out of the box. Whenever you try to flash or debug, you will get all images in case of multi image projects. But this is not always wat you want. An alternative could be to get the hex file you want to use, and point to that using&amp;nbsp;&lt;code&gt;CONFIG_MCUBOOT_BUILD_STRATEGY_USE_HEX_FILE&lt;/code&gt;. See &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/config_and_build/multi_image.html#default_configuration"&gt;here&lt;/a&gt; for more details on that.&lt;/p&gt;
[quote user="AintMina"] the problem is that cryptocell doesn&amp;#39;t work without debugger attached. This was the same problem which &amp;quot;deleted&amp;quot; my bootloader since the APP also enabled cryptocell in the bootloader and overwrote it and thus bootloader didn&amp;#39;t work anymore. [/quote]
&lt;p&gt;I see. This is what we must focus on. However, I have not been able to reproduce this which is why I have been asking for more information.&lt;/p&gt;
[quote user="AintMina"]And why would I need DK to run the sample codes? I still havent been able to start writing the actual FW to this, because theres still something wrong with the config and that&amp;#39;s what Im trying to figure out.[/quote]
&lt;p&gt;There are a few good reasons for having a DK. First of all, it is a known good piece of hardware, and as such a good platform for prototying and debugging specific issues. It is also a platform we in Nordic tech support has access to, so if you were able to reproduce the issue on that, you could let us know how we can reproduce on our end. It can also be used to debug your custom board (which you described early on that you did not want to do or were not able to do).&lt;/p&gt;
[quote user="AintMina"]&lt;p&gt;So, why is cryptocell only working with debugger?&lt;/p&gt;
&lt;p&gt;Without debugger, the cryptocell app doesnt even reach main.&lt;/p&gt;
&lt;p&gt;Im running the board in normal mode and DCDC is NOT enabled.&lt;/p&gt;[/quote]
&lt;p&gt;That what we need to figure out. Can you share your &lt;em&gt;full&lt;/em&gt; set of board files in a zip so that I get the full picure and have better hops of being able to reproduce the issue? (I want to start with simply building for your board and running that on my DK as that seems like the best option at this point).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/499932?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 09:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44973a6d-3551-4006-b2b8-0bbf86751d65</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;To the first part:&lt;/p&gt;
&lt;p&gt;The problem is that in vscode the &amp;quot;flash&amp;quot;, &amp;quot;erase and flash&amp;quot; and &amp;quot;debug&amp;quot; all use &amp;quot;merged.hex&amp;quot; and not the APP. Meaning everytime I flash my app with the debugger I replace my working bootloader with the non working one. This is a terrible way of doing things if bootloader and app are developed by different people or departments. This means I HAVE to have the bootloader on my computer when I want to debug an app for it.&lt;/p&gt;
&lt;p&gt;The second part:&lt;/p&gt;
&lt;p&gt;I consider the device bricked when it does not show up in the programming app. The weird part about it was that vscode and nrf connect app did not find the device, but JLinkExe did. And after connecting through JLinkExe, vscode and nrf connect app found it.&lt;/p&gt;
&lt;p&gt;And yes, the problem is that cryptocell doesn&amp;#39;t work without debugger attached. This was the same problem which &amp;quot;deleted&amp;quot; my bootloader since the APP also enabled cryptocell in the bootloader and overwrote it and thus bootloader didn&amp;#39;t work anymore. This is the jankiest MCU I&amp;#39;ve ever used...&lt;/p&gt;
&lt;p&gt;And why would I need DK to run the sample codes? I still havent been able to start writing the actual FW to this, because theres still something wrong with the config and that&amp;#39;s what Im trying to figure out.&lt;/p&gt;
&lt;p&gt;So, why is cryptocell only working with debugger?&lt;/p&gt;
&lt;p&gt;Without debugger, the cryptocell app doesnt even reach main.&lt;/p&gt;
&lt;p&gt;Im running the board in normal mode and DCDC is NOT enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/499691?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 08:45:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6659d7a-e713-4333-8883-ebf737fa2062</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Regarding &amp;quot;&lt;em&gt;1. Why did the debugger erase my bootloader even though the app was built for it?&amp;quot;&lt;/em&gt;, I do not know how you used it, but if you do a full erase / erase all (which you often do when programming or debugging), that will erase the whole flash, includign any bootlaoders and the UICR. If you just want to re-flash the application you can seelct to use sector erase. If you are using nRF Connect for VS code for programming you can select if you want to do a full erase or not when flashing, as explaind in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109689/nrf-connect-for-vscode-flash-command-erase-all-flash-es-need-to-erase-only-app-sector/476189"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regarding &amp;quot;&lt;em&gt;2. How did the debugger(NRF52dk) brick the board even though the code was running before bricking it?&lt;/em&gt;&amp;quot; I do not know which state it what in when&amp;nbsp; you refer to it as &amp;quot;bricked&amp;quot; nor how it got there. If you can share details about how it behaved when you define it as &amp;quot;bricked&amp;quot;, how it ended up in that state and hwo it receoverd, we may be able to understand more.&lt;/p&gt;
&lt;p&gt;Generally, there is&amp;nbsp;no need to use a debugger to get CrytpoCell to work, and also no conflict between CryptoCell and USB. So I suspect there are other more fundamental issues with your device or setup. I am also not able to understand the comments about debugger bricking your device. I kindly ask that you elaborate much more and provide exact details if you want specific feedback.&lt;/p&gt;
&lt;p&gt;It seems to me that you are seeing a significant number of seemingly unrelated issues that are difficult to explain. I would suggest that you try to reduce the numer fo unkowns in the beginning by obtaining a DK so tha that you have known good hardware and test parts of your firmware on that. Then you can gradually move to your custom HW. Alternatively, there is an absolute requierment that you are able to debug your hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/499637?ContentTypeID=1</link><pubDate>Sat, 24 Aug 2024 10:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d9a9e79-6707-46e5-85c0-a274195001ce</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;Great, this place removes posts...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;and now the ****** board is bricked...

1. Why did the debugger erase my bootloader even though the app was built for it?

2. How did the debugger(NRF52dk) brick the board even though the code was running before bricking it?&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Well, I managed to get it unbricked by messing around with gpio registers from JLinkExe. Apparently it needs to be connected with JLinkExe every time it disappears. So theres something funky going on with nrfutil...&lt;/p&gt;
&lt;p&gt;But now I can&amp;#39;t get the&amp;nbsp;mcuboot to work and I don&amp;#39;t have the original mcuboot config which we managed to get to work after a long battle...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/499611?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 15:02:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea0f160c-7293-4e7b-9bd5-0e280fcea1e2</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;Apparently cryptocell only works with debugger attached. Whats up with that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/499345?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 10:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a36e32d0-7809-4e78-8038-80e5ce28aa46</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;Clearly you didnt read ***. I have stated that I DO NOT have access to any DK board which has USB connected to the MCU.&lt;/p&gt;
[quote userid="134745" url="~/f/nordic-q-a/112743/cryptocell-and-usb/492631"]&lt;p&gt;1. Installed fresh ubuntu 22.04 virtual machine&lt;/p&gt;
&lt;p&gt;2. Installed vscode&lt;/p&gt;
&lt;p&gt;3. Installed nrf extension pack for vscode&lt;/p&gt;
&lt;p&gt;4. Installed 2.6.1 toolchain and SDK from vscode extension&lt;/p&gt;[/quote]
&lt;p&gt;5. Build &amp;quot;console&amp;quot; sample code for my custom board&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52840_5F00_custom.dts"&gt;devzone.nordicsemi.com/.../nrf52840_5F00_custom.dts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;6. Opened any serial terminal and saw the hello world message&lt;/p&gt;
&lt;p&gt;7. Enable cryptocell in board files OR app overlay, delete build folder and build again&lt;/p&gt;
&lt;p&gt;8. Serial terminal cannot connect to it anymore nor does lsusb find the device anymore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/499302?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 07:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a30bbc3-f6f7-4bc6-9fba-b63b346a5b47</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have read this thread again and I am unfrortunately not able to understand what the issue is and what you want us to do. Please provide a detailed set of step by step instructions&amp;nbsp;of how to reproduce this issue on a DK if you want us to look more into this. Also please note that I do not try to be difficult, it is just that I am simply not able to understand the issue from reading this thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/499259?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 18:04:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3f807b6-ff94-4926-ae67-114cbcc09e7d</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;...Im tired of explaining this already, read the posts... Build &amp;quot;console&amp;quot;, *** works, enable cryptocell, *** no work!&lt;/p&gt;
&lt;p&gt;if you have more questions you have to be more specific&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/497655?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 14:29:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca8441df-503a-4b8f-b685-fca63a0d39c5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Dejan is out office so I have taken over this case. Reading through this case I have problems understanding the issue. Can you please explain from the beginning the exact issue and how to reproduce it?&lt;/p&gt;
&lt;p&gt;PS: Regarding not having a debugger, that is essential for embedded development. I assume you have at least one as you are able to program it? And using the DK as a debugger should not brick your custom board in any way. If that was the case I suggest a separate thread about that (my guess would be&amp;nbsp;a that you power the board before attacking the debugger with a common ground, but this would then be an issue regardless of which debugger you connected).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/497147?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 11:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31edf215-7008-45de-a04f-d329fe1e76b9</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;As I said, I don&amp;#39;t have access to proper debugger, so the first test would be to figure out why you got the same ish problem and try to see if it&amp;#39;s the same.&lt;/p&gt;
&lt;p&gt;Notify when you find a solution to the problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/495790?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 10:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe973485-b491-436a-9f2b-9f353c3c1b84</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="AintMina"]I have already told you these things...[/quote]
&lt;p&gt;Yes, this is correct. You said that your device&amp;nbsp;&lt;span&gt;no longer gets recognized as a usb serial device and it is not found with NRF Connect or any other serial terminal software. I might have hoped for additional information.&lt;br /&gt;Did you get any console output from the sample when cryptocell was disabled and when it was enabled?&lt;/span&gt;&lt;/p&gt;
[quote user="AintMina"]You replicated the same problem as I got and still refuse to help on it...[/quote]
&lt;p&gt;I am not sure if the cause of the problem in our testing is the same. I am not refusing to help you. On the contrary, I am doing further testing and having internal discussion trying to assist you. Are you able to send a software which can be run on nrf52840-dongle that would verify the behavior?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/495623?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 12:20:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23559447-dfd3-4db2-b8ed-81f86238a1b0</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;Is this question simulator?? I have already told you these things...&lt;/p&gt;
&lt;p&gt;You replicated the same problem as I got and still refuse to help on it...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/495393?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 10:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80897d8-3374-413a-b9d8-9230dac81f65</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Regarding the warnings, they should be supressed in the build system&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1-1/boards/arm/nrf52840dk_nrf52840/pre_dt_board.cmake"&gt;pre_dt_board.cmake&lt;/a&gt;&amp;nbsp;but probably not in VS Code.&lt;br /&gt;&lt;br /&gt;How did you test on your board that USB communication breaks when cryptocell is enabled?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/495129?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 06:28:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b7bc8cf-de91-4106-b0a3-e68eeca4453e</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/112743/cryptocell-and-usb/493372"]This can be fixed by adding following lines to the app.overlay file[/quote]
&lt;p&gt;This is more of workaround than a fix, but anyway this wasn&amp;#39;t the actual problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/112743/cryptocell-and-usb/493372"]Is USB communication broken when you disable cryptocell in app.overlay?[/quote]
&lt;p&gt;I have said that the software works when cryptocell is disabled in the board files, meaning theres something wrong with it when enabled. The question is what?&lt;/p&gt;
&lt;p&gt;You got the possible same error as I got so could you help?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/493372?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 10:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70214e91-91da-49d6-9f61-41ad19082283</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have tested building part of the USB console sample in NCS v2.6.1 on nrf52840-dk. I have seen ACL, cryptocell, clock and power warnings. There were address collisions between ACL and flash-controller as well as between power and clock. Did you see the same warnings on nrf52840-dk?&lt;/p&gt;
[quote user=""]&lt;p&gt;Q1:&amp;nbsp; Why doesn&amp;#39;t the devicetree find &amp;quot;nordic,cryptocell&amp;quot;? I get a warning like this:&amp;nbsp;Unknown node type &amp;quot;nordic,cryptocell&amp;quot;&lt;/p&gt;
&lt;p&gt;- This also applies to nrf52840 Dongle and DK.&lt;/p&gt;[/quote]
&lt;p&gt;This can be fixed by adding following lines to the app.overlay file&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;cryptocell {
	compatible = &amp;quot;arm,cryptocell-310&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]Q2: Cryptocell is enabled by default in nrf52840 devicetree which gets applied to all the boards (like nrf52840dongle and nrf52840dk and my custom board which uses nrf52840dongle as template). But this breaks the usb communication with the &amp;quot;console&amp;quot; sample on my custom board (It does build though).[/quote]
&lt;p&gt;Is USB communication broken when you disable cryptocell in app.overlay?&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;cryptocell {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;Q3: The acl node has also a warning:&amp;nbsp;Address range collides with flash-controller@4001e000 (both start at 0x4001e000)&lt;/p&gt;
&lt;p&gt;- But it still works with it enabled.&lt;/p&gt;[/quote]
&lt;p&gt;This is the same address collision warning that I have seen on the nrf52840-dk. Can you elaborate on &amp;quot;But it still works with it enabled&amp;quot;?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cryptocell and usb</title><link>https://devzone.nordicsemi.com/thread/492874?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 06:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c442abe-b81f-4bb7-ab65-c2749bbac13f</guid><dc:creator>AintMina</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/112743/cryptocell-and-usb/492797"]&lt;p&gt;Can you elaborate on step 6?&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;By clicking &amp;quot;devicetree&amp;quot; button in the vscode extension.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/112743/cryptocell-and-usb/492797"]Device could not be recognized as USB device. I have tested with cryptocell added to the app.overlay. Which modules specifically are you referring to and how did you disable them?[/quote]
&lt;p&gt;So you got the same type of error as I got. Did you manage to figure out why? Did you istall the SDK from vscode extension? Which repo did you use? I noticed that the&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main"&gt;zephyr&lt;/a&gt;&amp;nbsp;and the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main"&gt;nrf-zephyr&lt;/a&gt;&amp;nbsp;differ and especially with cryptocell. All my methods are by using the vscode extension and to replicate these you should use it too.&lt;/p&gt;
&lt;p&gt;Why did you add cryptocell to app.overlay? It should have been enabled by default.&lt;/p&gt;
&lt;p&gt;The modules seen in the devicetree picture! Did uou use the vscode method or cli? You can disable them from the devicetree gui.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>