<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — creating a factory.bin for stm32l452]]></title>
		<link>https://www.wolfssl.com/forums/topic2091-creating-a-factorybin-for-stm32l452.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2091.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in creating a factory.bin for stm32l452.]]></description>
		<lastBuildDate>Mon, 04 Mar 2024 12:26:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: creating a factory.bin for stm32l452]]></title>
			<link>https://www.wolfssl.com/forums/post7542.html#p7542</link>
			<description><![CDATA[<p>This should be automatically included in your build (arch.mk around line 107):<br /></p><div class="codebox"><pre><code>    CFLAGS+=-DSTM32L4A6xx -DUSE_HAL_DRIVER -Isrc -Ihal </code></pre></div><p>This code has been tested with STM32L4A6, but you can change that to match your model</p>]]></description>
			<author><![CDATA[null@example.com (danielinux)]]></author>
			<pubDate>Mon, 04 Mar 2024 12:26:25 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7542.html#p7542</guid>
		</item>
		<item>
			<title><![CDATA[Re: creating a factory.bin for stm32l452]]></title>
			<link>https://www.wolfssl.com/forums/post7540.html#p7540</link>
			<description><![CDATA[<p>Hello Daniel,</p><p>Thank you so much for your responses!</p><p>I have included the correct path in the .config file now but I see this error: \t[CC-ARM] hal/stm32l4.o<br />In file included from /home/ghost/Documents/wolfboot4/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_def.h:29,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /home/ghost/Documents/wolfboot4/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_flash.h:27,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from hal/stm32l4xx_hal_conf.h:29,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from /home/ghost/Documents/wolfboot4/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal.h:29,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from hal/stm32l4.c:24:<br />/home/ghost/Documents/wolfboot4/Drivers/CMSIS/Device/ST/STM32L4xx/Include/stm32l4xx.h:174:3: error: #error &quot;Please select first the target STM32L4xx device used in your application (in stm32l4xx.h file)&quot;<br />&nbsp; 174 |&nbsp; #error &quot;Please select first the target STM32L4xx device used in your application (in stm32l4xx.h file)&quot;</p><br /><p>i realise that this means that the correct file- stm32l452.h is not being included properly even though I am define the macro in the stm32l4xx.h file:<br />#if !defined (STM32L412xx) &amp;&amp; !defined (STM32L422xx) &amp;&amp; \<br />&nbsp; &nbsp; !defined (STM32L431xx) &amp;&amp; !defined (STM32L432xx) &amp;&amp; !defined (STM32L433xx) &amp;&amp; !defined (STM32L442xx) &amp;&amp; !defined (STM32L443xx) &amp;&amp; \<br />&nbsp; &nbsp; !defined (STM32L451xx) &amp;&amp; !defined (STM32L452xx) &amp;&amp; !defined (STM32L462xx) &amp;&amp; \<br />&nbsp; &nbsp; !defined (STM32L471xx) &amp;&amp; !defined (STM32L475xx) &amp;&amp; !defined (STM32L476xx) &amp;&amp; !defined (STM32L485xx) &amp;&amp; !defined (STM32L486xx) &amp;&amp; \<br />&nbsp; &nbsp; !defined (STM32L496xx) &amp;&amp; !defined (STM32L4A6xx) &amp;&amp; \<br />&nbsp; &nbsp; !defined (STM32L4P5xx) &amp;&amp; !defined (STM32L4Q5xx) &amp;&amp; \<br />&nbsp; &nbsp; !defined (STM32L4R5xx) &amp;&amp; !defined (STM32L4R7xx) &amp;&amp; !defined (STM32L4R9xx) &amp;&amp; !defined (STM32L4S5xx) &amp;&amp; !defined (STM32L4S7xx) &amp;&amp; !defined (STM32L4S9xx)<br />&nbsp; /* #define STM32L412xx */&nbsp; &nbsp;/*!&lt; STM32L412xx Devices */<br />&nbsp; /* #define STM32L422xx */&nbsp; &nbsp;/*!&lt; STM32L422xx Devices */<br />&nbsp; /* #define STM32L431xx */&nbsp; &nbsp;/*!&lt; STM32L431xx Devices */<br />&nbsp; /* #define STM32L432xx */&nbsp; &nbsp;/*!&lt; STM32L432xx Devices */<br />&nbsp; /* #define STM32L433xx */&nbsp; &nbsp;/*!&lt; STM32L433xx Devices */<br />&nbsp; /* #define STM32L442xx */&nbsp; &nbsp;/*!&lt; STM32L442xx Devices */<br />&nbsp; /* #define STM32L443xx */&nbsp; &nbsp;/*!&lt; STM32L443xx Devices */<br />&nbsp; /* #define STM32L451xx */&nbsp; &nbsp;/*!&lt; STM32L451xx Devices */<br />&nbsp; &nbsp;#define STM32L452xx&nbsp; &nbsp; &nbsp; &nbsp; /*!&lt; STM32L452xx Devices */<br />&nbsp; /* #define STM32L462xx */&nbsp; &nbsp;/*!&lt; STM32L462xx Devices */<br />&nbsp; /* #define STM32L471xx */&nbsp; &nbsp;/*!&lt; STM32L471xx Devices */<br />&nbsp; /* #define STM32L475xx */&nbsp; &nbsp;/*!&lt; STM32L475xx Devices */<br />&nbsp; /* #define STM32L476xx */&nbsp; &nbsp;/*!&lt; STM32L476xx Devices */<br />&nbsp; /* #define STM32L485xx */&nbsp; &nbsp;/*!&lt; STM32L485xx Devices */<br />&nbsp; /* #define STM32L486xx */&nbsp; &nbsp;/*!&lt; STM32L486xx Devices */<br />&nbsp; /* #define STM32L496xx */&nbsp; &nbsp;/*!&lt; STM32L496xx Devices */<br />&nbsp; /* #define STM32L4A6xx */&nbsp; &nbsp;/*!&lt; STM32L4A6xx Devices */<br />&nbsp; /* #define STM32L4P5xx */&nbsp; &nbsp;/*!&lt; STM32L4Q5xx Devices */<br />&nbsp; /* #define STM32L4R5xx */&nbsp; &nbsp;/*!&lt; STM32L4R5xx Devices */<br />&nbsp; /* #define STM32L4R7xx */&nbsp; &nbsp;/*!&lt; STM32L4R7xx Devices */<br />&nbsp; /* #define STM32L4R9xx */&nbsp; &nbsp;/*!&lt; STM32L4R9xx Devices */<br />&nbsp; /* #define STM32L4S5xx */&nbsp; &nbsp;/*!&lt; STM32L4S5xx Devices */<br />&nbsp; /* #define STM32L4S7xx */&nbsp; &nbsp;/*!&lt; STM32L4S7xx Devices */<br />&nbsp; /* #define STM32L4S9xx */&nbsp; &nbsp;/*!&lt; STM32L4S9xx Devices */<br />#endif</p><br /><p>could you guide me as to where to define this macro?</p>]]></description>
			<author><![CDATA[null@example.com (akuraparthy)]]></author>
			<pubDate>Fri, 01 Mar 2024 21:57:04 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7540.html#p7540</guid>
		</item>
		<item>
			<title><![CDATA[Re: creating a factory.bin for stm32l452]]></title>
			<link>https://www.wolfssl.com/forums/post7537.html#p7537</link>
			<description><![CDATA[<p>I&#039;m wondering if the include paths are correct and match your current directory structure.</p><p>Wolfboot will be looking for that file (and other stm32l4xx_hal*.h) in one of the following:</p><p>&nbsp; &nbsp; &nbsp; $(STM32CUBE)/Drivers/STM32L4xx_HAL_Driver/Inc/<br />&nbsp; &nbsp; &nbsp; $(STM32CUBE)/Drivers/BSP/STM32L4xx_Nucleo_144/<br />&nbsp; &nbsp; &nbsp; $(STM32CUBE)/Drivers/CMSIS/Device/ST/STM32L4xx/Include/<br />&nbsp; &nbsp; &nbsp; $(STM32CUBE)/Drivers/CMSIS/Include/</p>]]></description>
			<author><![CDATA[null@example.com (danielinux)]]></author>
			<pubDate>Fri, 01 Mar 2024 05:36:25 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7537.html#p7537</guid>
		</item>
		<item>
			<title><![CDATA[Re: creating a factory.bin for stm32l452]]></title>
			<link>https://www.wolfssl.com/forums/post7536.html#p7536</link>
			<description><![CDATA[<p>Hello Daniel,</p><p>Thank you for your reply! This is my .config file now with the STM32CUBE variable pointing to the path of my STM32L4xx_HAL driver:<br />TARGET=stm32l4<br />SIGN=ECC256<br />HASH=SHA256<br />DEBUG?=0<br />VTOR?=1<br />CORTEX_M0?=0<br />NO_ASM?=0<br />EXT_FLASH?=0<br />SPI_FLASH?=0<br />ALLOW_DOWNGRADE?=0<br />NVM_FLASH_WRITEONCE=1<br />WOLFBOOT_VERSION?=0<br />V?=0<br />SPMATH?=1<br />RAM_CODE?=0<br />DUALBANK_SWAP?=0<br />IMAGE_HEADER_SIZE?=0x200<br />STM32CUBE?=$(HOME)/Documents/wolfboot4/stm32l4xx_hal_driver-master<br />.....<br />I still see this error: /bin/sh: line 1: test: 0x200: integer expression expected<br />\t[CC-ARM] hal/stm32l4.o<br />hal/stm32l4.c:24:10: fatal error: stm32l4xx_hal.h: No such file or directory<br />&nbsp; &nbsp;24 | #include &quot;stm32l4xx_hal.h&quot;<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^~~~~~~~~~~~~~~~~<br />compilation terminated.<br />make: *** [Makefile:350: hal/stm32l4.o] Error 1</p><p>May I know what I am doing wrong here?<br />Along with placing the path in the config file, am I to copy all the inc files and src files into the hal directory?</p>]]></description>
			<author><![CDATA[null@example.com (akuraparthy)]]></author>
			<pubDate>Thu, 29 Feb 2024 22:44:40 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7536.html#p7536</guid>
		</item>
		<item>
			<title><![CDATA[Re: creating a factory.bin for stm32l452]]></title>
			<link>https://www.wolfssl.com/forums/post7535.html#p7535</link>
			<description><![CDATA[<p>Hi akuraparthy,</p><p>The L4 is our only STM32 port that requires drivers from ST. Please download the STM32L4xx_HAL driver from STM and point the STM32CUBE variable in your config to the path, i.e.:</p><p>STM32CUBE=/path/to/stm32-cube/in/your/system</p><p>Hope this helps.</p><p>Thanks,</p><p>-- <br />Daniele - wolfSSL</p>]]></description>
			<author><![CDATA[null@example.com (danielinux)]]></author>
			<pubDate>Thu, 29 Feb 2024 15:27:53 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7535.html#p7535</guid>
		</item>
		<item>
			<title><![CDATA[creating a factory.bin for stm32l452]]></title>
			<link>https://www.wolfssl.com/forums/post7531.html#p7531</link>
			<description><![CDATA[<p>Hello!</p><p>I am trying to creating the factory.bin for stm32l452 using the .config file given in the /examples directory. I see that in the hal directory file- stm32l4.c, stm32l4xx_hal.h file is required. This file follows more dependencies which I have included. However, I get the following error when I run the make command. </p><p>make clean &amp;&amp; make<br />/bin/sh: line 1: test: 0x200: integer expression expected<br />/bin/sh: line 1: test: 0x200: integer expression expected<br />/bin/sh: line 1: test: 0x200: integer expression expected<br />/bin/sh: line 1: test: 0x200: integer expression expected<br />/bin/sh: line 1: test: 0x200: integer expression expected<br />\t[CC-ARM] hal/stm32l4.o<br />\t[CC-ARM] src/string.o<br />\t[CC-ARM] src/image.o<br />\t[CC-ARM] src/libwolfboot.o<br />\t[CC-ARM] src/keystore.o<br />\t[CC-ARM] src/loader.o<br />\t[CC-ARM] src/boot_arm.o<br />make: *** No rule to make target &#039;/home/ghost/STM32Cube/Repository/STM32Cube_FW_L4_V1.17.0/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_flash.o&#039;, needed by &#039;wolfboot.elf&#039;.&nbsp; Stop.</p><p>I am not sure how to correct this error. I know that the file- stm32l4xx_hal_flash needs to be included as well but when i include it in the hal or src directory, the error remains. Please let me know what I can do fix this. </p><p>Thank you!</p>]]></description>
			<author><![CDATA[null@example.com (akuraparthy)]]></author>
			<pubDate>Thu, 29 Feb 2024 01:43:25 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7531.html#p7531</guid>
		</item>
	</channel>
</rss>
