Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : Xcos STM32 toolbox details
Login with GitLab

Xcos STM32 toolbox

Add STM32 peripherals blocks to the palette, Code Generation
(14529 downloads for this version - 14536 downloads for all versions)
pascal reynaud
Owner Organization
Creation Date
June 30, 2017
Source created on
Scilab 5.5.x
Binaries available on
Scilab 5.5.x:
Windows 64-bit
Install command
--> atomsInstall("xcos_stm32_toolbox")
            STM32 Xcos toolbox for Scilab : STM32 peripherals Xcos library models.
- STM32 configuration is done with STM32CubeMX (
- Automatic "C" code generation for STM32 is based on STM32Cube HAL
- The STM32 embedded target enables users to quickly deploy their application
models in SCILAB and Xcos to STM32 MCUs.
- The STM32 embedded target provides an Xcos blockset library, containing STM32
peripherals, to manage peripherals data.
- The generated code can be built and downloaded on the target. 
   STM32 Xcos toolbox requires:
    - STM32CubeMX installed
    - One of the toolchains supported by STM32CubeMX (IAR,KEIL,Atollic,ST)
   To load the toolbox :
      exec start_STM32.sce 
   To unload the toolbox :
      exec stop_STM32.sce
   help stm32            
Files (3)
[5.12 MB]
Miscellaneous file

[6.71 MB]
Source code archive

[6.71 MB]
Windows 64-bit binary for Scilab 5.5.x

News (0)
Comments (9)     Leave a comment 
Comment from Atsushi Fujita -- July 11, 2018, 06:45:17 AM    
I installed xcos_STM32_toolbox from the module management of the application of xcos, but 
the following error was displayed on the console.

atomsLoad: ファイル 'C:\Users\atsus\AppData\Roaming\Scilab\scilab-
5.5.2\atoms\x64\xcos_stm32_toolbox\1.1\loader.sce'  (xcos_stm32_toolbox - 1.1 から)

Could you tell me the installation procedure?
Comment from Thomas Smith -- June 15, 2020, 08:56:34 PM    
I'm trying to install the into Scilab 5.5.2, and I keep 
running into issues.
The error I'm dealing with right now is after the installation through the 
atomsGui(), following the restart of Scilab, I get this error:

atomsLoad: The file 'C:\Program Files\scilab-
5.5.2\contrib\xcos_stm32_toolbox\1.1\loader.sce' from (xcos_stm32_toolbox - 1.1) does 
not exist or is not read accessible.
Start X2C

+ Loading X2C functions
- Done
+ Populating X2C library manager
- Done 

+ Loading of all active X2C libraries
+++ Loading Basic library for x64 system...

The directories are there, and sure enough loader.sce is not in the .\1.1\ directory.  
If I try to add it in manually (from the Zip) I get another error:

atomsLoad: An error occurred while loading 'xcos_stm32_toolbox-1.1':
	javaclasspath: Could not add URL to system classloader : C:\Program 
Start X2C

+ Loading X2C functions
- Done
+ Populating X2C library manager

Please help! :)
Comment from George Small -- September 23, 2020, 11:20:20 AM    
I get the same error as those above.  The two zip files (sorce and binary) are identical. 

Did the author ever test his work?
Comment from Thomas Smith -- September 23, 2020, 09:28:50 PM    
I spent a very long time trying to solve this issue, and was never successful.  I don't 
know how helpful this will be to you, but the only way I was able to get xcos to talk to 
the outside world was through the Arduino module.
If you choose this route, you need to pay attention to the XCOS and Arduino module 
versions, as they don't all work interchangeably.
Good luck!
Comment from George Small -- September 27, 2020, 01:30:53 PM    
Thanks Tom.

I was finally able to get this Toolbox to run.  I realized that the instructions were 
incorrect, and that despite being labeled as source and binary, both compressed files 
above are uncompiled source files.  On windows you need to first install a C compiler.  I 
started with a clean Windows install and followed the Scilab instructions to install MinGW

gcc for 5.5.2.  With that working (test with haveacompiler() must return T, not F) I was 
able to follow the instructions to run "exec start_STM32.sce" which finally built
STM32 Toolbox!

Note I also tried this on Ubuntu 18.04 Linux with gcc installed.  The build script seemed 
to work fine no errors and STM32 shows up in the help tool.  But no STM32 blocks in the 
pallet browser, so something not quite right for Linux.  STM tools tend to prefer Windows 
anyway so for those giving it a try best stick to Windows.

Good luck!

Answer from Thierry FLAVEN -- January 9, 2022, 01:09:09 PM    
Thanks for sharring George and all of you.
After trying for 2 days I finally got the T answer so the MinGW compiler worked now.

But I'm not able to install the STM32 tools box after, what are the "instructions you
followed" please?

I have currently win10 Scilab 5.5.2 and mingw 0.9.3 
haveacompiler is returning T
atomsGetInstalled is returning !mingw  0.9.3  user  SCIHOME\atoms\x64\mingw\0.9.3  I  !

I tried:

* atomsInstall("xcos_stm32_toolbox")
     result were : 
       !--error 10000 
          at line      51 of function atomsError called by :  
          at line      82 of function atomsExtract called by :  
          at line     318 of function atomsInstall called by :  
* I download both zip and tried while while the path was poiting the download rep: 
- atomsInstall("") or
     result were:
        !--error 10000 
         atomsDESCRIPTIONread: The file "C:\Users\T2\AppData\Roaming\Scilab\scilab-   
     5.5.2\.atoms\x64\tmp_1641730019\stm32_images\DESCRIPTION" does not exist.
         at line      46 of function atomsDESCRIPTIONread called by :  
         at line     160 of function atomsInstall called by :  

* I unzip both and tried for each : exec start_STM32.sce or exec builder.sce 
      resulte were for all:
          !x86_64-w64-mingw32-gcc.exe: error: unrecognized command-line option '-Wl'; did
you mean '-W'?                                                                 !

          !make: *** [Makelib:103: libxcos_stm32.dll] Error 1                              
          !--error 10000 
ilib_compile: Error while executing Makelib.
at line      25 of function dlwCompile called by :  
          +++ 20 more other at lines of error

Could you George or somebody tell me how to pass that and install it please ?
Comment from Thomas Smith -- September 28, 2020, 03:36:11 PM    
!!! THANKS GEORGE !!! :)
I'll have to give this a shot!
Comment from dooooo kang -- December 5, 2020, 05:25:43 AM    
This comment has been deleted.
Comment from Thierry FLAVEN -- January 8, 2022, 08:38:03 AM    
Is it possible to re-build / install that toolbox on Scilab or do we have to use
5.5.x please ?
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.