Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:57 15 May 2025 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 : Armmite H7: Full release & documentation

     Page 6 of 13    
Author Message
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1837
Posted: 08:33am 27 Sep 2018
Copy link to clipboard 
Print this post

Yes I realise that, but Peter had a working unit with those links still in place, obviously I've removed them as mine does not receive with them in.

As peter replied in a previous post.

  matherp said  
  Quote  Does the console output get "cloned" to PD8/9 by the firmware or are they taken to the ST-Link board on the nucleo?


They are the console connections - you can remove SB5 and SB6 if you wish which disconnects them completely from ST-LINK but a USB/UART seems to work fine with the USB unplugged


Edited by KeepIS 2018-09-28
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1837
Posted: 09:41am 27 Sep 2018
Copy link to clipboard 
Print this post

Well nothing I do can get the SD card reader to work, (see a few posts back) I even declared a CD line and tried it hi and lo, same error "no SD card present" when I type Files.

If I'm up to it tomorrow I may try hooking up the SD slot on an LCD and see if that will work. I'm not going to try hooking up the LCD until I get an SD card reader to work.

NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10078
Posted: 11:56am 27 Sep 2018
Copy link to clipboard 
Print this post

  Quote  Well nothing I do can get the SD card reader to work


If you can post a detailed picture or two perhaps someone can see what the issue is. By far the easiest is to get hold of one of the backpacks (V1.2 or 1,3) which have an onboard SDcard slot. I know someone had a surplus of V1.2 PCBs - check the backpack thread.Edited by matherp 2018-09-28
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1837
Posted: 10:56pm 27 Sep 2018
Copy link to clipboard 
Print this post

  matherp said  
  Quote  Well nothing I do can get the SD card reader to work


If you can post a detailed picture or two perhaps someone can see what the issue is. By far the easiest is to get hold of one of the backpacks (V1.2 or 1,3) which have an onboard SDcard slot. I know someone had a surplus of V1.2 PCBs - check the backpack thread.


Hi thanks for the suggestion, but I used to design, prototype, program and repair industrial electronics, the testing I have done is to check for a clock, check the CS line I selected is being transitioned and the other pins are as per the manual, all are as they should be.

I just swapped the 4 control lines from the Arduino SD reader to the card reader pins on the 7" LCD, along with 3v3 and GND.

Result - it works - So the Arduino SD reader does not want to work or is faulty.

I'm wondering if the simple series current limit resistors they use in the Arduino SD reader to allow it to interface to either 5v or 3v3 I/O pins is the problem. There is a 5v to 3v3 regulator that is selected depending on the voltage input pin used (5v or 3v3). Not the greatest design.

Anyway, now that I've got the SD interface working I'll connect the LCD - I find one step at a time is easiest to fault find on a new system using patch cables.

And yes, I had already enquired about getting the latest version of the backpack board.

Thanks again.

NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
Bill7300
Senior Member

Joined: 05/08/2014
Location: Australia
Posts: 159
Posted: 12:06am 29 Sep 2018
Copy link to clipboard 
Print this post

I should have some spare Back Pack 1.3 boards here in Oz soon, assuming JLCPCB doesn't find any more "niggles". Somehow my Zip client refused to zip all of Peter's files, which I had needlessly unzipped when I downloaded them. JLCPCB only take zipped files, so I had to reverse that process. On my first two attempts, the drill files were missing. Third time lucky, hopefully, as the JLCPCB page now shows them "in production".

They will be $6 each, plus postage. Ordered 10, will keep 3, so 7 available.

Bill
Bill
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 01:17am 29 Sep 2018
Copy link to clipboard 
Print this post

Hi TassyJim

I come back

  TassyJim said  
I easily downloaded an image file with 1801 blocks to my armite SDcard.
I haven't tried loading a big program file direct into memory.

Can you give me a copy of the file you are having trouble with and I will have a look.

Jim


Before completing my problem, I wanted to check more precisely. I tested with other programs, always the same. then I tested with or without loading fonts: always the same.
I tested with version 3.7.0 and 3.7.3: always the same

the problem does not exist with a micromite+ that can load 1049 blocks (but with a message "not enough memory", which is normal)

here is an example of a program that cannot load completely and that bug all from block 767 (it is the "Weather station" exemple with 1 font loading)

2018-09-29_111427_test_chg1.zip Edited by goc30 2018-09-30
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6224
Posted: 02:00am 29 Sep 2018
Copy link to clipboard 
Print this post

goc30,
How are you loading the file? Are you using 'load and run' or the file manager?
If you are loading it into memory, you can also do a 'LOAD' from the chat window. This uses AUTOSAVE instead of XMODEM.

I tried loading your program onto my armite and it got past the 767 block point OK
There was a problem when the armite tried to save it:
Sending #770 / 772
Sending #771 / 772
Sending #772 / 772
File transfer completed.


All Done!

Saving program
[926] 27BDFFE8 AFBF0014 AFB00010 3C109D00 8C830000 8E020090 24050008&nbs p;00003021
Error: Invalid hex word
>


Your code has HTML code in the cfunctions. That would really annoy the armite (and any other micromite)

Try this MMedit.tkn file. It is a bit newer than the ones you are using but I don't think it will make any difference.
2018-09-29_115507_MMedit.zip
Replace the TKN file in the MMEdit program folder.

Jim
VK7JH
MMedit
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1837
Posted: 02:01am 29 Sep 2018
Copy link to clipboard 
Print this post

  Bill7300 said   I should have some spare Back Pack 1.3 boards here in Oz soon, assuming JLCPCB doesn't find any more "niggles". Somehow my Zip client refused to zip all of Peter's files, which I had needlessly unzipped when I downloaded them. JLCPCB only take zipped files, so I had to reverse that process. On my first two attempts, the drill files were missing. Third time lucky, hopefully, as the JLCPCB page now shows them "in production".

They will be $6 each, plus postage. Ordered 10, will keep 3, so 7 available.

Bill


PM sent.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1837
Posted: 02:04am 29 Sep 2018
Copy link to clipboard 
Print this post

Can anyone tell me what pins are used for T_IRQ and T_CS on the v1.3 backpack boards?

They are listed as configurable in the manual, I assume they are set for the backpack boards?

Mike.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6224
Posted: 02:52am 29 Sep 2018
Copy link to clipboard 
Print this post

My version 1.0 board has
OPTION TOUCH 56, 123
I expect the later boards are the same.

Jim

Edit: it will depend on the display you are using.


Edited by TassyJim 2018-09-30
VK7JH
MMedit
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1837
Posted: 03:15am 29 Sep 2018
Copy link to clipboard 
Print this post

Oh, well I'm using the SSD1963 LCD Panels. I'll just pick two for now and change them when I get the board.

Thanks

Mike
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 08:46am 29 Sep 2018
Copy link to clipboard 
Print this post

Hi Jim

  TassyJim said   goc30,
How are you loading the file? Are you using 'load and run' or the file manager?
If you are loading it into memory, you can also do a 'LOAD' from the chat window. This uses AUTOSAVE instead of XMODEM.

I tried loading your program onto my armite and it got past the 767 block point OK
There was a problem when the armite tried to save it:

Yes I use button "load and run" in mmedit menu
If I use "load" function in mmbasic (load "test_chg1"), it say "not enough memory"

  TassyJim said  

Try this MMedit.tkn file. It is a bit newer than the ones you are using but I don't think it will make any difference.

Jim


I have tested your new version, it is same problem

  TassyJim said  
Your code has HTML code in the cfunctions. That would really annoy the armite (and any other micromite)

Jim


programm is not important. I have same bug with my programme who has not Cfunction
As I said you, I can't load prog. If i delete downloads fonts, it load and after work correctly

I put here my screen save. You can see that the ultime block is "loaded" many times befor it stop
2018-09-29_183424_screen_mmedit.zip
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10078
Posted: 10:00am 29 Sep 2018
Copy link to clipboard 
Print this post

Try setting OPTION FLASHPAGES to 2
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 435
Posted: 07:31pm 29 Sep 2018
Copy link to clipboard 
Print this post

  matherp said   Try setting OPTION FLASHPAGES to 2

it is one of the first things I have tested, and it is same

here you can see my teraterm screen



I begin to understand the problem
1 - ram memory free is 98k. That mean that you can't load file more than 98k byte long (have-you an other way to load??)
2 - option flash change only flash memory not ram
3 - when you write "98k" that mean 98 x 1024 byte (100352 bytes), but file 98774 bytes can't be loaded, why?? Edited by goc30 2018-10-01
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1837
Posted: 11:55pm 29 Sep 2018
Copy link to clipboard 
Print this post

Am I correct in assuming that all I need to do to use the SSD1936 7" display and its SD card are:

OPTION SD 87
OPTION LCDPANEL SSD1963_7A,L
OPTION TOUCH 56, 123

The SD card works perfectly, however I have no display. BTW Console USB is working perfectly.

Option list confirms my settings.

Powering the LCD back-light 5v line directly from a 5v 1A supply, same supply in powering the board VIA E5V, yes correct link is selected.

If the OPTION is correct I'll start going back over the connections.

There is one connection on the LCD panel that I can't I can't identify, it's labelled as f_CS or r_CS, it's directly above the pin labelled CS. I'm trying to run the LCD in 8 bit mode and only have D0 to D7 connected.

Mike.

EDIT Looks like that r_CS pin is connected to the red led in the Micromite Plus, so likely not needed.
Edited by KeepIS 2018-10-01
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1837
Posted: 01:54am 30 Sep 2018
Copy link to clipboard 
Print this post

I checked every pin again, checked for Data, WR, RS, CS and IRQ signals and all were there and working correctly, as a last resort I rechecked the backlight links, there was a cats whisker solder join from where I had removed the 0 ohm resistor to the pin above for LCD controlled backlight

Everything now works except the calibration is out X = -5, Y = -42 pixels?

GUI controls work though but are out by 42 pixels.
Edited by KeepIS 2018-10-01
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1837
Posted: 05:59am 30 Sep 2018
Copy link to clipboard 
Print this post

Perhaps someone here can answer this, nothing I do will allow Calibrate without errors. BTW the 7" LCD calibrates perfectly on the MM plus.

I tried GUI TEST TOUCH, instead of a dot where you touch the screen or a line when you draw, there are random blobs in various directions depending on where you touch, almost looks like noise is being injected into the touch data output?

NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6224
Posted: 06:56am 30 Sep 2018
Copy link to clipboard 
Print this post

You used SSD1963_7A
perhaps try SSD1963_7

Although I expect that touch is separate from the display routines.
Make sure that you haven't clamped the edges of the display when mounting it.

Jim

VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6224
Posted: 07:07am 30 Sep 2018
Copy link to clipboard 
Print this post

@goc30
I see that you are using
OPTION LCDPANEL
SSD1963_5_BUFF

That is where your memory has gone to.
  Quote  Selects 16-bit bus operation of the 5” and 7” SSD1963 displays
using a memory framebuffer for improved performance. This
uses 400K of memory leaving 98K for user programs


Without the video buffer
> LOAD "temp.bas"
Error: Not enough memory for Cfunction
> option flashpages 2
> LOAD "temp.bas"
> memory
Flash:
136K (35%) Program (3992 lines)
248K (65%) Free

RAM:
0K ( 0%) 0 Variables
0K ( 0%) General
498K (100%) Free
>

Plenty of flash and RAM available and a large program loaded without any problems.

Jim
VK7JH
MMedit
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10078
Posted: 07:40am 30 Sep 2018
Copy link to clipboard 
Print this post

  Quote  I begin to understand the problem
1 - ram memory free is 98k. That mean that you can't load file more than 98k byte long (have-you an other way to load??)
2 - option flash change only flash memory not ram
3 - when you write "98k" that mean 98 x 1024 byte (100352 bytes), but file 98774 bytes can't be loaded, why??


As Jim says the issue is the driver you are using. Unless you specifically need the buffered driver use SSD1963_n_16

If you really need this driver then disable it, load the program and then re-enable it. That way all the RAM will be available for program load.

The code reserves some RAM for housekeeeping so you can never use all the RAM available during program load

  Quote  Perhaps someone here can answer this, nothing I do will allow Calibrate without errors.


The code for calibration is identical for all the displays but I also find that the 7" display is much noisier and more difficult to calibrate accurately - the 5" display works perfectly every time. The 7" display uses a lot of power and has two onboard switching regulators so I suspect that it is inducing electrical noise and that for some reason the STM is more susceptible to this than the PIC. I've already put in additional checks into the calibration as someone else was having problems but I don't think the answer is in software.
 
     Page 6 of 13    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025