MPLAB X IDE 2.05 cannot write in Microchip dsPIC30F6014A - mplab

We are working with e-pucks real robots which posses a Microchip dsPIC30F6014A. We work in Windows 8.1 at 64 bits with MPLAB X IDE 2.05 and 3.55. Our robots got a problem with the PIN number so you told us that the solution was to buy a ICD programmer to re-flash the firmware in the e-puck and recover their PIN for the bluetooth connection.
We got the ICD 3, the cable to re-flash and start working in MPLAB X IDE 2.05. But, initially we could not program the robot for a permission of memory which suggested the following image with this configuration and we tried to program it again. We got stuck with this message:
Target detected
Target Device ID (0x0) does not match expected Device ID (0x2c30000).
Invalid command response (sent 0x5f, received 0x3f)
Failed to read device
Unable to download program executive
Failed to program device
Failed to send bulk data
Failed writing builk data (memory type 8, address 0
Invalid command response (sent 0x60, received 0x3f)
We tried to erase the flash device as indicated in Section 5.5 from http://www.gctronic.com/doc/index.php/E-Puck and it brought us this message:
Connecting to MPLAB ICD 3...
Firmware Suite Version.....01.30.09
Firmware type..............dsPIC30F
Target detected
Device ID Revision = 1041
Erasing...
Erase successful
Then, we tried again to program the robot and got the same message
Target detected
Target Device ID (0x0) does not match expected Device ID (0x2c30000)
...

Sorry I forgot to answer this question, the problem was insufficient energy from my USB port, the solution was to use a two male-female wire to drain energy from 2 port

I have not worked with specific controller. But MPLAB usually throws this error if the pin connection are wrong or you may have missed clock or data lines. easiest way will be using IPE tool and trying the connection. If IPE connects try programming with .HEX file

Related

What is Delphi error code e8000067?

I am building an app using Delphi XE8 and FireMonkey.
I've got it working on Android and am trying to get it working on an iPad.
The iPad is running OS X 5.1.1.
I've got a Debug Provisioning profile.
First, when I tried to run the application on the iPad, I got the error message "Unable to install package. (e8000007)". According to Embarcadero's help page, this was because I was targetting higher versions. So I went to "Project -> Options -> Delphi Compiler -> Linking", found that the minimum target OS was 7.0, and set it to 5.1.1 instead.
Now I'm getting
Unable to launch process <ip address> using the parameters for the <profile name> profile.
The following error was returned: 'Unable to install package. (e8000067)'
This error code is not on the help page. I also don't find it when googling.
Since all these error codes start with "e", it's probably supposed to be a decimal number preceded by "e" for error. Searching for the hexadecimal equivalent of "8000067", i.e. "7A1243", only yields color codes.
I made a "Hello World" app, tried to run it on the iPad, and got the same problem.
What is Delphi error e8000067 ?
It seems that this happens when you're compiling/linking for a 64 bits device, when your device is 32 bits.
When I chose to compile/link for a 32 bit device, the error went away.

Livecode revdberr invalid database connection

The simulator and the actual iPhone are giving me this error when trying to make the connection to the database.
revdberr invalid database type
My database is the mysql service that comes with the livecode hosting.
I can run the app fine from my Mac and from my PC, but simulator and phone gives the error.
I have checked the Mysql external under standalone application settings.
The line of code I am using is
put revOpenDatabase("MySQL", tDatabaseAddress, tDatabaseName, tDatabaseUser, tDatabasePassword) into tResult
My LC version is 7.1.0 Indy and Xcode 6.4
Another thing to note is that it gives me the error while disconnected from the internet also, so something is happening before even trying to connect.
Going crazy here :)

iOS 8.4 CFNetwork SSLHandshake failed (-9850)

My code for ssl handshake fails since I updated xcode to 6.4 (and simulator to ios 8.4). The error is: CFNetwork SSLHandshake failed (-9850)
The same code is performing ssl handshake successfully on ios 8.3 simulator (i've also tried ios 8.3 simulator from xcode 6.4 and it handshakes well).
Here's the piece of code that cofigures and starts handshake. I'm using swift.
self.socket.startTLS([kCFStreamSSLLevel:kCFStreamSocketSecurityLevelTLSv1,
kCFStreamSSLValidatesCertificateChain:kCFBooleanFalse])
I was trying to figure this out whole day and I couldn't even find out what the error code -9850 means. It isn't listed with all the other codes in SecureTransport.h file.
Update1:
I found out that apple introduced app transport security which means that you can declare domains you want to establish secure connection to. Anyway I tried with ATS but without any success. -9850 error is still making problems.
Update 2 - Solution
As Michal and Steven suggested in their answers I started to suspect that the main issue is on the server side which ended up to be true.
I talked with guy who implemented the server and all problems were gone after he generated new ssl certificates of length 2048. Before that they were 512. With new certificates, code on my side works perfectly fine.
-9850 appears in the SecureTransport.h header buried inside the iOS 9 SDK:
errSSLWeakPeerEphemeralDHKey = -9850, /* weak ephemeral dh key */
It sounds like Michal is on the right track. A more general search for this problem led me to http://www.chromium.org/administrators/err_ssl_weak_server_ephemeral_dh_key:
As of Chrome 45, this error message is triggered if the SSL/TLS handshake attempts to use a public key, smaller than 1024 bits, for ephemeral Diffie-Hellman key agreement.
I'm not saying that iOS 9 imposes exactly the same requirements as Chrome, but I'd start looking at the server configuration and if you can increase the key size it uses for the SSL handshake.
I believe it has something to do with coreTLS:
Description: coreTLS accepted short ephemeral Diffie-Hellman (DH) keys, as used in export-strength ephemeral DH cipher suites. This issue, also known as Logjam, allowed an attacker with a privileged network position to downgrade security to 512-bit DH if the server supported an export-strength ephemeral DH cipher suite. The issue was addressed by increasing the default minimum size allowed for DH ephemeral keys to 768 bits.
From what I can tell from your code, I guess you're using GCDAsyncSocket. It has been updated 10 months ago, so it definitely does not reflect this issue.
When I get CFNetwork SSLHandshake failed -(*) its because my device is connected to the network but not the internet.

App crashes on some device with Application exited abnormally with signal 11: Segmentation fault: 11

I'm working on an iOS app and it load images from an URL like this image it is working perfectly on all the test devices in my office(and on simulator as well). but client said that the app is crashing whenever any image comes, everything else working as expected.
Now the question is if there is any problem than how it is working on my side? Is there any way(any app or anything) by using them client can send crash report to me so i can check?
Note:- we are testing on the same iOS version(7.x)
EDIT:- Some how they get the log and send to me from that i got
May 20 22:48:47 iPhone-5S com.apple.launchd[1] (UIKitApplication:com.Ba-cha[0xfbd1][287]) <Warning>: (UIKitApplication:com.Ba-cha[0xfbd1]) Job appears to have crashed: Segmentation fault: 11
May 20 22:48:47 iPhone-5S backboardd[31] <Warning>: Application 'UIKitApplication:com.Ba-cha[0xfbd1]' exited abnormally with signal 11: Segmentation fault: 11
I searched for the same and tried NSZombieEnabled but in my device (iPhone 4 and iPhone5) it is working perfectly no log? And now the question is How can i reproduce the issue on my device?
This is hit and try solution(at least worked for me):- My app Was worked fine on iPhone4 and 5(32 bit) but crash on iPhone 5s i.e. 64 bit processor. From some research on stackoverflow and Apple official i come to know perhaps there may be some problem in conversion between NSInteger to int. so i use NSInteger every where instead int.
Also i'v to remove armv64 from my project and set NO for "Build Active Architecture Only" (debug and release)
That did the trick for me, I didn't really need any 64bit specific functionality on my app so I took it out. I know this is a hack and not a good solution but at least it works.
As Adam suggested, iTunes would work but it may be better to save your client the chore...
You could alternatively send them a new version of the app using something like HockeyApp or TestFlight (free) integrated, allowing you to automatically receive the crash logs as well as the wide range of other useful tools they provide such as easier installation by the client.
They can load Xcode, and connect the device. Device logs can be viewed in the Organizer window. Crashes are marked as such. The log text can be cut and pasted or the export button can just save the whole thing as text.
Crashlytics offers software and service to upload crash logs.
It is possible to build up the information that appears in a crash log, but you will need unix signal handlers, various exceptions handlers, and a server to upload to.
Segmentation fault 11 means memory allocation issue. You possibly have made a coding issue like: using weak/assign, instead strong on NSObject

iOS Printer Simulator Errors - Air Print

There's something wrong with my Printer Simulator. Trying to print while running https://developer.apple.com/library/IOS/samplecode/Recipes_+_Printing/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011098-Intro-DontLinkElementID_2 will cause the following errors to appear in the Xcode console:
2014-03-26 17:23:47.563 Recipes[3455:3c07] Simulated\032Label\032Printer\032#\032[redacted]Mac\032mini._ipps._tcp.local.:
Unable to connect to [redacted]-mac-mini.local.:8632: Bad file descriptor
2014-03-26 17:23:47.570 Recipes[3455:3c07] Simulated\032Label\032Printer\032#\032[redacted]Mac\032mini._ipps._tcp.local.:
Connection is untrusted: Unable to establish a secure connection to host.
Here is what I have tried without success:
Reinstalling Xcode
debugging Bonjour connections
created a new user on the mac mini
What else could I try? Thanks!
Deleting /private/var/tmp/printd fixed it for me. I found that answer in AirPrint Connection Refused Error.
In case this helps someone. If your printer simulator stops working, see my answer over here: AirPrint Connection Refused Error -- short version, make sure you only have 1 active network connection to your network at once (popping out the ethernet worked for me)

Resources