Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 416 matches
www.mcselec.com Forum Index
Author Message
  Topic: overlay - MWS
njepsen

Replies: 12
Views: 397

PostForum: BASCOM-AVR   Posted: Thu Oct 14, 2021 6:10 am   Subject: overlay - MWS
Hi Mark,
thanks for your input. That pretty much confirms my conclusion that both the array and the overlaid string need to be global.
My fix was really easy My mistake was in usin ...
  Topic: overlay - MWS
njepsen

Replies: 12
Views: 397

PostForum: BASCOM-AVR   Posted: Wed Oct 13, 2021 6:45 am   Subject: overlay
Further to this discussion.
I have been doing some testing.
Because arrays cannot be locals, the declaration must take the form


dim somestring as string * 255 'must be declared bef ...
  Topic: overlay - MWS
njepsen

Replies: 12
Views: 397

PostForum: BASCOM-AVR   Posted: Fri Sep 24, 2021 9:47 pm   Subject: overlay - MWS
Thanks for the comments chaps. This was an edited version of what i have running, and I do have a 2 sec timeout in the do loop in case nothing arrives, but you are correct - the LF does get added to ...
  Topic: overlay - MWS
njepsen

Replies: 12
Views: 397

PostForum: BASCOM-AVR   Posted: Fri Sep 24, 2021 1:21 am   Subject: overlay - MWS
MWS,
some time ago you commented in another post about the follies of building a string with string = String + newcharacter, for reasons that make really good sense, and you advised ove ...
  Topic: Kill large number of files
njepsen

Replies: 12
Views: 756

PostForum: BASCOM-AVR   Posted: Mon Dec 14, 2020 10:09 pm   Subject: Kill large number of files
Sorry I have replied to you people earlier, and thanks for the input. Ive been away for a few days.
MWS - I don't need to keep anything on the Sd so format would be OK, but there is no format cmd. ...
  Topic: Kill large number of files
njepsen

Replies: 12
Views: 756

PostForum: BASCOM-AVR   Posted: Mon Dec 07, 2020 5:20 am   Subject: Kill large number of files
I have a situation where i need to kill a large number of files (upwards of 10,000) on an SD card.
This is done remotely by sms, so I cant just put the SD into a PC
The following code is too slow - ...
  Topic: How to know limit for $hwstack, $swstack, $framesize, is it
njepsen

Replies: 11
Views: 1061

PostForum: BASCOM-AVR   Posted: Mon Sep 28, 2020 5:56 am   Subject: How to know limit for $hwstack, $swstack, $framesize, is it
Hi MWS,
Thanks for your reply. About the code explorer's info: everything therein can be only info which the compiler provides at end of compilation, thus it's static info.
I do not kn ...
  Topic: How to know limit for $hwstack, $swstack, $framesize, is it
njepsen

Replies: 11
Views: 1061

PostForum: BASCOM-AVR   Posted: Thu Sep 24, 2020 7:59 am   Subject: How to know limit for $hwstack, $swstack, $framesize, is it
My sincere apologies mws - for some reason I thought that was your name. I wasn't being cheeky or flippant.

Yes obviously these var must be declared in the .lib. Anyway - the values seem reasona ...
  Topic: How to know limit for $hwstack, $swstack, $framesize, is it
njepsen

Replies: 11
Views: 1061

PostForum: BASCOM-AVR   Posted: Wed Sep 23, 2020 9:22 pm   Subject: How to know limit for $hwstack, $swstack, $framesize, is it
Thanks for the tip Rudolf. Here is what happens:

$regfile = "m1284pdef.dat"
$crystal = 9830400
$framesize =800
$hwstack = 800 '
$swstack = ...
  Topic: How to know limit for $hwstack, $swstack, $framesize, is it
njepsen

Replies: 11
Views: 1061

PostForum: BASCOM-AVR   Posted: Wed Sep 23, 2020 5:38 am   Subject: How to know limit for $hwstack, $swstack, $framesize, is it
Still confused. I included (copied with cut & paste) the sample program from help section on $HWCHECK and I run it every 30 secs in a program that runs successfully, has been running for several ...
  Topic: How to know limit for $hwstack, $swstack, $framesize, is it
njepsen

Replies: 11
Views: 1061

PostForum: BASCOM-AVR   Posted: Wed Sep 23, 2020 4:15 am   Subject: How to know limit for $hwstack, $swstack, $framesize, is it
So what do these numbers represent?

Bytes used?
bytes needed?
_lowest
_highest??

I'm confused.
  Topic: Do STCHECK,$HWCHECK,$FRAMECHECK,$SOFTCHECK work
njepsen

Replies: 6
Views: 432

PostForum: BASCOM-AVR   Posted: Mon Aug 24, 2020 3:00 am   Subject: Do STCHECK,$HWCHECK,$FRAMECHECK,$SOFTCHECK work
Hi Adrian,
yes you are probably right. All my var are in alphabetical order so i can easily find them.
Once bitten, twice shy.
  Topic: Do STCHECK,$HWCHECK,$FRAMECHECK,$SOFTCHECK work
njepsen

Replies: 6
Views: 432

PostForum: BASCOM-AVR   Posted: Mon Aug 24, 2020 1:57 am   Subject: Do STCHECK,$HWCHECK,$FRAMECHECK,$SOFTCHECK work
Thanks Fellas for coming back to me on this, and thanks for your efforts especially JC.
I HAVE FOUND THE PROBLEM

It was your comment mws that variables are stored in the order in which they are de ...
  Topic: Do STCHECK,$HWCHECK,$FRAMECHECK,$SOFTCHECK work
njepsen

Replies: 6
Views: 432

PostForum: BASCOM-AVR   Posted: Sun Aug 23, 2020 12:39 am   Subject: Do STCHECK,$HWCHECK,$FRAMECHECK,$SOFTCHECK work
I am chasing an issue where a global gets changed when it should not, and i have been chasing this for 2 days now.
The last time anyone posted on the various 4 tools (shown above) for checking stack ...
  Topic: stack woes
njepsen

Replies: 8
Views: 773

PostForum: AVR-DOS   Posted: Sat Aug 22, 2020 7:44 am   Subject: stack woes
7 years later:
My application has now grown to 8000 lines, and I am using 2.0.8.2.

I have spent 7 hours today unsuccessfully trying to find a bug .
I have a variable called "last_rain_tipL" whic ...
 
Page 1 of 28 Goto page 1, 2, 3 ... 26, 27, 28  Next
All times are GMT + 1 Hour
Jump to: