EngineeringSpirit / FreeLwIP-Nios-II

FreeRTOS with LwIP integration in the Nios II EDS
19 stars 28 forks source link

Support for Quartus 13.1 (gcc 4.7.3) #10

Closed mluthi closed 10 years ago

mluthi commented 10 years ago

I just started migrating our project to Quartus 13.1: worked well for the FPGA, but FW is crashing. First traces indicate that the problem might be located in port_asm.S This would not be a hugh surprise, since in Quartus 13.1 the compiler has been upgraded to gcc 4.7.3 (from gcc 4.1.2). Do you already have experience with FreeRTOS under Qurtus 13.1? Maybe you have even ported the code already?

modemo commented 10 years ago

Sorry, still using 13.0 SP1...

mluthi commented 10 years ago

Looks like the problem had nothing to do with the port: increasing the task's stack sizes made it go away. Apparently the new compiler generates code that requires more stack space (at least without any optimizations turned on) and unfortunately none of the FreeRTOS stack overflow checks triggered.

EngineeringSpirit commented 10 years ago

To what value did you set the minimum stack size? Would 1,5Kb suffice?

EngineeringSpirit commented 10 years ago

Increased the minimum stack size to 4KB this might be a bit of overkill but you can set it down in the BSP settings