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


Migration of code : libc problem.

Hi,

I’am new to openSTM32 AC6... (and I am trying to import some source from my projects... compiled with a previous version of arm-none-eabi-gcc and an “home made” eclipse package very similar to openSTM32)

(First, I met a problem with the FPU configuration... I had to recompile my libraries in “soft” mode. But this looks solved.)

Now...
When I launch my program, I get a strange software execution when calling setvbuf (or others functions fromp libc)...
The disassembly listing shows me this BAD code (it is evident that this assembler listing is not right code... but maybe datas or a code for an other architecture ?)

setvbuf:
0804a6bc: stmia r1!, {r5, r6}
0804a6be: b.n 0x804a200 // Of course, this is absurd!
0804a6c0: mvns r0, r7
0804a6c2: stmdb sp!, {sp, lr}
0804a6c6: b.n 0x804a202
0804a6c8: movs r0, r0
0804a6ca: b.n 0x804ad7a
0804a6cc: ands r0, r0
0804a6ce: b.n 0x804aa12
0804a6d0: strb r1, r0, #0
0804a6d2: b.n 0x804aa16
0804a6d4: str r0, sp, #8
0804a6d6: b.n 0x804aa1a
...

Same problem for other functions of libc (puts, printf...)
I guess there is a problem in my project configuration or in the linker script...

Any idea?
Thanks,
Samuel.

I found this bug...
It seems the flag fpv4-sp-d16 was defined... and must not be defined in my project.

I am now on a new problem...

the generated file : “objects.list” contains some absolute path (windows form... M:/.........)
the compilation seems to be ok, but the code fall into WWDOG IRQ (without any reason)... some functions appears to be missed?

Manually : (in CMD.exe)

This works :
arm-none-eabi-gcc -T”“../QS/stm32f4xx_flash.ld”” -nostartfiles -L”../stm32f4xx” -Wl,-Map,Strategie.map -mcpu=cortex-m4 -mthumb -g3 -gdwarf-2 -o “my.elf” ./my_object1.o ./my_object2.o and all the objects ...

This does not work :
arm-none-eabi-gcc -g3 -gdwarf-2 -mcpu=cortex-m4 -mthumb -nostartfiles -L”../stm32f4xx” -T”../QS/stm32f4xx_flash.ld” -Wl,-Map=output.map -lm -o “my.elf” @”objects.list” -lstm32f4xx

objects.list contain the same list, but some objects are in this format :
“M:/R.../Debug/queue.o”
“M:/R.../Debug/state_machine_helper.o”
“M:/R.../Debug/zone_mutex.o”

My previous version of eclipse do not use this objects.list to build this linker command...


 

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