Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 763
» Latest member: joku
» Forum threads: 783
» Forum posts: 5,415

Full Statistics

Latest Threads
ST-Link V2-1 and Windows ...
Forum: ARM gdb
Last Post: Sven
Yesterday, 12:51 AM
» Replies: 14
» Views: 962
Custom build and link to ...
Forum: EmBitz IDE
Last Post: mri
04-27-2017, 11:16 AM
» Replies: 1
» Views: 63
Project runs only in debu...
Forum: EmBitz IDE
Last Post: smitjs
04-22-2017, 05:50 AM
» Replies: 0
» Views: 90
Adapting STM32CubeMX Proj...
Forum: EmBitz IDE
Last Post: vorosj
04-16-2017, 08:46 PM
» Replies: 20
» Views: 2,608
nucleo-32 STM32L432 wokin...
Forum: STmicro
Last Post: vdaniel
04-16-2017, 05:50 PM
» Replies: 7
» Views: 498
Wizard for new controller...
Forum: STmicro
Last Post: troyerta
04-14-2017, 03:54 AM
» Replies: 1
» Views: 274
Forum: General
Last Post: MRatRM
04-11-2017, 10:31 AM
» Replies: 3
» Views: 178
emBitz 1.11 painfully slo...
Forum: EmBitz IDE
Last Post: DD4DA
04-06-2017, 11:31 PM
» Replies: 1
» Views: 205
J-Link gdb server respose...
Forum: ARM gdb
Last Post: DD4DA
04-06-2017, 11:13 PM
» Replies: 1
» Views: 288
[SOLVED]printf works only...
Forum: EmBitz IDE
Last Post: Marcel
04-05-2017, 11:31 PM
» Replies: 8
» Views: 288

  Custom build and link to executable
Posted by: mri - 04-27-2017, 07:57 AM - Forum: EmBitz IDE - Replies (1)

Hi all!

I'm using EmBitz 1.11 and building for STM32F411, using the default EmBitz bare-metal compiler.
I have a binary file (.bin) that I would like to convert to an object file (.o) and link to the project output executable (.elf).

I can convert the binary file manually with objcopy, but would like EmBitz to do it automatically:

arm-none-eabi-objcopy.exe -I binary -O elf32-littlearm -B ARM my_file.bin my_file.o

I would like to add "my_file.bin" to the project, then use the "Custom build" for this file to run objcopy, and then somehow get the "my_file.o" linked to the executable.

Below the "Custom build" fields there is this text: "You can use the same macros as those in advanced compiler options."
Where can I find out those macros?

Is this possible, and if so, how?

OK, got a bit forward.

When right clicking on my .bin file after it has been added to the project, I get the Properties dialog.
There in Build tab I enable "Compile file" and "Link file".
Then in the Advanced tab, I enable "Use custom command to build this file".
In the textbox below I add:
arm-none-eabi-objcopy.exe -I binary -O elf32-littlearm -B ARM my_folder\my_file.bin my_file.o

Now I can see that my_file.o is getting built, but it does not end up in the object file folder.
I can see that GCC tries to link in my_file.o to the executable, but it fails because my_file.o is in wrong folder.

Those macros, anyone?

Print this item

  Project runs only in debug
Posted by: smitjs - 04-22-2017, 05:50 AM - Forum: EmBitz IDE - No Replies

I am very happy with Embitz 1.11, and using it on a STM32C8T6 (blue pill) from ebay.
Even so, sometimes I get totally frustrated with problems I don't understand.
I started a new project, reasonably minimum code to get underway with SPI which I have not used on the STRM32 before. Everything works fine under the debugger, but it will not run stand-alone. Even under the debugger, reset the processor, and everything stops.
Looking at a previous project, I saw I used STM32R8 instead of STM32C8. So I deleted the project and started again using STM32R8 instead of STM32C8 in the project.
Everything works fine!
My knowledge of Embitz and ARM is surely lacking, so I assume my fault is mine, but I cannot see the problem.
Please help.
I renamed the project .edb file in order to attach it.
Thank you

Print this item

  Basic FreeRTOS example?
Posted by: visinet - 04-04-2017, 07:11 PM - Forum: General - Replies (3)

Trying to get up and running with FreeRTOS and STM32F4xx project and having problems finding basic example/tutorial based on embitz to get started. I am up and running basic STM32F4xx embitz project with no problems and now want to add in FreeRTOS. Can anyone point me in the right direction for some examples/tutorials on a very basic embitz blink STM32F4xx project. All the demo's with FreeRTOS are based on other tools such as IAR. Also, I would like to stick with straight SPL stuff and avoid any STM32Cube HAL stuff if possible.

Thanks for any and all help/advice.

Print this item

Posted by: MRatRM - 03-30-2017, 08:17 AM - Forum: General - Replies (3)


can someone please explain, how putchar normally works (without semihosting or EB monitor)?
What is stdout and where is the character after calling putchar()?

What have I to do, to send the character on a normal UART interface?


Print this item

  Can EmBitz display variables in "Watch" window in hexadecimal view?
Posted by: AlexF - 03-29-2017, 01:07 PM - Forum: EmBitz IDE - Replies (4)

For example 0x11223344 instead 287454020.

Print this item

  [SOLVED]printf works only *once*
Posted by: Marcel - 03-29-2017, 12:33 AM - Forum: EmBitz IDE - Replies (8)

Hi everybody,

I've created an empty project with nothing but a single printf command in it:

#include "stm32f4xx_conf.h"
int main(void)
    printf("\fHelp me Obi Wan Kenobi, you're my only hope!\n");

This prints the message to Debugger - Target just fine.
Now, if I change the message, recompile and rerun (F7, F8, F5), the old message remains in the Debugger - Target console.
If I add some code to it (blink some LEDS, whatever), that new code gets executed, so i know for sure that the uC is updated with the new code.
I can't figure out whats wrong, it seems the semihosting gets stuck somehow. Restarting emBitz does not solve it. Only if i make a new project, it works for a single time only again.
I'm using a STM32F407G-DISC1 board. It has the ST-Link onboard.

Help greatly appreciated, i'm out of ideas.

EDIT 06.04.2017:
Solved after downgrading ST-Link to firmware version "V2.J27.M15 STM32 Debug+Mass storage"

Print this item

  Pasting membership info into 1.11
Posted by: escalator - 03-19-2017, 11:15 PM - Forum: EmBitz IDE - Replies (2)

Hi All,
first, thank you again for the great IDE. I successfully completed 4 projects with 1.11 (after 5 with EmBlocks) with no significant trouble.
But - pardon my thickness - now that I am a paying member I cannot figure out how to enter my membership credentials in EmBitz 1.11
Thanks for your help,

Print this item

Bug $(APP_PATH) bug.
Posted by: rgw5267 - 03-10-2017, 02:11 AM - Forum: EmBitz IDE - Replies (1)

Fix this bug. Dodgy

Print this item

  Report of use of cycles of a code.
Posted by: AVI-crak - 03-08-2017, 05:26 PM - Forum: General - No Replies

Purely hypothetical question about a cubic horse in a vacuum.
Searching a plug-in or the complex software which can show real quantity of cycles of execution of a code for each function. For the purpose of semi-automatic sorting of distribution of a code between a flash, sram memory, and sdram memory.

Now I execute this operation in a manual mode, purely on an intuition. Well for example I see that this specific function will be caused 100500 times - and I move it to bystry memory. And in real it turns out that this function - a drop in the ocean in comparison with simpler and imperceptible which is thrashed almost in the mode нонстоп. In such option optimization on speed turns into a race on squeezing, in this case - speed percent. 

It would be desirable to receive statistics one button, well that everything worked directly.

Print this item

  nucleo-32 STM32L432 woking example
Posted by: vdaniel - 03-08-2017, 09:33 AM - Forum: STmicro - Replies (7)

Hi All,

If somebody has a working simple EmBitz project for the
nucleo-32 STM32L432 and can share it?

Great thanks in advance,


Print this item