Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:51 13 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CPU exception #6 at address 0x9D099D0C...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9755
Posted: 06:43am 17 Jun 2019
Copy link to clipboard 
Print this post

Can one of the gurus please let me know what is the likely cause of this error?

Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9755
Posted: 06:58am 17 Jun 2019
Copy link to clipboard 
Print this post

UPDATE: Appears to be corrupted copy/paste that was upsetting the Cfunction RXD routine. Cfunctions are rather unforgiving when the 32-bit HEX words are wrong, eh?!
Smoke makes things work. When the smoke gets out, it stops!
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 09:13am 17 Jun 2019
Copy link to clipboard 
Print this post

... you tease!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9755
Posted: 11:47pm 17 Jun 2019
Copy link to clipboard 
Print this post

I didn't MEAN too....

I could not work out what was going on at first, and then I noticed that whenever that was happening, it was at the very point I was calling the serial RXD Cfunction to read serial data. At that exact point in the code, it would fall over. When I checked the Cfunction data, I could see some words were not lining up correctly in the columns as they should. This was copied from a spreadsheet file, and the spreadsheet was obviously trying to diddle with the hex words thinking they were some kind of numbers it needed to crunch.
Smoke makes things work. When the smoke gets out, it stops!
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 09:01am 18 Jun 2019
Copy link to clipboard 
Print this post

I have had similar stuff uploading using AUTOSAVE. The F4 we all seem to be playing with has a really nasty USB Serial thingie built in and when I do my usual thing of pasting in from Notepad++ I lose great chunks on anything bigger than about a K... OK for small stuff.

First time I ran I got some weird crap on a prog that is working fine on other platforms and does nothing more exotic than decalre some fonts... then I saw it was only 667 lines long instead of the 1300+... had a bit of a play and dumped the autosave method on it. I use the SDCard to transfer progs but no-where as quick as F10.

I will move over to a CH340G connected to J6 eventually but no rush. just now.

 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3470
Posted: 12:01pm 18 Jun 2019
Copy link to clipboard 
Print this post

  CaptainBoing said  I use the SDCard to transfer progs but no-where as quick as F10.

For the F4, I also gave up on the method that you outlined some time ago--F10, copy, paste, Ctrl-Z (as you said, it takes longer to describe the steps than to perform them). Plus, the USB connection seems limited to 38400 (am I wrong about that?). I've been using 115200 on J6.

For the SDCard, have you been using XMODEM RECEIVE file$? That seems pretty quick (but does require some extra mouse clicks).


PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 12:51pm 18 Jun 2019
Copy link to clipboard 
Print this post

  lizby said  
For the SDCard, have you been using XMODEM RECEIVE file$? That seems pretty quick (but does require some extra mouse clicks).

No I take the card out, mount it in an adaptor and stick it in the side of my laptop... you see why I prefer the F10 method... soooon...

might try XMODEM direct to it, see if that is more tolerable.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10572
Posted: 01:48pm 18 Jun 2019
Copy link to clipboard 
Print this post

  Quote  The F4 we all seem to be playing with has a really nasty USB Serial thingie built in and when I do my usual thing of pasting in from Notepad++ I lose great chunks on anything bigger than about a K... OK for small stuff.


Works perfectly for me, make sure you are using the latest version (bottom of page). I'm using W10-64bit and a DECENT CABLE.

Just loaded a 3000 line file (73000 bytes) multiple times using F10 with no issues. I've also transferred multi-megabyte files both ways using Xmodem with this release.

  Quote  Plus, the USB connection seems limited to 38400 (am I wrong about that?)


The speed set in a terminal emulator( teraterm) is irrelevant with USB. The 73000 byte file LISTs in just under 3 seconds over USB (c200,000 baud)
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 01:50pm 18 Jun 2019
Copy link to clipboard 
Print this post

oh, that is interesting.

I will give it a whirl this later. Although I haven't noticed any problems with the cable I use, your point about quality is well taken.

Thanks


UPDATE:

Still the same. Decent Nokia cable no issues with anything other than F10



checked the speed (despite it being moot) and it was 38400, dropped it to 9600 as a test, same results... the actual data transferred seems to vary a bit - first test @9600 got 5987 bytes

doesn't really matter though.



Edited by CaptainBoing 2019-06-20
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3470
Posted: 04:05pm 18 Jun 2019
Copy link to clipboard 
Print this post

  matherp said  The speed set in a terminal emulator( teraterm) is irrelevant with USB. The 73000 byte file LISTs in just under 3 seconds over USB (c200,000 baud)

I'm confused. How does that work (it certainly does--much slower at 115200 baud with serial USB on J6). (And I do not appear to be losing any characters now with F10 & paste--114531 bytes pasted--both usb and serial on F6). (And if the baud rate setting doesn't matter with USB, why is the paste so much slower than the listing?)
Edited by lizby 2019-06-20
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
BrianP
Senior Member

Joined: 30/03/2017
Location: Australia
Posts: 292
Posted: 12:36am 19 Jun 2019
Copy link to clipboard 
Print this post

Hi guys

This may be a red herring, but I've found with Windows & USB it is useful turn OFF the default ON power management for the USB ports. It seems that the port is put to sleep occasionally even though it is BUSY!

In device manager go to USB Serial Bus controllers, select properties for all the entries in there & for anything with a "power management" tab make sure you untick the box for "let Windows turn off this device to save power".

Also, in control panel -> power settings -> change plan settings, disable "USB selective suspend".

Typical Windows...

B Edited by BrianP 2019-06-20
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025