2024-10-08 05:13 AM
Hello there,
Using stm32h747i disco board: azureRTOS + netxduo
I have added azure RTOS and netXDuo on CM4, I want to run MQTT on Ethernet. I have done below changes on the board.
I have connected the LAN cable from board to laptop for peer to peer connection.
Initially i was trying to to ping from board to Ubuntu system with "nx_icmp_ping" but getting "NX_NO_RESPONSE (0x29)" in response.
in 2nd try i have disabled the ping related code and trying to ping from laptop to board.
I'm able ping the board when i start debugging mode,
But after flashing the code or after rest the board, not able to ping the board.
Attaching the project, please guide us on the same.
Thanks and Regards,
Ishan
2024-10-08 06:12 AM
Hello @ishanpadaliya,
I think you are missing some needed configuration to make this work as you are not declaring .RxDecripSection
.TxDecripSection .NetXPoolSection
the following should be added to the linker script with respect to memory placement and aliasing as u are using CM4 to access those regions. it should look like this in you Flash.ld file :
.tcp_sec (NOLOAD) :
{
. = ABSOLUTE(0x24030000);
*(.RxDecripSection)
. = ABSOLUTE(0x24030060);
*(.TxDecripSection)
} >RAM_D1 AT> FLASH
.nx_data 0x24030100 (NOLOAD):
{
. = ABSOLUTE(0x24032100);
*(.NetXPoolSection)
I would highly recommend you take a look at this CubeAzure example and read the readme Thurley.
you can also take a look at this Article which describe the how to configure with CubeAzureH7 it should get you working Creating a dual IPv6 & IPv4 NetXDuo UDP applicatio... - STMicroelectronics Community
Regards
2024-10-09 04:42 AM
Hey there,
Thank you for the reply.
I have added below block in STM32H747XIHX_FLASH.ld
as i want to enable Ethernet in CM4, I've added below block in FLASH.ld file of CM4.
MEMORY
{
FLASH (rx) : ORIGIN = 0x08100000, LENGTH = 1024K
RAM (xrw) : ORIGIN = 0x10000000, LENGTH = 128K /* ETH_CODE: split memory to data and ethernet buffers */
ETH_RAM (xrw) : ORIGIN = 0x10020000, LENGTH = 160K /*added*/
}
So which is the correct address for RAM in CM4 ? please guide us on the same.
Thanks and regards
Ishan