2019-01-01から1年間の記事一覧
newlib/newlib/libc/stdio/findfp.c __sinit() /* * __sinit() is called whenever stdio's internal variables must be set up. */ void __sinit (struct _reent *s) { __sinit_lock_acquire (); if (s->__sdidinit) { __sinit_lock_release (); return; } …
0x20030001
Idle Task IDLE Task Tmr Svc tmr svc myTask01 myTask01 myTask02 myTask02
HardFaultになるまで、の経路。 異なるアドレスで起こっている。 原因が、よくわからない。 StartTask02>printf startTask02 puts puts puts_r puts_r _puts_r>sinit sinit _puts_r>sinit>sfp __sfp _puts_r>sinit>sfp>sfmoreglue sfmoreglue puts_r>sinit>s…
sfpの中で死んでるのかな?
Instruction Stepping Modeを有効にすると、 Disassemblyの画面で、1命令づつ、実行できるようになる。
LR pc hiro99ma.blogspot.com community.st.com
arm-none-eabi-gcc -o "Nucleo-F429ZI-Os3.elf" @"objects.list" -mcpu=cortex-m4 -T"C:\Users\m_fujii\Documents\0500_BitBucket\0600_STM32CubeIde \ws_1.0.1\Nucleo-F429ZI-Os3 \STM32F429ZITX_FLASH.ld" --specs=nosys.specs -Wl,-Map="Nucleo-F429ZI-Os…
__sinit github.com
prvPortStartFirstTaskの中で、hardFaultになっているのかな? hardFault vPortSVCHandlerにブレークポイントを置く。 vPortSVCHandler ステップインすると、MyTask2の先頭へいく。 MyTask2 ステップイン vPortRaiseBASEPRI ステップイン printf ステップイン…
librdimon.a
このフォルダにライブラリの実体がある。 c:/st/stm32cubeide_1.0.1/stm32cubeide/plugins/ com.st.stm32cube.ide.mcu.externaltools. gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610/ tools/bin/../lib/gcc/arm-none-eabi/7.3.1/ ../../..…
0x80041f0 _sinit puts_r 1づれているようにみえる。 なんでだろう? 080041f1 sinit elfのlistを見ると、偶数番地に__sinitがある。 080041f0 elf.list 080041f0 <__sinit>: 80041f0: 6983 ldr r3, [r0, #24] 80041f2: b510 push {r4, lr} 80041f4: 4604 mov r4, r0 </__sinit>…
timer task 固定サイズ 固定サイズ
prvPortStartFirstTask
compile error ../Src/main.c: In function 'main': ../Src/main.c:40:26: error: expected expression before ')' token printf(fmt, __VA_ARGS__); \ ^ ../Src/main.c:141:4: note: in expansion of macro 'safe_printf' safe_printf("Main:Hello World\n"…
stackoverflow stackoverflow stackovf cmsis_os2.c
NVIC
warning When FreeRTOS is used, it is strongly recommended to use a HAL timebase source other than the Systick. The HAL timebase source can be changed from the Pinout tab under SYS
main.c extern void initialise_monitor_handles(void); initialise_monitor_handles(); settings "Libraries" rdimon "--specs=rdimon.specs" Debug config ST-Link(OpenOCD) "monitor arm semihosting enable" syscall.c unused yuqlid.hatenablog.com os…
vcom vcom
FreeRTOSなしのとき、SemiHostingでprintfが表示された。 capture Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-06-12-13:13) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html srst_only separate sr…
vTaskSwitchContext asm c
hello 0x08009af0に、putsがある。 puts
Debug ProbeをST-LINK(OpenOCD)にしたら、動くようになった。 openocd yukblog.net 赤い文字で出るようになる。 Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-06-12-13:13) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/…
GDB Hardware Debuggingの場合、エラーで終了してしまう。 うまくいかない。 debugger ”use remote target"にチェックを入れないと、エラーすらでない。 以下のエラーになる。 Failed to execute MI command: target remote localhost:61234 エラーの詳細は…
bkpt 0x00ab
monitor arm https://yukblog.net/stm32cubeide-printf-semihosting/ failed ccwo.hatenablog.jp Error in final launch sequence: Failed to execute MI command: monitor arm semihosting enable Error message from debugger back end: Protocol error wi…
"--specs=rdimon.specs"を追加したら、multiple definitionのエラーになった。 arm-none-eabi-gcc -o "Nucleo-F429ZI.elf" @"objects.list" -lrdimon -mcpu=cortex-m4 -T"C:\Users\m_fujii\Documents\0500_BitBucket\0600_STM32CubeIde\ws_1.0.1\Nucleo-F429…