Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 16:53 19 May 2024 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 : Micromite Firmware Update V5.4

     Page 2 of 2    
Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 12:08am 26 May 2017
Copy link to clipboard 
Print this post

Loaded it from Tera Term with xmodem receive.

Also notice in crashes untouched.
Reverted to 5.3 and Ok bar the screen corrummpion around the led.

If you mean how did i load the firmware it was with the ASCII programmer using Roberts Gui.

Phil.

Edit I think i rebooted several times, but not sure.
Can check again as I currently have 1 on 5.3 the other on 5.3 .Edited by Phil23 2017-05-27
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 12:12am 26 May 2017
Copy link to clipboard 
Print this post

More playing around - I added this to your main DO/LOOP:


X=X+1
Print "-------------------------------------------------------------"
Print "Cycle: "+Str$(X)
Memory
Print "-------------------------------------------------------------"
'Pause 500


Add X to the defined variables, and set it to zero first.

The results are that after about 200 loops, you are out of memory. See this output log:


-------------------------------------------------------------
Cycle: 175
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
35K (35%) General
58K (61%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 176
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
35K (35%) General
58K (61%) Free
TouchDown
1 Button 4 Pressed
TabAct 4
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 177
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
44K (44%) General
49K (52%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 178
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
44K (44%) General
49K (52%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 179
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
44K (44%) General
49K (52%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 180
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
44K (44%) General
49K (52%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 181
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
44K (44%) General
49K (52%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 182
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
44K (44%) General
49K (52%) Free
TouchDown
1 Button 4 Pressed
TabAct 4
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 183
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 184
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 185
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 186
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 187
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 188
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 189
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 190
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 191
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 192
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 193
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
53K (53%) General
40K (43%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 194
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
61K (62%) General
32K (34%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 195
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
61K (62%) General
32K (34%) Free
TouchDown
1 Button 4 Pressed
TabAct 4
TouchDown
TabAct 4
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 196
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 197
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 198
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 199
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 200
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 201
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 202
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 203
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 204
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 205
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 206
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 207
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 208
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 209
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 210
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 211
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 212
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 213
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 214
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 215
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 216
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 217
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 218
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 219
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 220
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 221
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 222
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 223
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
70K (71%) General
23K (25%) Free
-------------------------------------------------------------
TouchDown
1 Button 4 Pressed
TabAct 4
-------------------------------------------------------------
Cycle: 224
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
79K (80%) General
14K (16%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 225
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
79K (80%) General
14K (16%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 226
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
79K (80%) General
14K (16%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 227
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
79K (80%) General
14K (16%) Free
TouchDown
1 Button 4 Pressed
TabAct 4
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 228
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
88K (89%) General
5K ( 7%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 229
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
88K (89%) General
5K ( 7%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 230
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
88K (89%) General
5K ( 7%) Free
-------------------------------------------------------------
-------------------------------------------------------------
Cycle: 231
Flash:
10K (10%) Program (365 lines)
8K ( 8%) Library
82K (82%) Free

RAM:
5K ( 4%) 50 Variables
88K (89%) General
5K ( 7%) Free
TouchDown
1 Button 4 Pressed
[202] Text MM.HRes*23/40, MM.VRes*8/16, "Output = ", LB,,, RGB(Red)
Error: Not enough memory
>


You can see that each time through the loop, it gobbles more and more of the RAM somewhere, till there is no more left, then falls over.

This same code runs OK on an earlier version of MMBASIC you say?Edited by Grogster 2017-05-27
Smoke makes things work. When the smoke gets out, it stops!
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 12:17am 26 May 2017
Copy link to clipboard 
Print this post

Yes,

Runs for days under 5.2 o4 5.3.

Excuse my short replies...

Tablet....
Laptop H/D failure.
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 12:22am 26 May 2017
Copy link to clipboard 
Print this post

Excuse the MOD commands in the main loop, that was me playing about & it has bee left un....fixed.

Phil.
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 01:00am 26 May 2017
Copy link to clipboard 
Print this post

If you look at that log,
Not much is gobbled in each cycle, obviously some for it to crash untouched,
but there's a big hit after each TOUCHDOWN.

 
GoodToGo!

Senior Member

Joined: 23/04/2017
Location: Australia
Posts: 188
Posted: 01:36am 26 May 2017
Copy link to clipboard 
Print this post

Hi Phil,

I modified your UpdateTab4 Sub to the following:-
Sub UpdateTab4
'memory

IF TabAct=4 then

local hres = mm.hres/40
local hres17 = mm.hres*17/40
local hres23 = mm.hres*23/40
local hres39 = mm.hres*39/40

Font 1,1
Text hres, MM.VRes*5/16, "Air Temp = ", LB,,, RGB(Cyan)
Text hres, MM.VRes*6/16, "Water Temp = ", LB,,, RGB(Green)
Text hres, MM.VRes*7/16, "Input Temp = ", LB,,, RGB(Blue)
Text hres, MM.VRes*8/16, "Output Temp = ", LB,,, RGB(Red)
Text hres, MM.VRes*9/16, "Temp Diff = ", LB,,, RGB(Magenta)
Text hres, MM.VRes*10/16, "Solar Volts = ", LB,,, RGB(Yellow)
Text hres, MM.VRes*11/16, "Flow Rate l/m ", LB,,, RGB(Cyan)
Text hres, MM.VRes*12/16, "Energy Watts ", LB,,, RGB(255,165,0)

Text hres17, MM.VRes*5/16, Str$(TmpAmb,4,1), RB,,, RGB(Cyan)
Text hres17, MM.VRes*6/16, Str$(TmpCur,4,1), RB,,, RGB(Green)
Text hres17, MM.VRes*7/16, Str$(TmpInp,4,1), RB,,, RGB(Blue)
Text hres17, MM.VRes*8/16, Str$(TmpOut,4,1), RB,,, RGB(Red)
Text hres17, MM.VRes*9/16, Str$(TmpOut-TmpInp,4,1), RB,,, RGB(Magenta)
Text hres17, MM.VRes*10/16, Str$(SlrVlt,4,1), RB,,, RGB(Yellow)
Text hres17, MM.VRes*11/16, Str$(FlowRate,4,1), RB,,, RGB(Cyan)
Text hres17, MM.VRes*12/16, Str$((FlowRate*60*(TmpOut-TmpInp)*.00117*1000),4,1), RB,,, RGB(255,165,0)

Text hres23, MM.VRes*5/16, "Ambient = ", LB,,, RGB(Cyan)
Text hres23, MM.VRes*6/16, "Evaporator = ", LB,,, RGB(Green)
Text hres23, MM.VRes*7/16, "Input = ", LB,,, RGB(Blue)
Text hres23, MM.VRes*8/16, "Output = ", LB,,, RGB(Red)
Text hres23, MM.VRes*9/16, "Temp Diff = ", LB,,, RGB(Magenta)
Text hres23, MM.VRes*10/16, "Compressor = ", LB,,, RGB(Yellow)


Text hres39, MM.VRes*5/16, Str$(TmpHpAir,4,1), RB,,, RGB(Cyan)
Text hres39, MM.VRes*6/16, Str$(TmpHpEva,4,1), RB,,, RGB(Green)
Text hres39, MM.VRes*7/16, Str$(TmpHpInp,4,1), RB,,, RGB(Blue)
Text hres39, MM.VRes*8/16, Str$(TmpHpOut,4,1), RB,,, RGB(Red)
Text hres39, MM.VRes*9/16, Str$(TmpHpOut-TmpHPInp,4,1), RB,,, RGB(Magenta)
Text hres39, MM.VRes*10/16, Str$(TmpHpCmp,4,1), RB,,, RGB(Yellow)


I also changed the OPTION DEFAULT from NONE to INTEGER.

It seems to be rock solid now....
Flash:
10K (10%) Program (365 lines)
20K (20%) Library
70K (70%) Free

RAM:
4K ( 4%) 50 Variables
8K ( 7%) General
91K (89%) Free
Flash:
10K (10%) Program (365 lines)
20K (20%) Library
70K (70%) Free

RAM:
4K ( 4%) 50 Variables
8K ( 7%) General
91K (89%) Free
Flash:
10K (10%) Program (365 lines)
20K (20%) Library
70K (70%) Free

RAM:
4K ( 4%) 50 Variables
8K ( 7%) General
91K (89%) Free


So creating variables and carrying out the mm.HRES formatting calculations once seems to fix it.......


Bug?

GTG!



...... Don't worry mate, it'll be GoodToGo!
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 10:20am 26 May 2017
Copy link to clipboard 
Print this post

  GoodToGo! said   Hi Phil,

I modified your UpdateTab4 Sub to the following:-
Sub UpdateTab4
'memory

IF TabAct=4 then

local hres = mm.hres/40
local hres17 = mm.hres*17/40
local hres23 = mm.hres*23/40
local hres39 = mm.hres*39/40


So creating variables and carrying out the mm.HRES formatting calculations once seems to fix it.......


Funny you should say that,
I've had this sitting in NPP+ unfinished for the past week.
I Intending to make it easier to rearrange the columns & not repeat the same calc's over and over again....

[Code]Sub UpdateTab4

Local Integer Col1=MM.HRes*01/40
Local Integer Col2=MM.HRes*17/40
Local Integer Col3=MM.HRes*23/40
Local Integer Col4=MM.HRes*39/40

Local Integer Row1
Local Integer Row2


IF TabAct=4 then

Font 4,1
Text Col1/40, MM.VRes*5/16, "Air Temp = ", LB,,, RGB(Cyan)
Text MM.HRes/40, MM.VRes*6/16, "Water Temp = ", LB,,, RGB(Green)
.
.
.[/code]

Then I went on a mental tangent, wonder if it would be better in an array,
or probably 2, and not inside the SUB.

[code]DIM INTEGER Row(10),Col(4)[/code]

Phil
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 05:46pm 28 May 2017
Copy link to clipboard 
Print this post

OK, I have found the cause of the problem... the solution will take more time.

The workaround is to put the justify parameter of any TEXT and GUI CAPTION commands within quotes (ie, make it a string constant). For example:

Text hres, MM.VRes*5/16, "Air Temp = ", "LB",,, RGB(Cyan)


Geoff
Geoff Graham - http://geoffg.net
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 01:07am 30 May 2017
Copy link to clipboard 
Print this post

I've just tried to update my mm+ to 5.0403 which is running on a Silicon Chip mm+ backpack.

The LCD and touch work perfectly, option list shows:

OPTION LCDPANEL ILI9341, LANDSCAPE, 2, 23, 29
OPTION TOUCH 1, 3

But when I try to set up the SD card on the LCD panel using 'option card 21' I get 'pin 21 is reserved at start up' Is this a bug?

It works again if I downgrade to 5.0302.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 01:44am 30 May 2017
Copy link to clipboard 
Print this post

I cannot think what this could be.

I have just posted 5.04.04 on my website. Could you please download that (clear your cache first) and load it to the PIC32. Make sure that you have not loaded anything else after updating the firmware and then run just the three commands:
OPTION LCDPANEL ILI9341, LANDSCAPE, 2, 23, 29
OPTION TOUCH 1, 3
OPTION SDCARD 21

As I said, I cannot see what could be causing your problem (I'm hoping that it is not another bug).

Geoff
Geoff Graham - http://geoffg.net
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 02:28am 30 May 2017
Copy link to clipboard 
Print this post

Just configured a CGMicroboard2 with 5.04.04 & it all went fine.

[code]> option list
OPTION LCDPANEL ILI9341, LANDSCAPE, 21, 22, 23
OPTION TOUCH 18, 14
OPTION SDCARD 49, 30
>[/code]

Did notice that it uses Pin 21.

Phil.
 
SteveA
Regular Member

Joined: 10/03/2017
Location: United Kingdom
Posts: 48
Posted: 03:16am 30 May 2017
Copy link to clipboard 
Print this post

Thanks Geoff,

Loaded 5.04.04 and set the options, no problem there!

> print mm.ver
5.0404
>

> option list
OPTION COLOURCODE ON
OPTION LCDPANEL ILI9341, LANDSCAPE, 2, 23, 29
OPTION TOUCH 1, 3
OPTION SDCARD 21
>


Ran touch setup. Rebooted and tried to read the card, and I get:

files
Error: SD card not found
>

If I downgrade, I can list the card contents.

> files
\
<DIR> SWA
1 directory, 0 files
>

*** EDIT ***

I've got it working now:

> files
A:/
<DIR> SWA
1 directory, 0 files
>

I cleaned the card socket with some switch cleaner!

Sorry,

Steve
Edited by SteveA 2017-05-31
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 03:41am 30 May 2017
Copy link to clipboard 
Print this post

Great, thanks for the fast response. I can sleep soundly tonight.

Geoff
Geoff Graham - http://geoffg.net
 
     Page 2 of 2    
Print this page


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

© JAQ Software 2024