Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:23 24 Nov 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 : PicoMite V6.00.00 release candidates - all versions

     Page 2 of 24    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9105
Posted: 04:56pm 29 Sep 2024
Copy link to clipboard 
Print this post

If you want HDMIUSB you have loaded the wrong version. If you want VGAUSB then the error is correct because the Olimex configuration is for HDMI
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2119
Posted: 05:23pm 29 Sep 2024
Copy link to clipboard 
Print this post

the non usb hdmi will reset olimex
Connected to COM21 at 115200
option list
PicoMiteHDMI MMBasic Version 6.00.00RC1
OPTION FLASH SIZE 4194304
OPTION KEYBOARD US
OPTION CPUSPEED (KHz) 315000
> option reset olimex
PicoMiteHDMI MMBasic Version 6.00.00RC1
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION CPUSPEED (KHz) 315000
OPTION DISPLAY 24, 80
OPTION HDMI PINS  1, 3, 7, 5
OPTION SDCARD GP22, GP6, GP7, GP4
OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5
OPTION MODBUFF ENABLE  192
OPTION PLATFORM OLIME
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9105
Posted: 05:29pm 29 Sep 2024
Copy link to clipboard 
Print this post

Any time you load a different firmware variant it should reset everything e.g. HDMIUSB to HDMI
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2119
Posted: 05:45pm 29 Sep 2024
Copy link to clipboard 
Print this post

tried several times to get hdmi usb to reset olimex but same not a valid board.
non usb hdmi worked first time and reset olimex.
graphics ok.
 option list
PicoMiteHDMI MMBasic Version 6.00.00RC1
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION CPUSPEED (KHz) 315000
OPTION HDMI PINS  1, 3, 7, 5
OPTION SDCARD GP22, GP6, GP7, GP4
OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5
OPTION MODBUFF ENABLE  192
OPTION PLATFORM OLIMEX
Edited 2024-09-30 03:48 by stanleyella
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9105
Posted: 05:52pm 29 Sep 2024
Copy link to clipboard 
Print this post

OLIMEX isn't a valid board for HDMIUSB. It doesn't have a serial console port. If you use a board as the basis for something different you have to configure by hand
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9105
Posted: 06:08pm 29 Sep 2024
Copy link to clipboard 
Print this post

Here is the current list of predefined configurations
VGAUSB
           PICOGAME 4-PWM
           PICOGAME 4
           CMM1.5

VGA
           PICOGAME 4-PWM
           PICOGAME 4
           PICOMITEVGA V1.1
           PICOMITEVGA V1.0
           VGA Design 1
           VGA Design 2
           SWEETIEPI
           VGA Basic

HDMIUSB
           HDMIUSB

HDMI
           OLIMEX
           HDMIBasic

PICOMITE
           Game*Mite
           Pico-ResTouch-LCD-3.5
           Pico-ResTouch-LCD-2.8
           PICO BACKPACK
           RP2040-LCD-1.28
           RP2040LCD-0.96
           RP2040-GEEK

WEBMITE
           Game*Mite
           Pico-ResTouch-LCD-3.5
           Pico-ResTouch-LCD-2.8
           PICO BACKPACK

PICOMITEUSB
           USB Edition V1.0
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2119
Posted: 06:27pm 29 Sep 2024
Copy link to clipboard 
Print this post

is it the hdmi usb is a vga file as the non usb hdmi doesn't say vga?
sorry just seen your post late.
so olimex got to set up. I love a challenge... not! on a plate, do nowt
thanks, stan
Edited 2024-09-30 04:48 by stanleyella
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6778
Posted: 06:40pm 29 Sep 2024
Copy link to clipboard 
Print this post

You may as well delete the PicoGAME 4 options, Peter. I don't think that's going to continue now as it doesn't support USB or HDMI. None of them have been built.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2119
Posted: 06:55pm 29 Sep 2024
Copy link to clipboard 
Print this post

  matherp said  OLIMEX isn't a valid board for HDMIUSB. It doesn't have a serial console port. If you use a board as the basis for something different you have to configure by hand

don't get it. non usb hdmi works olimex why not usb with usb to ttl converter as before as for connecting to pc and mmedit, mmcc?
Edited 2024-09-30 05:09 by stanleyella
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9105
Posted: 07:07pm 29 Sep 2024
Copy link to clipboard 
Print this post

The idea is that OPTION RESET configures a specific board to work as-is. The Olimex board can't work as-is for USB as it needs an additional component. If you want to use it for USB then configure it by hand.
Please this thread is for BUGS
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 896
Posted: 11:33am 30 Sep 2024
Copy link to clipboard 
Print this post

Some errors picked up by the unit tests run on PicoMite RP2350A

1. ? MM.info(OPTION ANGLE) causes a reset.

2. MATH SD gives the wrong answer with test below but OK on 5.09 Beta6
  The test designed by Tom so assume its right i.e.
 ' Standard deviation of a sine wave is equal to the square root of 1/2
3. All other MATH tests pass.
--------------------------------------------------
Connected to: PicoMite RP2350A 6        tst_math.bas
 test_sd:                                           FAIL (1/1)
   1: Assert equals failed, expected 0.7071067812 but actually 0.7077983283

Const NUM_SAMPLES% = 512
Dim sin_amp1!(array.new%(NUM_SAMPLES%))
FOR i% = BASE% to NUM_SAMPLES% + BASE% - 1
   sin_amp1!(i%) = Sin(2 * Pi * (i% - BASE%) / NUM_SAMPLES%)
NEXT
Sub test_sd()
 ' Standard deviation of a sine wave is equal to the square root of 1/2 (0.707)
 assert_float_equals(Sqr(1/2), Math(SD sin_amp1!()), 1e-10)
End Sub
Latest F4 Latest H7
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4036
Posted: 11:44am 30 Sep 2024
Copy link to clipboard 
Print this post

  disco4now said  2. MATH SD gives the wrong answer with test below but OK on 5.09 Beta6
  The test designed by Tom so assume its right i.e.
 ' Standard deviation of a sine wave is equal to the square root of 1/2


In general just because I wrote it I wouldn't assume it's correct, however a quick google does suggest that it should be == sqr(0.5).

  disco4now said  3. All other MATH tests pass.


IIRC there isn't much coverage of MATH, and what there is, is thanks to @Volhout (and you ?)

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 896
Posted: 12:15pm 30 Sep 2024
Copy link to clipboard 
Print this post

Seems to be something funny with settick. The sub int1 is not called when
the following code is run. Works on 5.09 B6
> list
intcalled=0
SetTick 10,int1
Pause 20
Print intcalled

Sub int1
intcalled=1
SetTick 0,int1
End Sub

On 5.09 Beta6
> run
1
>
On 6.0 RC1
> run
0
>
Latest F4 Latest H7
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9105
Posted: 02:03pm 30 Sep 2024
Copy link to clipboard 
Print this post

The standard deviation change is whether to divide by N or N-1.
I made the change to the sample version which seems more logical in most uses. For example if I take n ADC readings then this is a sample of all the ADC readings I could take.
If you adjust your test you should get the same answer

I'll look at the settick issue but can't think why this might have changed. The test is odd with settick called inside an interrupt - what is the objective?

  Quote  Standard Deviation Formula

There are two formulas for standard deviation: one for population standard deviation and another for sample standard deviation.

Population Standard Deviation Formula σ (sigma) = √[(Σ(X - μ)²) / N]

where:

   σ (sigma) is the population standard deviation
   X is each data point
   μ (mu) is the population mean
   Σ (sigma) represents the sum of
   N is the population size

Sample Standard Deviation Formula

s = √[(Σ(X - x̄)²) / (n - 1)]

where:

   s is the sample standard deviation
   X is each data point
   x̄ (x-bar) is the sample mean
   Σ (sigma) represents the sum of
   n is the sample size

Note the difference between the two formulas: the population standard deviation formula uses N (population size) in the denominator, while the sample standard deviation formula uses n - 1 (degrees of freedom) in the denominator. This is because the sample standard deviation is an estimate of the population standard deviation, and the degrees of freedom account for the uncertainty in the estimate.
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4036
Posted: 02:57pm 30 Sep 2024
Copy link to clipboard 
Print this post

  matherp said  I'll look at the settick issue but can't think why this might have changed. The test is odd with settick called inside an interrupt - what is the objective?


*Might* be derived from my test suite.

SetTick 0, int1


The duration is 0 so this construction disables the interrupt after it has fired once. The second argument on this call is superfluous.

Best wishes,

Tom
Edited 2024-10-01 00:57 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9105
Posted: 04:07pm 30 Sep 2024
Copy link to clipboard 
Print this post

Gerry

The settick works for me - what version are you testing?

UPDATE

The option angle bug is a compiler error. If I change to a different version of the compiler or change the optimisation then it works - that's HORRIBLE
Edited 2024-10-01 02:19 by matherp
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9105
Posted: 04:57pm 30 Sep 2024
Copy link to clipboard 
Print this post

V6.00.00RC2 for the RP2350

PicoMiteRP2350V6.00.00RC2.zip

Circumvents a compiler bug causing MM.INFO(OPTION ANGLE) to crash

Adds support for bit 2 in the flag parameter for the SORT command when sorting strings. By default, empty string sorts first (normal sort) and last (reverse sort).
Setting bit 2 in the flag field reverses this: empty string sort last (normal sort) and first (reverse sort).

HDMI versions
OPTION WIDESCREEN is deprecated

OPTION RESOLUTION 640x480 or 1280x720 or 1024x768
or
OPTION RESOLUTION 640 or 1280 or 1024

Valid modes in each case are:

640x480
Mode 1: 640x480x2-colours with RGB555 tiles (use the TILE command as normal)
MODE 2: ' 320x240x16colours with 2 optional layers (no memory usage) and colour mapping to RGB555 palette
MODE 3:' 640x480x16 colours with optional layer (significant memory usage) and colour mapping to RGB555 palette
MODE 4: ' 320x240x32768 colours
MODE 5: ' 320x240x256 colours with optional layer (no memory usage) and colour mapping to RGB555 palette

1280x720
MODE 1: ' 1280x720x2-colours with RGB332 tiles (use the TILE command as normal)
MODE 2: ' 320x180x16colours with 2 optional layers (no memory usage) and colour mapping to RGB332 palette
MODE 3:' 640x360x16 colours with optional layer (significant memory usage) and colour mapping to RGB332 palette
MODE 5: ' 320x180x256 colours with optional layer (no memory usage)

1024x768
MODE 1 ' 1024x768x2-colours with RGB332 tiles (use the TILE command as normal)
MODE 2 ' 256x192x16colours with 2 optional layers (no memory usage) and colour mapping to RGB332 palette
MODE 3:' 512x384x16 colours with optional layer (significant memory usage) and colour mapping to RGB332 palette
MODE 5: ' 256x192x256 colours with optional layer (no memory usage)
 
Sasquatch

Guru

Joined: 08/05/2020
Location: United States
Posts: 362
Posted: 06:12pm 30 Sep 2024
Copy link to clipboard 
Print this post

I have tested the new 1024X modes on 7 different TV/Monitors from 13" to 55" and all of them sync perfectly to the new resolution!  I am using the Olimex HDMI board.

Just as a side note:  MM.Resolution or MM.INFO(Resolution) would be nice so programs could provide a warning to switch resolution if required.  I know, I know, always one more request!

PicoMiteHDMI MMBasic Version 6.00.00RC2
OPTION FLASH SIZE 4194304
OPTION KEYBOARD US
OPTION CPUSPEED (KHz) 324000
OPTION DISPLAY 32, 64
OPTION HDMI PINS  1, 3, 7, 5
OPTION RESOLUTION 1024x768
OPTION SDCARD GP22, GP6, GP7, GP4
OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5
OPTION MODBUFF ENABLE  192
OPTION PLATFORM OLIMEX
OPTION DEFAULT FONT 3, 1
-Carl
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2119
Posted: 08:29pm 30 Sep 2024
Copy link to clipboard 
Print this post

  Sasquatch said   I have tested the new 1024X modes on 7 different TV/Monitors from 13" to 55" and all of them sync perfectly to the new resolution!  I am using the Olimex HDMI board.

Just as a side note:  MM.Resolution or MM.INFO(Resolution) would be nice so programs could provide a warning to switch resolution if required.  I know, I know, always one more request!

PicoMiteHDMI MMBasic Version 6.00.00RC2
OPTION FLASH SIZE 4194304
OPTION KEYBOARD US
OPTION CPUSPEED (KHz) 324000
OPTION DISPLAY 32, 64
OPTION HDMI PINS  1, 3, 7, 5
OPTION RESOLUTION 1024x768
OPTION SDCARD GP22, GP6, GP7, GP4
OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5
OPTION MODBUFF ENABLE  192
OPTION PLATFORM OLIMEX
OPTION DEFAULT FONT 3, 1


lucky you :(  me,hdmi usb don't work and hdmi pico2 works then next flash doesn't.
rc2 same but vga usb did work. dodgy usb connectors maybe? don't assume it lasts forever
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2119
Posted: 08:48pm 30 Sep 2024
Copy link to clipboard 
Print this post

working non usb. what's new modes?
> option list
PicoMiteHDMI MMBasic Version 6.00.00RC2
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION CPUSPEED (KHz) 315000
OPTION HDMI PINS  1, 3, 7, 5
OPTION SDCARD GP22, GP6, GP7, GP4
OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5
OPTION MODBUFF ENABLE  192
OPTION PLATFORM OLIMEX

is it all significant memory usage so none left for frames
Edited 2024-10-01 07:12 by stanleyella
 
     Page 2 of 24    
Print this page
© JAQ Software 2024