ajtcl run on stm32f4 board got error

asked 2015-03-02 04:50:25 -0700

matrix3dim gravatar image

Hi all,

My demo board STM32F4 Discovery + GT202. From the source code AJTCL 14.12, it seems to support for this board. After build succeed, I flashed the board and run but it pumped out error as below:

aj_wsl_htc.c:181 UNKNOWN Endpoint 255assertion "(0)" failed: file "WSL\aj_wsl_htc.c", line 182, function: AJ_WSL_HTC_ProcessIncoming

No hardware connection guide so I am not sure my HW set up is correctly or not. Anyone can tell me what is the problem ?

Thanks and Regards,

edit retag flag offensive close merge delete


This could be any number of things. First you need to ensure that you have the GT-202 connected properly to the STM32.

J1 Pin 8 -----> PE7
J1 Pin 12 ---> +3.3
J1 Pin 16 ---> PE7
J2 Pin 6 ----> PA4
J2 Pin 8 ---> PA7
J2 Pin 10 ---> PA6
J2 Pin 12 ---> PA5

jprestwo ( 2015-03-02 09:22:47 -0700 )edit

Hi Jprestwo, Please clear me follwing points: Which HW and Firmware version of GT202 you are using ? I am using the GT202 Hardware version is 030, Firmware version is R3.0.2.14 Adaptor Hardware version is 040 as per this link: https://parts.arrow.com/item/detail/shenzhen-longsys-electronics-co-ltd/gt202kits#JeMn. Schematic: http://download.siliconexpert.com/pdfs/2014/8/26/0/48/39/105/shenet_/manual/arrowadaptorv1.04.pdf HW connection: GT202------------------STM32F4 DISCOVERY SPI_CS J2.6---------PA4 //GT202 is slaver SPI_CLK J2.12------PA5 //CLK SPI_MISO J2.10----PA6 //MISO SPI_MOSI J2.8------PA7 //MOSI SPI_INT J1.16--------PA1 //Interupt by GT202 module PWR_DWN J2.2----PE7 // Power PWR_3V3 J4.8------3V GND J4.12/14

matrix3dim ( 2015-04-12 06:28:18 -0700 )edit

Following your comment in the thread: https://ask.allseenalliance.org/question/2444/aj_wsl_driverstart-is-unable-to-start-the-driver/ I set pre-processor as you said but the module was not able to connect to my wifi network. It seem to stuck when connect to network. The last trace I got when it got stuck as below. ConfigureWifi Trying to connect to AP b1dd1a AJ_ConnectWiFi AJ_Network_Up AJ_Network_Up OK AJ_ConnectWiFiHelper 003.380 aj_wsl_net.c:1193 AJ_WSL_NET_disconnect(): DISCONNECT 003.382 aj_malloc.c:155 AJ_PoolAlloc pool[8] allocated 8 ... 003.391 aj_malloc.c:155 AJ_PoolAlloc pool[20] allocated 20 003.392 aj_wsl_wmi.c:510 AJ_WSL_WMI_QueueWorkItem() ... 005.397 aj_malloc.c:155 AJ_PoolAlloc pool[16] alloc --> got stuck from here

matrix3dim ( 2015-04-12 06:30:39 -0700 )edit

I have seen this before and to be honest I don't have a answer as to why this happens. Your HW is all setup properly and I have seen this error before. My best guess as to why this happens is because the WiFi chip gets into a bad state and cannot recover properly between resets. It should be able to start properly if you continue to unplug the GT-202 from the STM32 (at least all the power pins) and reset the board. If you do this several times it should eventually get past the error your seeing and start normally. This has happened to me but once I unplug/reset the board and get it past the error I don't ever seem to see it again. It would always happen the first time I used a new GT-202/STM32 setup. Also the FW your using will work ...(more)

jprestwo ( 2015-04-13 09:17:03 -0700 )edit

Hi Jprestwo, Thank you for your valuable guidelines. However, I am still not able to get the board running well. As my understanding, the driver task keep reading the interrupt causes(not base on interrupt signal) and the problem may come from this point.After power up, the host only can read correctly the WMI_READY event mailbox massage and in the next mailbox readings, it always get unmeaning full data. Have you ever got the same issue. Still I got one or two time the module can scan all AP network but most of time are got the above problem.

matrix3dim ( 2015-05-05 08:00:36 -0700 )edit