Part Number: AM261-SOM-EVM
Other Parts Discussed in Thread: UNIFLASH, SYSCONFIG
Hello!
I am trying to run the Profinet device demo from Industrial communication SDK (2025.00.00.08) on TI Am261x LaunchPad revision A. I tried to run it as it is without any modifications but I was getting HwiP_prefetch_abort_handler exception right after start, so it seemed that there is a problem with the XIP. I changed (based on the Hello world XIP example):
- sys-cfg->MPU->CONFIG_MPU_FLASH->Region start address from 0x60000000 to 0x80000000
- sys-cfg->Memory Region->Added FLASH_FSS1 region - start address 0x80100000
- sys-cfg->Section-Load and Run memory of text_flash section changed to FLASH_FSS1.
After these changes there was no exception, but the app initialization was freezing after reset during the first EEPROM read. It got stuck in SemaphoreP_pend in I2C transfer, while waiting for the tranfer to be finished..
I saw somewhere in the forums that I have to modify PN_APP_IOD_remaInit to have the NVM_APP_init task init after the first NVM_APP_read(). After this change couple of EEPROM reads passed and then it got stuck in the EEPROM read in APP_HW_BOARD_INFO_read. It got stuck in the same way, but it is important to note that it got stuck during the second call to this function, the first MAC read was OK (APP_HW_BOARD_INFO_read is called twice, once from bsp_init and a second time from APP_pruInit).
After that I just commented the MAC read and hardcoded one. WIth this the stack initialization was completed and I even was able to see a profinet device in Proneta. However, it is unstable, probably due to all of the changes that I made.
My questions:
- Are my changes in sys config for the XIP correct? Additionally is it OK to use TCMB memory for RL2 caching?
- Are you aware what is the issue with the EEPROM reading? It is not I2C bus issue, as I mentioned sometimes the reading is OK. I am also getting the same behavior on two separate LPs.
- Are there any other know issues in the PN example that I must work around?

