Error Running Application


#1

When i try to run Hello World example , i get the following error
Invalid therad access


#2

Hi,

Please elaborate on the steps followed and version of Dev Studio used, if at all.


#3

The behavior of Developer Studio is the following:

Developer Studio Version 2.1.1 Build 2.1.1.201201180944-R8656
I am logged in as administrator
Windows XP firewall disabled
Zone Alarm disabled
AVG Antivrus enabled
The COM1 port is a physical port and is not used by any other program

Start Developer Studio
I go to Target Manager Generic Actions Open Port
It return the following error:

Open and load port COM1 => ERROR: Time out: 20000ms
Open and load physical port COM1 => ERROR: Time out: 20000ms
Open port COM1 => DONE: Port opened
Load informations from target => ERROR: Time out: 20000ms
Waiting for module detection => ERROR: Time out: 20000ms

I turn off the PC and the target
Restart the PC and the target

Start Developer Studio
I go to Target Manager Generic Actions Open Port
It return the following error:

Open and load port COM1 => ERROR: Time out: 20000ms
Open and load physical port COM1 => ERROR: Time out: 20000ms
Open port COM1 => DONE: Port opened
Load informations from target => ERROR: Time out: 20000ms
Waiting for module detection => ERROR: Time out: 20000ms

I go to Open AT
build
Run Hello World [Target] _ARM_EABI_GCC_Debug

It return the following error:
During an internal error occurred: “Launching HelloWorld [Target] _ARM_EABI_GCC_Debug”.
Invalid thread access


#4

Your first error is that Developer Studio can’t connect to the target device.

  1. Check that the target is correctly powered
  2. Check that the target is correctly connected to the serial port. If it is an AirPrime module, make sure you have a level shifter and that the RX, TX, RTS, CTS, GND and 2V8 lines are connected correctly.
  3. In Developer Studio, make sure that the port is configured to the correct baud rate, or if the target baud rate is unknown, set the port to autodetect (make sure all the autodetect values are checked).

Not sure about the second error.


#5
  1. The target is the Developement Kit Q26 WM04023011-111-30 and is correctly powered
  2. The target is correctly connected to the serial port. The drivers, i think, are surely mounted (Development Kit)
  3. The port is configured as following:
    115200,8,N,1,HDW
    I have also tried with autodetect with all baud rates cheked but the error is:

Open and load port COM1 => ERROR: Time out: 20000ms
Open and load physical port COM1 => ERROR: Time out: 20000ms
Open port COM1 => DONE: Port opened
Load informations from target => ERROR: Time out: 20000ms
Waiting for module detection => ERROR: Time out: 20000ms


#6

Test if you can connect to the board using HyperTerminal or something similar. If you can sent AT commands, then there is a Developer studio issue. Otherwise there may be a problem with your dev board.

Just make sure that you are connected to UART 1, and the the UART is turned on on the dev board (there should be a switch to turn the UART on or off). Also make sure the ON/Off switch on the dev board is ON, and the boot switch is off.


#7

I have got the same problem after an upgrade.
My Dev Studio v is 2.2.0 just reinstalled and updated. I use a developer kit q26 board and q27 airprime with fw 746.
I can connect with the modem with hyperterminal. The switches are correct and the error is:
Open and load port COM4 => ERROR: Time out: 20000ms
Open and load physical port COM4 => ERROR: Time out: 20000ms
Open port COM4 => ERROR: Time out: 20000ms
I already disabled the firewall in my WinXp PC.
I can not figure what else i can do


#8

DS can’t open your serial port: what kind of connection are you using (RS232 port, USB/RS232 converter, pure USB…)?


#9

OK. I know Ds can’t open the serial port.
I use rs232 to usb converter.
I managed to DS recognizes the port making a manual change to development mode and reset the modem like I posted here

https://forum.sierrawireless.com/t/com-port-time-out-error/5612/1

I can work now even I know this is not the ideal way