Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:05 09 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 2 of 13    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10064
Posted: 04:44pm 18 Sep 2018
Copy link to clipboard 
Print this post

  Quote  do you think that this function will be installed? or never ?


Never (by me at least). That is why I included the header for an ESP-01 (ESP8266) on the backpack.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9483
Posted: 07:57am 22 Sep 2018
Copy link to clipboard 
Print this post

Pete - in your latest manual for this, page 6, it mentions I need to download ST-LINK, but the link is dead in the PDF. It is blue like a link, but it links nowhere.

I went to the ST site, but there are about five or six "ST-LINK" softwares to choose from. I assume I need the one that is labelled ST-LINK004?
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10064
Posted: 08:54am 22 Sep 2018
Copy link to clipboard 
Print this post

  Quote  but the link is dead in the PDF


Shouldn't be a link as the page may move, I'll fix in next version.

  Quote  I assume I need the one that is labelled ST-LINK004?


Correct
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9483
Posted: 09:18am 22 Sep 2018
Copy link to clipboard 
Print this post

Cool, thanks. Downloaded. Awaiting NUCLEO board.
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6219
Posted: 04:45am 23 Sep 2018
Copy link to clipboard 
Print this post

I just tried setting up my laptop with ST-LINK and a new, straight from the box NUCLEO board.
There was no previous ST software or drivers on the laptop so virgin territory.

It was easy.

Download STM32 ST-LINK Utility (en.stsw-link004.zip)
Extract the setup file and run it.
It will install the required drivers during the setup.
Start ST-link
Plug in the Nucleo board.
It works out-of-the-box without touching any jumpers.
Ignore the Windows ‘What will I do now?’ message.
Click on ‘Target/Connect’
It is advisable to do a full erase
Target/Erase Chip
Go to ‘File/Open file’ and open the armite.hex firmware file.

Go to ‘Target/Program and Verify’
When that's done.
‘Target/disconnect’
Close the program and open up your preferred terminal program.

You might get some initial garbage in the serial stream.
It’s really that simple.

IF you have more than one device connected, you can chose which one in the settings menu. It would be a good idea to stick with one at a time. The serial numbers aren't written on the devices anywhere.

External power will be required once you start adding displays etc.

Jim
Edited by TassyJim 2018-09-24
VK7JH
MMedit
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1828
Posted: 06:23am 23 Sep 2018
Copy link to clipboard 
Print this post

Just started reading the Manual in my preparation to drive into this board.

I notice that on page 8 of the latest manual that DB0 and DB1 are both listed as Pin-141 and DB10 and DB11 at Pin-64?

Should DB1 = Pin-142 and PE10 = Pin-63?

DB0 Pin-141 (PE0) DB8 Pin-59 (PE8) WR Pin-125 (PG10)
DB1 Pin-141 (PE1) DB9 Pin-60 (PE9) RS Pin-57 (PG11)
DB2 Pin-1 (PE2) DB10 Pin-64 (PE10) RESET Pin-127 (PG12)
DB3 Pin-2 (PE3) DB11 Pin-64 (PE11) RD Pin-128 (PG13) *

Or have I misunderstood something?
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
TassyJim

Guru

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

You are correct.
There is an error on page 6 of the manual.
The table in the manual with all the pins listed is correct.

Jim
VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9483
Posted: 07:31am 23 Sep 2018
Copy link to clipboard 
Print this post

Thanks for the step-by-step, Jim. I have ordered my board, and have installed the software. Just need to wait a few days for it(the board) to arrive from Element-14.
Smoke makes things work. When the smoke gets out, it stops!
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 08:11am 23 Sep 2018
Copy link to clipboard 
Print this post

Just followed Jim's helpful 'step-by-step' only to find STLink won't run on MacOS

QUESTION 1: Does anyone know if there a version of STLink-004 (or equivalent) that runs on MacOS?


My decent Windows 10 laptop recently failed (SSD drive became too worn out). So for the minimal work I currently do with Windows (MMEdit and Pic32Prog) I re-instated an old Vista Laptop.

QUESTION 2: Does anyone know if STLink successfully works with Vista; or do I finally need to go out and by another Windows laptop?

WW
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10064
Posted: 09:12am 23 Sep 2018
Copy link to clipboard 
Print this post

  Quote  or do I finally need to go out and by another Windows laptop?


Buy a second hand quality desktop - 10x the bang for your buck

e.g. picked at random
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 09:17am 23 Sep 2018
Copy link to clipboard 
Print this post

Good call Peter!
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 04:23pm 23 Sep 2018
Copy link to clipboard 
Print this post

Please can someone let me know the physical size of the Nucleo STM32H743ZI module (including height!)

I have searched on all data sheets but have not seen it anywhere (yet).

Thanks.

WW
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10064
Posted: 04:47pm 23 Sep 2018
Copy link to clipboard 
Print this post

Page 14 of UM1974 "User Manual STM32 Nucleo-144 boards"

width 70mm
length 133.4mm

height - depend on headers fitted but not less than 19mm as supplied
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9483
Posted: 12:04am 25 Sep 2018
Copy link to clipboard 
Print this post

[Quote=TassyJim]It’s really that simple.[/Quote]

Yes, it really is.

Dead easy to program and get working. I now have a new toy to play with.




Smoke makes things work. When the smoke gets out, it stops!
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1828
Posted: 01:40am 25 Sep 2018
Copy link to clipboard 
Print this post

Hi all, also just got mine going - arrived about 20 minutes ago. Also removed the suggested links in Peters manual after looking up what each one did, it all makes sense now.

Only problem I had was when it was first plugged in one of the information lines said "debug in low power mode enabled", while I was reading what to do next it disconnected with a message to open Target - Settings and click "Debug in low power mode" That deselected low power debug, powered up again and it didn't disconnect this time, and the line had changed to something like debug normal mode? Thoughts

As Groster said of TassyJims quote - It really is that simple.

Now to connect a 7" display, external power and select some I/O ports for my program and see if it will run (after removing 2 or 3 things from the program that are not applicable to this MM.Basic version and processor.

Thanks to all for making this simple.

Mike

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

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1828
Posted: 02:06am 25 Sep 2018
Copy link to clipboard 
Print this post

I have a question about LD4, it stays red for quite some time before turning green.

This causes the link to between MM.edit and the board to drop when it changes. I reconnect MM.edit and it communicates again and stays that way until next power up.

Red LED on: when the initialization between the PC and ST-LINK/V2-1 is complete
Green LED on: after a successful target communication initialization.

Although the above is talking about ST-LINK, I am of course now using a terminal program after successfully programming the chip.

1: Is this normal? anyone else seeing this?
2: Should I start another thread so as not to get this one on of topic.

Mike.


EDIT

I bought two of these as I got free overnight delivery if spending above $50, calculated the second one would only be around $22.00 if bought two.

Anyway this looks normal, the 2nd unit straight out of the box, plugged in, preloaded demo has flashing red user led, pressed user button to cycle to blue led, waited for the COM led to go green, when it does the thing resets and the user program restarts with the red user led flashing.

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

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1828
Posted: 04:59am 25 Sep 2018
Copy link to clipboard 
Print this post

I was just playing around to make sure I was configuring ports correctly and reading pin assignments correctly. I had a short test program reading the blue user button and driving the 3 user LEDS. I made the mistake of setting option autorun on, there was absolutely no way to break out of the small test program. Had to reflash.


Now after reprogramming the chip, (verify while programming) something has changed.


Option default none
Option explicit

option autorun on

SETPIN 7,INTH,EXITINT ' user button
SetPin 137,dout ' Blue LED
SetPin 75,dout ' Red LED
SetPin 46,dout ' Green LED

Do
Pin(46) = 1
Pause 200
Pin(137) = 1
Pause 200
Pin(75) = 1
Pause 200

Pin(46)= 0
Pause 200
Pin(137) = 0
Pause 200
Pin(75) = 0
Loop

SUB EXITINT
Pin(46)= 0
Pin(137) = 0
Pin(75) = 0
END
END SUB



If I enable autorun then the program fails on reset with an error:

SetPin 7,INTH,EXITINT
Error: Cannot find label

However if I type run, it works perfectly? surely I'm doing something stupid, can someone enlighten me (I'm not well) that's my excuse.

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

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9483
Posted: 05:33am 25 Sep 2018
Copy link to clipboard 
Print this post

OPTION AUTORUN ON is normally only run at the command prompt - unless the ARM-mite is different here....

I've just tried your code, and I get the exact same error.

If I RUN the code from the console, I get three pretty LED lights.

Smoke makes things work. When the smoke gets out, it stops!
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1828
Posted: 05:42am 25 Sep 2018
Copy link to clipboard 
Print this post

Having autorun there was my mistake, I forgot to take it out of the listing.

Thanks for trying that - I also tried it on the MM 100 (different pins) and it works as it should. Like I said, it was just a quick play around and I didn't expect this?

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

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6219
Posted: 05:46am 25 Sep 2018
Copy link to clipboard 
Print this post

From the manual
  Quote  Resetting the chip and options
The chip can be reset to “just-programmed” state by connecting pin 7 to VDD whilst resetting the chip
by grounding the RESET pin.

This should let you recover from a rouge autorun.


I expect that using pin 7 on autorun is confusing the reset code.
To test, you could put a big pause at the start of your program.

Jim
VK7JH
MMedit
 
     Page 2 of 13    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025