Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : Xcos STM32 toolbox details
Please login or create an account

Xcos STM32 toolbox

Add STM32 peripherals blocks to the palette, Code Generation
(8381 downloads for this version - 8388 downloads for all versions)
pascal reynaud
Owner Organization
Marc Piedallu
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 (7)     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!

Comment from Thomas Smith -- September 28, 2020, 03:36:11 PM    
!!! THANKS GEORGE !!! :)
I'll have to give this a shot!
Leave a comment
You must register and log in before leaving a comment.
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.