Comments (4)
You need to allocate memory before calling tx_thread_create, e.g.
CHAR *pointer;
ret = tx_byte_allocate(byte_pool, (VOID **) &pointer, DEFAULT_STACK_SIZE, TX_NO_WAIT);
ret = tx_thread_create(&my_thread, "My Thread", my_thread_entry, 0, pointer, DEFAULT_STACK_SIZE, DEFAULT_THREAD_PRIO,
DEFAULT_PREEMPTION_THRESHOLD, TX_NO_TIME_SLICE, TX_AUTO_START);
You might want to check the value of ret
after each call
from x-cube-azrtos-h7.
CHAR *pointer;
ret = tx_byte_allocate(byte_pool, (VOID **) &pointer, DEFAULT_STACK_SIZE, TX_NO_WAIT);
thank you very much! I was careless and tried Azure for the first time.
from x-cube-azrtos-h7.
You need to allocate memory before calling tx_thread_create, e.g.
CHAR *pointer; ret = tx_byte_allocate(byte_pool, (VOID **) &pointer, DEFAULT_STACK_SIZE, TX_NO_WAIT); ret = tx_thread_create(&my_thread, "My Thread", my_thread_entry, 0, pointer, DEFAULT_STACK_SIZE, DEFAULT_THREAD_PRIO, DEFAULT_PREEMPTION_THRESHOLD, TX_NO_TIME_SLICE, TX_AUTO_START);
You might want to check the value of
ret
after each call
May I ask you another question, if I choose dynamic memory allocation, how should I allocate for it?
from x-cube-azrtos-h7.
Hi @zsjlovestudy,
Your questions are more than welcome. However, the right channel to ask for support about such aspects is the ST Community via a post on the Azure RTOS dedicated section.
This channel is rather dedicated to report bugs or enhancements related to the firmware published within this repo.
Please allow me to close this issue. Thank you for your comprehension.
With regards,
from x-cube-azrtos-h7.
Related Issues (20)
- Nx_TCP_Echo_Client example on STM32H735G-DK HOT 4
- MQTT_KEEP_ALIVE_TIMER define value too big HOT 1
- SNMP Addon HOT 1
- usbx cdc acm, missing zlp HOT 3
- STM32H743 Timer HAL Channel Start and Stop
- Difference between package downloaded from ST website HOT 1
- FX_IO_ERROR on Fx_NoR_Write_Read_File example HOT 4
- Return value type error in ux_dcd_stm32.h HOT 2
- usb dma HOT 2
- Azure-IOT Addon HOT 2
- Bug in generated code for USBX with CDC-ECM Class HOT 1
- HTTPS web server not compiling - Latest version of CubeMX CubeIDE X-CUBE-AZRTOS-H7 HOT 1
- Is there an example of a USB host connected to a USB camera? HOT 1
- ux_device_class_hid_event_set stucks when transmitting using endpoint 2 HOT 1
- Update FileX driver's state after UNINIT
- Reconnect not working properly
- Is there an example of a USB host using usb hub?
- FX_IO_ERROR - LX_SYSTEM_INVALID_BLOCK HOT 35
- "Concerns about Write Position Offset in NAND Flash Driver - Seeking Clarification for FileX + LevelX Porting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x-cube-azrtos-h7.