Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


STM32F746 disco malloc hang

Hi,

I am building the exemple “LTDC_picturefromSDCard” from STM32Cube_FW_F7, on ubuntu eclipse gcc. After many attempt i can build and debug the project on the stm32F746discovery board.

When building linker had warning  :
/usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/bin/ld: warning: /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/libg_nano.a(lib_a-errno.o) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail

when in debug code hang on:
pDirectoryFilescounter = (char*)malloc((size_t)MAX_BMP_FILE_NAME); (line 126 of main.c)
malloc send an Hard exeption.

I belive a wrong declaration of the heap but every thing seem to be ok.

Please Help!!!!

Jean Pierre Lathuile

There is all the newlib function in trouble. I have try to install the AC6 workbench but that was eclipse that stall.
On an other site an arm genius has rewrite malloc and free.
But i miss str function printf ...

JP

Hi,
Install the last arm-none-eabi and every thing came OK.

One has not much interest in this kit, but it seem to be a great kit.

JP


Hi JP, here is the steps I used :
- Download the STM32Cube_FW_F7_V1.4.0;
- Launch SW4STM32 (V1.8.0) and select the workspace : C:...\STM32Cube_FW_F7_V1.4.0\Projects\STM32746G-Discovery\Examples\LTDC\LTDC_Display_1Layer\SW4STM32;
- Right-click in the Project Explorer window >> Import >> General >> Existing Projects into Workspace >> Next >> Browse >> select STM32746G_DISCOVERY folder in SW4STM32 folder >> OK >> Finish;
- To reduce compilation time, I activate the parallel build : Right-click on the project >> Properties >> C/C++Build >> Behavior tab >> Enable parallel build (Use optimal jobs);
- No issue faced at compile & link.


As i was written in my last post, that was a problem with newlib. I was using arm-none-eabi 4.9 and installing 5.2 solved the problem.
I use eclipse and may be it is easyer with SW4STM32.


OK. Very good to know that the arm-none-eabi 5.2 solves the issue.
Thank you for sharing this info.
Yes, it seems to be easier with SW4STM32.


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs