Hi
I have some troubles with the 3 boards, with pysimCoder:
GCC version: arm-none-eabi-gcc version 13.3.1 under Debian trixie
*NUCLEO-F746ZG*: generated code works, but network is not reachable (TCP
and UDP). "ping" works, but sending data via LAN not!
*NUCLEO-H745ZI-Q:*
*Code generation:*
nuttx_main.o test.o nuttx_main-builtintab.o
/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/lib/libpyblk.a --start-group
-lsched -ldrivers -lboards -lc -lmm -larch -lm -lxx -lapps -lnet -lfs
-lbinfmt -lboard
/usr/lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+dp/hard/libgcc.a --end-group
arm-none-eabi-ld:/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flash.ld:40:
warning: redeclaration of memory region `itcm'
arm-none-eabi-ld:/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flash.ld:41:
warning: redeclaration of memory region `flash'
arm-none-eabi-ld:/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flash.ld:42:
warning: redeclaration of memory region `dtcm1'
arm-none-eabi-ld:/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flash.ld:43:
warning: redeclaration of memory region `dtcm2'
arm-none-eabi-ld:/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flash.ld:44:
warning: redeclaration of memory region `sram'
arm-none-eabi-ld:/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flash.ld:49:
warning: redeclaration of memory region `sram4'
arm-none-eabi-ld:/home/bucher/CACSD/pysimCoder/CodeGen/nuttx/nuttx-export/scripts/flash.ld:50:
warning: redeclaration of memory region `bbram'
arm-none-eabi-ld: invalid length for memory region flash
### Created executable: test
arm-none-eabi-objcopy -O ihex ../test ../test.hex
After flashing and launched:
nsh> ?
help usage: help [-v] [<cmd>]
. cd exec pkill ps true
[ cp exit ls pwd truncate
? cmp expr mkdir rm uname
addroute dirname false mkfatfs rmdir umount
alias dd fdinfo mkrd route unset
unalias delroute free mount set uptime
arp df help mv sleep usleep
basename dmesg hexdump nslookup source wget
break echo ifconfig pidof test xd
cat env kill printf time
Builtin Apps:
nsh ping renew sh telnetd main
nsh>
ping works!
By launching "main" I have this error:
nsh> main
ERROR: Failed to wdump_assert_info: Current Version: NuttX 12.6.0-RC1
d4968905c5 Oct 1 2024 08:53:59 arm
dump_assert_info: Assertion failed panic: at file: :0 task: 0x8000361
up_dump_register: R0: 00000000 R1: 38005bf0 R2: 00001810 R3: 00001800
up_dump_register: R4: 080002e9 R5: 00000000 R6: 00000000 FP: 00000000
up_dump_register: R8: 00000000 SB: 00000000 SL: 00000000 R11: 00000000
up_dump_register: IP: 00000000 SP: 38006318 LR: 08002807 PC: 0800a692
up_dump_register: xPSR: 21000000 PRIMASK: 00000000 CONTROL: 00000000
up_dump_register: EXC_RETURN: ffffffe9
dump_stack: User Stack:
dump_stack: base: 0x38005cc0
dump_stack: size: 00002024
dump_stack: sp: 0x38006318
stack_dump: 0x380062f8: 00000000 00000000 00000000 3ff00000 00000000
3fe00000 20000010 0800a589
stack_dump: 0x38006318: 080020ad 000047a8 380043f0 2400a4a0 00000000
00001810 380043d8 38005be8
stack_dump: 0x38006338: 00001428 00001800 38005be8 380043e8 38000038
0800a6dd 380043f0 2400a4a0
stack_dump: 0x38006358: 3800452c 08009f6f 00000000 380043f0 00000000
08005221 00000000 3800449c
stack_dump: 0x38006378: 3800479c 380043f0 080002e9 080050e7 01000000
3800449c 00000000 080051e7
stack_dump: 0x38006398: 00000000 38005bf0 00000000 00000000 00000000
3fe00000 20000010 000058dd
stack_dump: 0x380063b8: 38005bfc 00005bf0 3800449c 3800449c 38005bf0
08005917 00000001 38005bf0
stack_dump: 0x380063d8: 3800463c 08004b8d 38005ca8 00000001 00000000
38005bf0 38006400 08008d85
stack_dump: 0x380063f8: 08000bcf 00000001 0804b260 08000bdb 00000000
24000b04 ffffffff 00000003
stack_dump: 0x38006418: 24000b58 24000048 24000b48 01100000 00000000
08000c35 24000b04 00000002
stack_dump: 0x38006438: 00000078 0800095d 00000000 00000000 08000851
0800040f 00000000 00000000
stack_dump: 0x38006458: 00000063 00000078 0ea9a980 00000000 00989680
00000078 0ea9a980 00000000
stack_dump: 0x38006478: 00000000 00000000 00000000 08006fbd 00000000
08000361 00000000 08030fdf
stack_dump: 0x38006498: 00000000 38005bf0 00000000 00000000 00000000
00000000 00000000 00000000
dump_tasks: PID GROUP PRI POLICY TYPE NPX STATE EVENT
SIGMASK STACKBASE STACKSIZE COMMAND
dump_task: 0 0 0 FIFO Kthread - Ready 0000000000000000
0x2400a0b4 1000 <noname>
dump_task: 1 0 224 RR Kthread - Waiting Semaphore
0000000000000000 0x380002c8 1976 <noname> 0x24000060 0x2400008c
dump_task: 2 0 100 RR Kthread - Waiting Semaphore
0000000000000000 0x38000b80 1976 <noname> 0x240000a4 0x240000d0
dump_task: 3 3 100 RR Task - Waiting Semaphore
0000000000000000 0x38001778 4048 <noname>
dump_task: 4 0 100 RR Kthread - Waiting Semaphore
0000000000000000 0x38002930 2008 <noname>
dump_task: 5 5 100 RR Task - Waiting Semaphore
0000000000000000 0x38003be0 2008 <noname>
dump_task: 7 -1 99 FIFO pthread - Running
0000000000000000 0x38005cc0 2024 <noname>
Similar behavior with *NUCLEO-H743ZI2 *
Any ideas?
Thanks in advance
Roberto