Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-11 Thread David Lockyer
Hi Joel, I raised the bug & created the patchset, attached here as well. It's against the STABLE-2_0_0 branch. BR, David On 08/09/17 20:32, Joel Cunningham wrote: David, Would you mind opening a bug report at https://savannah.nongnu.org/bugs/?func=additem&group=lwip and attaching the pa

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-08 Thread Joel Cunningham
David, Would you mind opening a bug report at https://savannah.nongnu.org/bugs/?func=additem&group=lwip and attaching the patches so we can do the review there? Also, it would be preferable to have the changes in a git patchset that c

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-08 Thread David Lockyer
So something like attached? I removed my raise/reset macro's. It appears to work for me, I added a new private pool, not sure if this was what you intended or not. Let me know what you think. BR David On 07/09/17 19:40, goldsi...@gmx.de wrote: David Lockyer wrote: Okay, thank you for the s

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-07 Thread goldsi...@gmx.de
David Lockyer wrote: Okay, thank you for the suggestion. Just to be clear are you suggesting modifying lwip_select() to allocate select_cb from a pool & free prior to return? Via a define, like Joel wrote, yes. This might need a new memp pool though... We don't have an abstraction for your p

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-07 Thread Joel Cunningham
> On Sep 7, 2017, at 9:14 AM, David Lockyer wrote: > > Hi Simon, > > Okay, thank you for the suggestion. Just to be clear are you suggesting > modifying lwip_select() to allocate select_cb from a pool & free prior to > return? > > I will have to investigate the speed impact of this, as I hav

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-07 Thread David Lockyer
Hi Simon, Okay, thank you for the suggestion. Just to be clear are you suggesting modifying lwip_select() to allocate select_cb from a pool & free prior to return? I will have to investigate the speed impact of this, as I have MEM_LIBC_MALLOC and MAEP_MEM_MALLOC both defined as 1. David On 0

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-07 Thread goldsimon
Looks correct. I guess mpu mode is not used too often. My suggestion would probably be to get select_cb from a Memo pool... Simon Am 6. September 2017 16:12:47 MESZ schrieb David Lockyer : >Hi, > >I have a project that uses an STM32F MCU running FreeRTOS (cortex mpu >port) & lwip, with the MP

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-07 Thread Noam Weissman
silrd@nongnu.org] On Behalf Of David Lockyer Sent: Wednesday, September 06, 2017 5:13 PM To: lwip-users@nongnu.org<mailto:lwip-users@nongnu.org> Subject: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select. Hi, I have a project that uses an STM32F

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-07 Thread David Lockyer
*Sent:* Wednesday, September 06, 2017 5:13 PM *To:* lwip-users@nongnu.org *Subject:* [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select. Hi, I have a project that uses an STM32F MCU running FreeRTOS (cortex mpu port) & lwip, with the MPU enabl

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-06 Thread Noam Weissman
Subject: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select. Hi, I have a project that uses an STM32F MCU running FreeRTOS (cortex mpu port) & lwip, with the MPU enabled. I'm upgrading to lwip 2.0.2 from lwip 1.4.1, that I had to custom

Re: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-06 Thread Noam Weissman
... Works like a charm. BR, Noam. From: lwip-users on behalf of David Lockyer Sent: Wednesday, September 6, 2017 5:12 PM To: lwip-users@nongnu.org Subject: [lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select. Hi, I

[lwip-users] LWIP_MPU_COMPATIBLE set to 1, but still get memory management fault in lwip_select.

2017-09-06 Thread David Lockyer
Hi, I have a project that uses an STM32F MCU running FreeRTOS (cortex mpu port) & lwip, with the MPU enabled. I'm upgrading to lwip 2.0.2 from lwip 1.4.1, that I had to customize to be compatible with the MPU, in particular in lwip_select(). The motivation was to use the LWIP_MPU_COMPATIBLE