AnsweredAssumed Answered

Hard fault while calling function (EP1_IN_Callback) by pointer

Question asked by jambhekar.tushar on Mar 24, 2017
Latest reply on Mar 25, 2017 by jambhekar.tushar

I am developing program for usb communication and i am using "STM32_USB-FS-Device_Driver" library in atollic true studio.

in USB communication when EP2_OUT_Callback is working properly. but during interrupt for EP1_IN_Callback hard fault occurs.

on further investigation i found that EP1_IN_Callback pointer address is "134217776" (i.e. even address and hence causing hard fault)

i tried using _packed keyword but compiler ignores it. 

how can i solve the issue?