MCUXpresso (v11.2.0) A stack overflow error has occurred

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUXpresso (v11.2.0) A stack overflow error has occurred

1,090 Views
Caroline
Contributor I

MCUXpresso IDE v11.2.0 

Java version: 1.8

OS: Windwos 10 (64 Bit)

MCU: LPC1758fbd80

Project: https://github.com/devolo/dlan-greenphy-sdk

 

Problem:

When trying to build the Project(s), MCUxpresso v11.2.0 crashes with the error message:

A stack overflow error has occured.

You are recommended to exit the workbench.

An internal error occurred during: "Build Project".
java.lang.StackOverflowError

 

Workaround:

With MCUXpresso IDE v11.1.0 the StackOverflowError doesn't occur building works.

 

I'm not sure but to me this looks like an IDE Error.

Thanks,

Caroline

 

0 Kudos
Reply
2 Replies

1,046 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Caroline,

I have received a response from the MCUXpresso IDE development team. Please see their feedback below.

First mention, the stack overflow is also reproducible with eclipse 2020.06 stock version, so it seems to be related to a pure eclipse/CDT issue already logged as https://bugs.eclipse.org/bugs/show_bug.cgi?id=561568

The crasher occurs due to a recursive project references in these projects.

Configuration project references Libraries, while Libraries refers back Configuration. More, the Configuration references Configuration itself.

So, as an workaround, I took Libraries for investigation.

You can successfully make it build if:

  1. Close the other projects, let only Libraries.
  2. Remove “Configuration” references from Libraries project
  3. Remove “Configuration” path from Include Libraries from both C/ASM panels
  4. Copy FreeRTOSIPConfig.h and FreeRTOSConfig.h from /Configuration project root to any of the inc/ directories of the Libraries
  5. Restart IDE – this step is important because the CDT parser already indexed the older dependencies so the corruption is in this session already
  6. Clean the project and build. I got this on the end:

arm-none-eabi-ar: creating libLibraries.a

Finished building target: libLibraries.a

arm-none-eabi-size "libLibraries.a" ; # arm-none-eabi-objdump -h -S "libLibraries.a" >"libLibraries.lss"

   text        data         bss         dec         hex      filename

    940           0           0         940         3ac      adc_17xx_40xx.o (ex libLibraries.a)

   8634           0           0        8634        21ba      can_17xx_40xx.o (ex libLibraries.a)

    172           0           4         176          b0      chip_17xx_40xx.o (ex libLibraries.a)

   1612           0           0        1612         64c      clock_17xx_40xx.o (ex libLibraries.a)

      0           0           0          0           0      cmp_17xx_40xx.o (ex libLibraries.a)

      0           0           0           0           0      crc_17xx_40xx.o (ex libLibraries.a)

    140           0           0         140          8c      dac_17xx_40xx.o (ex libLibraries.a)

      0           0           0           0           0      eeprom_17xx_40xx.o (ex libLibraries.a)

      0           0           0           0           0      emc_17xx_40xx.o (ex libLibraries.a)

   1091           0           4        1095         447      enet_17xx_40xx.o (ex libLibraries.a)

   2248          96           8        2352         930      gpdma_17xx_40xx.o (ex libLibraries.a)

      0           0           0           0           0      gpio_17xx_40xx.o (ex libLibraries.a)

      0           0           0           0           0      gpioint_17xx_40xx.o (ex libLibraries.a)

   3699          84         120        3903         f3f      i2c_17xx_40xx.o (ex libLibraries.a)

   1466           0           0        1466         5ba      i2s_17xx_40xx.o (ex libLibraries.a)

    552           0           0         552         228      iap.o (ex libLibraries.a)

    302           0           0         302         12e      iocon_17xx_40xx.o (ex libLibraries.a)

      0           0           0           0           0      lcd_17xx_40xx.o (ex libLibraries.a)

    280           0           0         280         118      pmu_17xx_40xx.o (ex libLibraries.a)

    962           0           0         962         3c2      ring_buffer.o (ex libLibraries.a)

    238           0           0         238          ee      ritimer_17xx_40xx.o (ex libLibraries.a)

    746           0           0         746         2ea      rtc_17xx_40xx.o (ex libLibraries.a)

      0           0           0           0           0      sdc_17xx_40xx.o (ex libLibraries.a)

      0           0           0           0           0      sdmmc_17xx_40xx.o (ex libLibraries.a)

   1036           0           0        1036         40c      spi_17xx_40xx.o (ex libLibraries.a)

   2270           0           0        2270         8de      ssp_17xx_40xx.o (ex libLibraries.a)

    362           0          12         374         176      stopwatch_17xx_40xx.o (ex libLibraries.a)

     44           0           0          44          2c      sysctl_17xx_40xx.o (ex libLibraries.a)

    470           0           0         470         1d6      sysinit_17xx_40xx.o (ex libLibraries.a)

    310           0           0         310         136      timer_17xx_40xx.o (ex libLibraries.a)

   2276           0           1        2277         8e5      uart_17xx_40xx.o (ex libLibraries.a)

     94           0           0          94          5e      wwdt_17xx_40xx.o (ex libLibraries.a)

   2358           0           4        2362         93a      board.o (ex libLibraries.a)

    182           0           0         182          b6      board_sysinit.o (ex libLibraries.a)

    532           0          36         568         238      lpc_dma.o (ex libLibraries.a)

   1570           0          64        1634         662      lpc_gpio_interrupt.o (ex libLibraries.a)

   1144           0          12        1156         484      lpc_phy_smsc87x0.o (ex libLibraries.a)

    962           0       19480       20442        4fda      heap_4.o (ex libLibraries.a)

    888           4           5         897         381      port.o (ex libLibraries.a)

      0           0           0           0           0      croutine.o (ex libLibraries.a)

   1408           0           0        1408         580      event_groups.o (ex libLibraries.a)

    350           0           0         350         15e      list.o (ex libLibraries.a)

   3979           0          80        4059         fdb      queue.o (ex libLibraries.a)

  9377           0         268        9645        25ad      tasks.o (ex libLibraries.a)

   1921           0          60        1981         7bd      timers.o (ex libLibraries.a)

    517           0           0         517         205      FreeRTOS_HTTP_commands.o (ex libLibraries.a)

   3516         120        1132        4768        12a0      FreeRTOS_HTTP_server.o (ex libLibraries.a)

    683           0          92         775         307      NetworkInterface.o (ex libLibraries.a)

    621          0           6         627         273      mme_handler.o (ex libLibraries.a)

    412           0           0         412         19c      qca_7k.o (ex libLibraries.a)

    910           0           0         910         38e      qca_framing.o (ex libLibraries.a)

   2722           0           6        2728         aa8      qca_spi.o (ex libLibraries.a)

   2966           0         152        3118         c2e      NetworkInterface.o (ex libLibraries.a)

    364           0           8         372         174      NetworkInterface.o (ex libLibraries.a)

    104           0       30720       30824        7868      BufferAllocation.o (ex libLibraries.a)

    210           0           0         210          d2      ff_stdio.o (ex libLibraries.a)

    192           0           0         192          c0      httpd-fs.o (ex libLibraries.a)

   1404           0         909        2313         909      BufferAllocation_1.o (ex libLibraries.a)

   1319           4          36        1359         54f      BufferTesting.o (ex libLibraries.a)

   2171           0          76        2247         8c7      FreeRTOS_ARP.o (ex libLibraries.a)

    941           0         388        1329         531      FreeRTOS_Bridge.o (ex libLibraries.a)

   4590           0           8        4598        11f6      FreeRTOS_DHCP.o (ex libLibraries.a)

   1992           0         110        2102         836      FreeRTOS_DNS.o (ex libLibraries.a)

   6542           4         158        6704        1a30      FreeRTOS_IP.o (ex libLibraries.a)

      0           0           0           0           0      FreeRTOS_ND.o (ex libLibraries.a)

   1778           0         116        1894         766      FreeRTOS_Routing.o (ex libLibraries.a)

  11522           0         140       11662        2d8e      FreeRTOS_Sockets.o (ex libLibraries.a)

   816           0           0         816         330      FreeRTOS_Stream_Buffer.o (ex libLibraries.a)

  12061          52          14       12127        2f5f      FreeRTOS_TCP_IP.o (ex libLibraries.a)

   1620           4           0        1624         658      FreeRTOS_TCP_WIN.o (ex libLibraries.a)

    904          24           0         928         3a0      FreeRTOS_UDP_IP.o (ex libLibraries.a)

10:35:23 Build Finished. 0 errors, 8 warnings. (took 19s.245ms)

I suppose similar steps can be done for the other projects so on the end the user might end-up with a fully working workspace version.

Hope it helps!

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

------------------------------------------------------------------------------ 

 

0 Kudos
Reply

1,065 Views
FelipeGarcia
NXP Employee
NXP Employee

Hello Caroline,

I have test this and I was able to reproduce your issue. I will report this issue to the MCUXpresso IDE team and let you know if they provide any feedback.

Best regards,

Felipe

0 Kudos
Reply