BusFault when using lwip HTTP server

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

BusFault when using lwip HTTP server

475 Views
mateuszkiełbasa
Contributor III

I created my project using lwip_httpsrv_freertos example. I added some own api calls. But sometimes the program reaches BusFault exception and the program hangs. It happens while making api request only and it is totally random. Sometimes the program works for longer, sometimes exception is reached faster and always program counter shows xPortStartScheduler. I attached all information in photo. Sorry for bad photo quality :/

Is it the problem with lwip or FreeRTOS or is it problem with my code?

Labels (1)
0 Kudos
1 Reply

428 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello,

Could you please confirm the microcontroller that you are using? Also do you experience the same behavior with the example as is?

If not, could you also provide the description of the APIs you have added.

Generally the error that you have shown in your image, is easily identifiable. Being that the precise bit is on and the bfar bit is on, means that the address located in the BFAR register holds the information of when the exception ocurred. I suggest to check the instruction prior to.

Best Regards,

Sabina

0 Kudos