|
Forum Index : Microcontroller and PC projects : CPU exception #6 at address 0x9D099D0C...
| Author | Message | ||||
Grogster![]() Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9755 |
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 ZealandPosts: 9755 |
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 KingdomPosts: 2171 |
... you tease! |
||||
Grogster![]() Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9755 |
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 KingdomPosts: 2171 |
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 StatesPosts: 3470 |
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 KingdomPosts: 2171 |
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 KingdomPosts: 10572 |
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. 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 KingdomPosts: 2171 |
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. |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3470 |
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?) PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| BrianP Senior Member Joined: 30/03/2017 Location: AustraliaPosts: 292 |
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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |