Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

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.