Azure RTOS topics https://gorovian.000webhostapp.com/?exam=t5/azure-rtos/bd-p/AzureRTOS Azure RTOS topics Sat, 23 Oct 2021 23:02:50 GMT AzureRTOS 2021-10-23T23:02:50Z Threadx dynamic application loading cannot pre-initialize default values https://gorovian.000webhostapp.com/?exam=t5/azure-rtos/threadx-dynamic-application-loading-cannot-pre-initialize/m-p/2437943#M6 <P>The Applications code uses the structure to initialize the default values. The application will not run<BR />How to solve this problem?</P><P>example:<BR />`typedef struct test_11{<BR />ULONG test1;<BR />ULONG test2;<BR />ULONG test3;<BR />ULONG test4;<BR />}test_22;</P><P>test_22 test444 = {<BR />123,<BR />456,<BR />789,<BR />147,<BR />};`</P> Fri, 11 Jun 2021 06:02:13 GMT https://gorovian.000webhostapp.com/?exam=t5/azure-rtos/threadx-dynamic-application-loading-cannot-pre-initialize/m-p/2437943#M6 Chen_Kuan 2021-06-11T06:02:13Z suppress incompatible pointer types in Azure RTOS demo program https://gorovian.000webhostapp.com/?exam=t5/azure-rtos/suppress-incompatible-pointer-types-in-azure-rtos-demo-program/m-p/2238529#M4 <P>I am bringing up Azure RTOS on a new ARM M4 platform.</P><P>Most everything is built and running. I patterned the port closely after the Microchip&nbsp;<A href="#" target="_blank">ATSAME54-XPRO</A>&nbsp;ARM M4 getting stated platform.</P><P>I removed the Azure IoT main.c and replaced it with the simple demo test program as described on&nbsp; &nbsp;<A href="#" target="_blank">Chapter 6 - Demonstration System for Azure RTOS ThreadX | Microsoft Docs</A></P><P>&nbsp;</P><P>When I compile I am getting this warning/error that do not know how to suppress:</P><P>Can some one help?</P><P>&nbsp;</P><LI-CODE lang="applescript">ty_module/inc -IC:/ti/workspace_v10_test/getting-started/core/lib/netxduo/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc -I../lib/ti_start/config -I../lib/ti_start/src -Ic:/ti/simplelink_msp432e4_sdk_4_20_00_12/source/third_party/CMSIS/Include -IC:/ti/workspace_v10_test/getting-started/core/src/. -IC:/ti/workspace_v10_test/getting-started/core/src/azure_iot_mqtt -IC:/ti/workspace_v10_test/getting-started/core/src/azure_iot_nx -IC:/ti/workspace_v10_test/getting-started/core/libhttps://techcommunity.microsoft.com/jsmn/src -I../lib/netx_driver/src -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin -fshort-enums -Wall -Wextra -Wuninitialized -Wshadow -Wdouble-promotion -Werror -Wno-unused-parameter -Wno-old-style-declaration -O0 -g3 -std=gnu99 -MD -MT app/CMakeFiles/msp432e_azure_iot.dir/maindemo.c.obj -MF app\CMakeFiles\msp432e_azure_iot.dir\maindemo.c.obj.d -o app/CMakeFiles/msp432e_azure_iot.dir/maindemo.c.obj -c ../app/maindemo.c ../app/maindemo.c: In function 'tx_application_define': ../app/maindemo.c:79:36: error: passing argument 2 of '_txe_byte_allocate' from incompatible pointer type [-Werror=incompatible-pointer-types] 79 | tx_byte_allocate(&amp;byte_pool_0, &amp;pointer, DEMO_STACK_SIZE, TX_NO_WAIT); | ^~~~~~~~ | | | CHAR ** {aka char **} In file included from ../app/maindemo.c:10: C:/ti/workspace_v10_test/getting-started/core/lib/threadx/common/inc/tx_api.h:1396:63: note: expected 'void **' but argument is of type 'CHAR **' {aka 'char **'} 1396 | UINT _txe_byte_allocate(TX_BYTE_POOL *pool_ptr, VOID **memory_ptr, ULONG memory_size, ../app/maindemo.c:87:36: error: passing argument 2 of '_txe_byte_allocate' from incompatible pointer type [-Werror=incompatible-pointer-types] 87 | tx_byte_allocate(&amp;byte_pool_0, &amp;pointer, DEMO_STACK_SIZE, TX_NO_WAIT); | ^~~~~~~~ | | | CHAR ** {aka char **} In file included from ../app/maindemo.c:10: C:/ti/workspace_v10_test/getting-started/core/lib/threadx/common/inc/tx_api.h:1396:63: note: expected 'void **' but argument is of type 'CHAR **' {aka 'char **'} 1396 | UINT _txe_byte_allocate(TX_BYTE_POOL *pool_ptr, VOID **memory_ptr, ULONG memory_size, ../app/maindemo.c:97:36: error: passing argument 2 of '_txe_byte_allocate' from incompatible pointer type [-Werror=incompatible-pointer-types] 97 | tx_byte_allocate(&amp;byte_pool_0, &amp;pointer, DEMO_STACK_SIZE, TX_NO_WAIT); | ^~~~~~~~ | | | CHAR ** {aka char **} In file included from ../app/maindemo.c:10: C:/ti/workspace_v10_test/getting-started/core/lib/threadx/common/inc/tx_api.h:1396:63: note: expected 'void **' but argument is of type 'CHAR **' {aka 'char **'} 1396 | UINT _txe_byte_allocate(TX_BYTE_POOL *pool_ptr, VOID **memory_ptr, ULONG memory_size, ../app/maindemo.c:103:36: error: passing argument 2 of '_txe_byte_allocate' from incompatible pointer type [-Werror=incompatible-pointer-types] 103 | tx_byte_allocate(&amp;byte_pool_0, &amp;pointer, DEMO_STACK_SIZE, TX_NO_WAIT); | ^~~~~~~~ | | | CHAR ** {aka char **} In file included from ../app/maindemo.c:10:</LI-CODE><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P> Fri, 26 Mar 2021 19:56:14 GMT https://gorovian.000webhostapp.com/?exam=t5/azure-rtos/suppress-incompatible-pointer-types-in-azure-rtos-demo-program/m-p/2238529#M4 David Vescovi 2021-03-26T19:56:14Z LevelX with SDCard https://gorovian.000webhostapp.com/?exam=t5/azure-rtos/levelx-with-sdcard/m-p/2185138#M1 <P>I am looking at LevelX to use with an SD Card. I see that LevelX uses the 'spare' byes on each page.</P><P>&nbsp;</P><P>It appears that the extra, say, 16 bytes on a 512 byte nominal page means there is actually 528 bytes per page. This accords with my experience with small NAND Serial Data Flash chips where I have direct access to 528 bytes per page.</P><P>&nbsp;</P><P>I'm new to using SD Cards so I'm not too familiar with the spec. Are the extra bytes available to read/write? The SD Card I'm using reports 512 bytes per page. I cannot see or find any way to access the extra bytes. I'm using the i.MXRT 1064 with NXP's SDK (fsl_sd.c, fsl_sdmmc.c, etc.)</P><P>&nbsp;</P><P>Or, is LevelX not advisable for SD Cards? I understand that at least some SD Cards have wear leveling built in, but I didn't think it was universal. Am I wrong in this assumption?</P> Thu, 04 Mar 2021 16:09:48 GMT https://gorovian.000webhostapp.com/?exam=t5/azure-rtos/levelx-with-sdcard/m-p/2185138#M1 stevenoonan 2021-03-04T16:09:48Z