Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 18:53 19 Apr 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 : ArmmiteF4 firmware V5.07.00b1 - major upgrade

     Page 9 of 13    
Author Message
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 840
Posted: 05:42am 20 Mar 2021
Copy link to clipboard 
Print this post

Gerry,

This is what I get:

mite MMBasic Version 5.07.00b8
Copyright 2011-2020 Geoff Graham
Copyright 2016-2020 Peter Mather

> ? HEX$(getscanline(1),2)
00
> ? HEX$(getscanline(2),2)
00
> ? HEX$(getscanline(3),2)
00
>


Andrew
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5882
Posted: 05:44am 20 Mar 2021
Copy link to clipboard 
Print this post

32 pin
no adapter
? HEX$(getscanline(1),2)
? HEX$(getscanline(2),2)
? HEX$(getscanline(3),2)
00
00
00


Jim
VK7JH
MMedit   MMBasic Help
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 840
Posted: 05:49am 20 Mar 2021
Copy link to clipboard 
Print this post

OA47,

The RST button (and disconnecting the USB) breaks the Console connection to MMEdit. By the time I clear it and reconnect the message has gone.
The one I managed to get, below, missed "ARM" off the first line

mite MMBasic Version 5.07.00b8
Copyright 2011-2020 Geoff Graham
Copyright 2016-2020 Peter Mather

So that is the only way?

Thanks,

Andrew
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1773
Posted: 05:51am 20 Mar 2021
Copy link to clipboard 
Print this post

Hi all,
As noted the latest update reverses the brightness. That would be fine if you could save new settings.
I type:-
option lcdpanel console 1,rgb(white),rgb(black),5 <enter>
But after a reset it reverts to "factory settings" ie backlight off.
also the colours have to be included, no defaults.
eg

> option lcdpanel console 1,,,5
Error : Syntax
>
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 840
Posted: 05:52am 20 Mar 2021
Copy link to clipboard 
Print this post

Gerry,
just to confirm mine too is 32 pin, no adapter.

Andrew
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5882
Posted: 06:06am 20 Mar 2021
Copy link to clipboard 
Print this post

  Andrew_G said  OA47,

The RST button (and disconnecting the USB) breaks the Console connection to MMEdit. By the time I clear it and reconnect the message has gone.
The one I managed to get, below, missed "ARM" off the first line

mite MMBasic Version 5.07.00b8
Copyright 2011-2020 Geoff Graham
Copyright 2016-2020 Peter Mather

So that is the only way?

Thanks,

Andrew


I close the terminal in MMEdit.
power cycle the armite
re-open the terminal in MMEdit and the sign-on banner is usually there complete.

The windows driver has a buffer that MMEdit doesn't clear.
Annoying sometimes, handy other times.

what's with the GETSCANLINE(x) function?
I am only used to seeing GETSCANLINE on it's own.

Jim
VK7JH
MMedit   MMBasic Help
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 840
Posted: 06:23am 20 Mar 2021
Copy link to clipboard 
Print this post

Thanks Jim.
No complete luck but I can get all but the first 3 letters.

I had a bit of excitement. I turned on Autorun with Watchdog too short to get ^C to work so it just kept going. I re-flashed using the STM app but it still kept going (I AM surprised by that). Thankfully Key1 on power up saved the day - so it does work!
Interestingly all the Options were still there - so that works too.

Cheers,

Andrew
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 843
Posted: 07:10am 20 Mar 2021
Copy link to clipboard 
Print this post

  Quote  
what's with the GETSCANLINE(x) function?

getscanline() is as it always was.

getscanline([1,2,3]) were put in to allow reading of the LCDPANEL ID, mainly as a diagnostic in case we come across a different NT35510 display as the driver for the IPS_4_16 display relies on reading the ID for correct initialisation for either the OTM8009A or NT35510 chip.
All three are returning 00 for the ILI9341_16 32 pin and 40 pin versions. I am thinking the two have a different setup for the LED driver.
Latest F4 Latest H7
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3008
Posted: 12:31pm 20 Mar 2021
Copy link to clipboard 
Print this post

I certainly scratched my head over my 32-pin ILI9341 not working after flashing the latest (and because I was doing other things, didn't consider that the flashing might have been the cause).

Since it seems that the 32-pin and the 40-pin ILI9341s are reversed with respect to the meaning of backlight nn, perhaps upon first running a newly flashed MMBasic, if ILI9341_16 has been set, if backlight is either 0 or 100, then BACKLIGHT 50 should be set. This would keep the user from confronting a completely dark screen.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 843
Posted: 12:52pm 20 Mar 2021
Copy link to clipboard 
Print this post

I think Peter is going to put it back how it was as the 32 pin is the one that comes with the board and provides a solution without any adaptor board. I changed it when developing the NT35510 driver.
Latest F4 Latest H7
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 1985
Posted: 03:09pm 20 Mar 2021
Copy link to clipboard 
Print this post

nice. new version fixed a problem I was having with touch(), although it could have been any recent update - I was still on  5.0506  

thanks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8567
Posted: 08:33am 21 Mar 2021
Copy link to clipboard 
Print this post

Armmite Version 5.07.00b9


ArmmiteF407.zip


Fixes a bug in GUI - thanks Geoff
Fixes the degree symbol in font 7
Fixes backlight for the standard ILI9341 parallel display
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 840
Posted: 09:16pm 21 Mar 2021
Copy link to clipboard 
Print this post

Thanks Peter!

Andrew
 
erbp
Senior Member

Joined: 03/05/2016
Location: Australia
Posts: 186
Posted: 08:23am 24 Mar 2021
Copy link to clipboard 
Print this post

@matherp

Back on 12 March I made the post reproduced below to this thread but I never saw any response to the question I raised. To be fair, my timing was bad, as my post was immediately preceding the SDCard / Ver 33 Board / USB recognition / etc. issues that caused a flurry of posts and a number of subsequent beta versions to be released. I think that in all this activity my post was missed or forgotten. No drama - it was certainly less important than the SDCard issue, etc.

Anyway now that activity on this thread has quietened down, I am raising my earlier question again - hopefully I might get an answer one way or other this time round.

  erbp said  The ability to trigger an interrupt on a Serial Port when a certain character has been received has been available in the MM2 and MM+ firmware since Release 5.05.02 - see below excerpt from the Change Log for the 5.05.02 release:

An interrupt on a serial port can now be triggered when a certain character has been received. The number used in the fifth field in the comspec string can now be prefixed with an equals character (=) and in that case MMBasic will call the interrupt subroutine when a character with that ASCII value has been received. For example, using the following comspec string "COM1: 300, 256, MyInt, =13" will cause MMBasic to call the interrupt subroutine MyInt when a carriage return character (ASCII value of 13) was received. The previous behaviour with an ordinary number (ie, interrupt on the number of characters received) is unchanged.


Is there any possibility that this feature could be added to the Armmite F4 firmware too?

Thanks,
Phil.


Cheers,
Phil.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8567
Posted: 08:38am 24 Mar 2021
Copy link to clipboard 
Print this post

  Quote  Is there any possibility that this feature could be added to the Armmite F4 firmware too?


I haven't included this on any of my ports because the combination of the GPS functionality and/or longstrings are more powerful for most applications. I don't currently intend to add this functionality - sorry
 
erbp
Senior Member

Joined: 03/05/2016
Location: Australia
Posts: 186
Posted: 09:06am 24 Mar 2021
Copy link to clipboard 
Print this post

  matherp said  I don't currently intend to add this functionality - sorry


Hi Peter,

Ok, thanks - at least I know not to expect that it will be available.

Cheers,
Phil.
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 425
Posted: 05:48am 25 Mar 2021
Copy link to clipboard 
Print this post

  erbp said  

Ok, thanks - at least I know not to expect that it will be available.

Cheers,
Phil.


here you can work in interrupt mode with rec control


Option explicit
Const cnbbuf = 10


Dim tmbuf(cnbbuf) As string      'stack
dim flgtmbuf(cnbbuf) as integer   'status of frame
Dim ptWrite As integer
Dim ptRead As integer

Dim i As integer
Dim i1 As integer
Dim i2 As integer

dim vn as integer   'Ascii value for end rec

Dim ptime1 As float
Dim ptime2 As float

'*****   Setup   ************************
vn=10   'stop rec and save frame after rec LineFeed or CR
Open "COM1:9600,255,spcomrec" As #2
ptWrite=0
ptRead=0
for i=1 to cnbbuf
 tmbuf(i)=""   'clear stack
 flgtmbuf(i)=0    'clear status
next i

'*****************************
'*** Main prog ******
'*****************************
do
 ptime1=timer
 tfrframe    'read frame rec
 ptime2=timer  'to know time used
 if ptime2-ptime1>400 then
   print time$;" ->";str$((ptime2-ptime1)/1000,4,3)
 end if
 pause(10)
loop
'*****************************

sub tfrframe()  'prog work with each frame
local txt as string
local errtfr as integer
 for i=1 to cnbbuf
   ptRead=ptRead+1
   if ptRead>cnbbuf then ptRead=1
   if flgtmbuf(ptRead)=0 then exit for   'ignore first frame rec
   if flgtmbuf(ptRead)=2 then   'if frame is complete
     txt=tmbuf(ptRead)   'frame rec
 '------------------------------
 print txt  'for debug
     'spreadframe(txt,errtfr)     'here you can use frame
 '------------------------------------
     if errtfr=0 then    'if no error  else errtfr= num error
       flgtmbuf(ptRead)=0   'ok for future frame in stack
     end if
   end if
 next i
end sub



sub spcomrec  'interrupt prog read COM port
Local tx$ As string 'length 3
Local a$ As string length 1
local vai as integer
Local i3 As integer
Local i4 As integer

 i3=Loc(#2)
 if i3=0 then  'some time rev interrupt but without char
   exit sub
 else
   tx$=Input$(i3,#2)
   For i4=1 To i3
     a$=Mid$(tx$,i4,1)
     vai=asc(a$)   'code ascci of char
     if vai=vn then
   flgtmbuf(ptWrite)=2  'flag end of frame
       ptWrite=ptWrite+1   ''stack pointer
       if ptWrite>cnbbuf then ptWrite=1  'if end of stack then pt=begin stack
       tmbuf(ptWrite)=""
       flgtmbuf(ptWrite)=1   'flag that buffer is  new
     else
       tmbuf(ptWrite)=tmbuf(ptWrite)+a$  'save char rec
     end if
   next i4
end sub




Edited 2021-03-25 16:23 by goc30
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1590
Posted: 06:33am 25 Mar 2021
Copy link to clipboard 
Print this post

  Quote  An interrupt on a serial port can now be triggered when a certain character has been received.

I know it was rejected for the CMM2 also but it would be good for detecting the receipt of a CR or an EOT and for program portability - but...

Bill
Keep safe. Live long and prosper.
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1133
Posted: 11:57am 02 Apr 2021
Copy link to clipboard 
Print this post

An observation regarding board v2.0 (1509) and MMBasic Version 5.07.00b9.

The LEDs D2 + D3 light up weakly. The board v33 behaves differently: No lights as expected.

SETPIN PA6, DOUT 'LED 2 is ON
SETPIN PA7, DOUT 'LED 3 is ON
Pause 1000
PIN(PA6) = 1 'LED 2 OFF
PIN(PA7) = 1 'LED 3 OFF
Pause 1000
PIN(PA6) = 0 'LED 2 ON
PIN(PA7) = 0 'LED 3 ON

The LEDs are still on when the program exits. If I'm back in the editor the LEDs D2 + D3 light up weakly again.

I wouldn't say it's a bug, but it's irritating.

Regards
Michael
 
ztoti
Regular Member

Joined: 27/10/2011
Location: Canada
Posts: 65
Posted: 08:29pm 02 Apr 2021
Copy link to clipboard 
Print this post

Hi all,
I connected ILI9341 to the board according with the manual:
OPTION LCDPANEL ILI9341, LANDSCAPE, PE0, PD6, PC4
but I have just black screen. Backlight command works just fine (brightness is going from min to max) and this is it, GUI test lcdpanel doesn't work.
Any help?

Thank you,
Zoran

ps. Thank you Peter for this upgrade.
 
     Page 9 of 13    
Print this page
© JAQ Software 2024