[help needed] Connection problem with eBay board

Your chance to introduce yourself and to ask your first question
petersma
Posts: 12
Joined: Wed Jun 17, 2020 12:54 pm

Connection problem with eBay board

Post by petersma »

Hello, I'have built megasquirt (1st version) about ten years ago and use it in my track car. Now i'm intresting to update it. I have some programming skills with STM32F103 and F407 (and some other cpu's). I use chinenese demo cards https://github.com/mcauser/BLACK_F407ZE and thishttps://github.com/mcauser/MCUDEV_DEVEBOX_F407VGT6.
I'm Linux user and i write and debug code in Eclipse IDE.
I have download frankenso binary and put code to my little board. But I can't made connection to it. I tried connect to PC10/PC11 and USB with Linux and W7. PC10/PC11 pins work with my own test program and USB works fine too (DFU etc).
I tried many baud rates (9600, 38400,115200)

Have anybody ideas what goes wrong?

Sorry, my english and sorry I'm beginner in forums.
First program i wrote about 1980.

Board Facts
CPU: STM32F407VGT6
HSE: 8MHz
USB: direct to cpu

Used IO:
SPI Flash W25Q16 (U3)
PA15 F_CS
PB4 SPI1_MISO
PB5 SPI1_MOSI
PB3 SPI1_SCK

Micro SD (U5) (only connector)
PC10 SDIO_D2
PC11 SDIO_D3
PD2 SDIO_CMD
PC12 SDIO_SCK
PC8 SDIO_D0
PC9 SDIO_D1

User Button (K1)
PA0 WK_UP

User LED (D2)
PA1

Boot0 & Boot1 Pulled down with resistor
Last edited by petersma on Wed Jul 01, 2020 3:20 pm, edited 1 time in total.

User avatar
AndreyB
Site Admin
Posts: 10516
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: Connection problem with eBay board

Post by AndreyB »

I have no idea what could be wrong. Troubleshooting random boards is too much drama for us to be honest, please consider discovery407 to make things easier.

Also not clear what your own test program does.

Also to test you can simply telnet/putty into the board and hit send letter 't' - you are supposed to get human-readable text response to that text ping.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
AndreyB
Site Admin
Posts: 10516
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: Connection problem with eBay board

Post by AndreyB »

PS: see you on Slack, the is a small Russian room there

https://github.com/rusefi/rusefi/wiki/HOWTO_join_slack_channel
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

petersma
Posts: 12
Joined: Wed Jun 17, 2020 12:54 pm

Re: Connection problem with eBay board

Post by petersma »

I tried send 't' from minicom, but nothing return. Linux lsusb don't tell nothing. No contact at all to board.

My test program send several characters to UART4. Port PC10 is initialized for UART4 TXD. It also rear PC11 incoming data and echoes it back. All works fine. It tells that IO pins are OK.
Ther is no ChibiOS or monitor program. I'm not familiar with ChibiOS.

I have tested all RusEfi binarys that i find(for F407). All same result all times same: nothing.
Pin PC10 would seem to be high impedance mode when i have rusefi firmware.
Maybe some initialization hangs? ChibiOS ??

I'm trying also compile sources in eclipse, but project is in work. It needs many settings to go.

I have tested all RusEfi binarys that i find (for F407). All same result all times same: nothing.
Pin PC10 would seem to be high impedance mode when i have rusefi firmware.
Maybe some initialization hangs? ChibiOS ?? Is there some needs for IO to start?

I'm trying also compile sources in eclipse, but project is in work. It needs many settings to go.

My board is this https://github.com/mcauser/MCUDEV_DEVEBOX_F407VGT6.
Is the bigger flash (1MB) problem?
Is the extra SPI flash problem?
Must RTC battery be connected?
What is right baudrate for communication PC10/PC11? 115200 or 38400 or autobaud
Have all frankenso binaries communication with PC10/PC11? And is it on by default?

I can't understand what problem my board is. It have same oscillators frequencies that discovery and nothing special more than SPI flash.

I find some differences with my board and DiscoveryF407 (which has two versions). I must continue troubleshooting myself. My problem is that there are too many "moving parts" and I don't know how rusefi communication should work at all. I have some skills reverse engineering and embedded designing. But, I don't like use my time "dummy" work.

User avatar
AndreyB
Site Admin
Posts: 10516
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: Connection problem with eBay board

Post by AndreyB »

My bad - I've assumed that "test program" was "PC test program" not "stm32 test firmware". Sounds like you say that you have "stm32 test firmware" to validate hardware and hardware is known to work. Gotcha.

Please consider getting stm32f407 discovery to simplify your life.

I think extra SPI flash is not the problem here. I think RTC battery is not the problem here.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

OrchardPerformance
contributor
contributor
Posts: 198
Joined: Tue Jul 24, 2018 8:55 pm

Re: Connection problem with eBay board

Post by OrchardPerformance »

I think getting a stm32f407 discovery is probably going to be your best option.

While rusEFI might work with other STM chips there are so many variation that we just cannot be sure any chips other than the officially supported ones will work.

Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: Connection problem with eBay board

Post by Old Grey »

I looked into a simpler version of this type of board a while back, but gave up because it looked too hard. Now you've made me interested again ;)

I don't think I can help, but I watched some vids today and it looks like this might be shipped with the serial firmware, and to get the USB working you have to flash it with the USB firmware. Sounds like you've done that, but it doesn't communicate through the USB to the rusEFI console. There are lots of vids loading firmware into the Bluepill, and since they are STM32 it's probably the same. If you get it working I would be interested in knowing how :)

petersma
Posts: 12
Joined: Wed Jun 17, 2020 12:54 pm

Re: Connection problem with eBay board

Post by petersma »

Yes, I write test program/firmware which test board hardware.

I use different style programming. I have writen programs near "bare-metal" style, not for OS(like Chibios). Now I understand rusefi project mush better. I have compiled rusefi from git and it goes OK. Now I must learn myself to modify Chibios code.

I have some ideas why Chibios don't work. I think that problem is in usb cdc settings. There is switch "BOARD_OTG_NOVBUSSENS" what do something, but maybe not enough. Maybe pins PA10 and PA9 must initialize different way.

I make project with CubeMX and with some additions it works in my board. Linux recognise it and I can communicate both directions with Minicom terminal.
$ lsusb
Bus 001 Device 038: ID 0483:5740 STMicroelectronics STM32F407
$ ls /dev/ttyA*
/dev/ttyACM0
$ minicom -o -b460800 -8 -D/dev/ttyACM0

Now i have connected leds like discovery board. In the begining all lights on, but when some second are gone "error" led goes out. I think that it's Chibios error that hangs cpu.

I know now that my hardware works. Problem is in firmware.

My biggest problem is chibios. I can't understand it's hal-layer. Why all made own hal? I have used STM HAL and Standard Peripherial Library in my own projects.

I think that "Bluepill" need monitor program loading firmware, stm32duino have it (STM32duino-bootloader). STM32F4 have bootloader inbuild (DFU).
https://github.com/rogerclarkmelbourne/STM32duino-bootloader

User avatar
AndreyB
Site Admin
Posts: 10516
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: Connection problem with eBay board

Post by AndreyB »

petersma wrote:
Fri Jun 26, 2020 1:13 am
I have some ideas why Chibios don't work.
This statement is a red flag to me.

I am pretty sure that Chibios works fine. BOARD_OTG_NOVBUSSENS could be configured in rusEFI chibios settings in https://github.com/rusefi/rusefi/tree/master/firmware/config/stm32f4ems if your board requires non-default settings.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
AndreyB
Site Admin
Posts: 10516
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: Connection problem with eBay board

Post by AndreyB »

petersma wrote:
Fri Jun 26, 2020 1:13 am
I can't understand it's hal-layer. Why all made own hal? I have used STM HAL and Standard Peripherial Library in my own projects.
Because by using universal HAL we have same code running on Kinetis, stm32f4, stm32f7 & Cypress.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

petersma
Posts: 12
Joined: Wed Jun 17, 2020 12:54 pm

Re: Connection problem with eBay board

Post by petersma »

Sorry AndreyB
I say wrong. Maybe is right to say, that I can't run ChibiOS in my board. I'm little frustrated with it. Maybe ChibiOS don't like chinese boards or I don't know enough. But, i'm not the onlyone, with this same problem.

I say wrong also that I don't understand why ChibiOS have own HAL. I know reason, that you tell also. I'm little frustrated with it too.
ChibiOS run with several CPU:s, but little difference in the board stop it. This is my problem.

I respect your work, but I'm little frustrated with my problems. Sorry again.

All says that buy STM32F4-DISCOVERY board. They are simply right, but I don't do so (still???). It's my hobby to find problem and fix it. I'm learning a lot with it.

I like my chinese board because:
It is small
It is cheap (~10$)
It have SDIO in TFT socket (I have working code for it)
It have extra 2M Flash chip to store someting (I have not user it)
It have USB (Now, I have workin code for it)
It have OLED/TFT connector (I have working code and 1,44" TFT for it)
It have connector for ST-LinkV2 (I use it)

My megasquirt works fine, but I'm also intresting to test rusefi. I made my bolt-on ms all myself (home made pcb) and I put to it second prosessor (PIC18F252) to fix unknown distributor signal problem to ms. This is my style.

petersma
Posts: 12
Joined: Wed Jun 17, 2020 12:54 pm

Re: Connection problem with eBay board

Post by petersma »

Thanks
the link maybe https://github.com/rusefi/rusefi/tree/master/firmware/config/stm32f4ems helps me. I haven't know how to configure compilation. I compile with default settings. I try if I can configure better. I find the "BOARD_OTG_NOVBUSSENS" flag, but i don't know is it in work, in default settings. I don't know how I change board, car, etc in config. Is there somewhere any other help for configuration?

User avatar
AndreyB
Site Admin
Posts: 10516
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: Connection problem with eBay board

Post by AndreyB »

Just change files in https://github.com/rusefi/rusefi/tree/master/firmware/config/stm32f4ems and recompile with "make" without any special flags - resulting binary would be complied according to your changes.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

puff
contributor
contributor
Posts: 2812
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Connection problem with eBay board

Post by puff »

check the crystal frequency - it may be different

petersma
Posts: 12
Joined: Wed Jun 17, 2020 12:54 pm

Re: Connection problem with eBay board

Post by petersma »

Oscillator frequence is 8MHz. Same as STM32F4DISCOVERY (MB997) board
My board works with my own test program/firmware.

I can't find or understand documentation, that I need to do this project. Maybe only way do it, is buy all hardware like frankenso.

Maybe I build with my board datalogger, for my megasquirt ECU. It's very simple vs this.

All says that buy STM32F4-DISCOVERY board. They are simply right, maybe I'm idiot. This is too hard for me.

Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: Connection problem with eBay board

Post by Old Grey »

The Discovery uses the VG STM32F407VG, so that chip should be more compatible - I don't know about ZE, but the VE has less memory -.

NickZ got his running.

https://rusefi.com/forum/viewtopic.php?f=4&t=1498&start=30

User avatar
AndreyB
Site Admin
Posts: 10516
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: Connection problem with eBay board

Post by AndreyB »

NickZ wrote:
Mon Dec 23, 2019 8:39 am
The usb won't work without the PA9 to VCC, I think its to do with the bootloader looking for PA9 being high to enable Native USB through PA11 and PA12, even if you pull the power from PA9 the usb will disappear.
Is this part of the drama?
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: Connection problem with eBay board

Post by Old Grey »

I was watching Blue Pill bootloader vids last week and it comes with the serial bootloader, and if you want to use the USB you need to load the USB bootloader first. I assume these board are the same.

This is the old one.


This is the updated one.

petersma
Posts: 12
Joined: Wed Jun 17, 2020 12:54 pm

Re: Connection problem with eBay board

Post by petersma »

My board have STM32F407VGT6 chip. There is also same board versions with STM32F407VET6, STM32H750VBT6 and STM32H743VIT6 CPU.

If I made CubeMX project for STM32F4-DISCOVERY CubeMX generates:

Code: Select all

  /*Configure GPIO pin : OTG_FS_PowerSwitchOn_Pin */
  GPIO_InitStruct.Pin = OTG_FS_PowerSwitchOn_Pin;
  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  HAL_GPIO_Init(OTG_FS_PowerSwitchOn_GPIO_Port, &GPIO_InitStruct);

  /*Configure GPIO pin : VBUS_FS_Pin */
  GPIO_InitStruct.Pin = VBUS_FS_Pin;
  GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  HAL_GPIO_Init(VBUS_FS_GPIO_Port, &GPIO_InitStruct);

  /*Configure GPIO pins : OTG_FS_ID_Pin OTG_FS_DM_Pin OTG_FS_DP_Pin */
  GPIO_InitStruct.Pin = OTG_FS_ID_Pin|OTG_FS_DM_Pin|OTG_FS_DP_Pin;
  GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS;
  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

  /*Configure GPIO pin : OTG_FS_OverCurrent_Pin */
  GPIO_InitStruct.Pin = OTG_FS_OverCurrent_Pin;
  GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  GPIO_InitStruct.Pull = GPIO_NOPULL;
  HAL_GPIO_Init(OTG_FS_OverCurrent_GPIO_Port, &GPIO_InitStruct);

/*
From schematic (MB997.pdf) (if I understand right)
PA10     ------> OTG_FS_ID_Pin  (in, read OTG mode selection from Mini USB connector)
PA11     ------> OTG_FS_DM_Pin
PA12     ------> OTG_FS_DP_Pin
PA9      ------> OTG_FS_OverCurrent_Pin (in, read state of STMPS2141STR)
PC0      ------> OTG_FS_PowerSwitchOn_Pin (out, controls STMPS2141STR)
*/
If I made project for my board CubeMX generates:

Code: Select all

    /**USB_OTG_FS GPIO Configuration    
    PA11     ------> USB_OTG_FS_DM
    PA12     ------> USB_OTG_FS_DP 
    */
    GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12;
    GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
    GPIO_InitStruct.Pull = GPIO_NOPULL;
    GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
    GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS;
    HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
My project work's ok and don't need any connection for pins: PA9, PA10, PC0 or PD5
I read from somewhere, that if you don't configure PA9 pin, program reads it state as High.

Removing PA9 configuration chibios/rusefi code maybe help, but I can't find the place where it's done.
PA9, PA10 are PC0 not needed with my board. STM32F4-DISCOVERY use them with STMPS2141STR chip.

I have tried connect +5V to PA9 with rusefi firmware, but it don't help.

I must read NickZ case better. Thank for link. I have read lot, but maybe enought.
Last edited by petersma on Wed Jul 01, 2020 3:16 pm, edited 1 time in total.

NickZ
Posts: 30
Joined: Sun Sep 01, 2019 9:44 pm

Re: Connection problem with eBay board

Post by NickZ »

Im running Rusefi and Speeduino on my STM32 F407VGT6 Boards. Native USB has been fine. Im loading the firmware on a fresh chip with SWD with a ST-Link V2 and once the firmware is installed then USB can be use.
PA9 is connected to VCC.
PA9 should be connected to 3.3v not 5v to be safe.
STM32F407 Module.jpg
STM32F407 Module.jpg (331.87 KiB) Viewed 298 times

Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: Connection problem with eBay board

Post by Old Grey »

Hey NickZ, did you get the little boards running.
Image

And what bootloader did you use to flash it to get the USB working.

NickZ
Posts: 30
Joined: Sun Sep 01, 2019 9:44 pm

Re: Connection problem with eBay board

Post by NickZ »

Yes i did get that board to run, PA11,PA12 usb and PA9 to VCC, I used the Serial to upload the firmware. I didn't use a bootloader.
Image

Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: Connection problem with eBay board

Post by Old Grey »

It must be the same bootloader as you are using to get native USB on your custom board because it's the same STM32F407VG chip on all the boards. Sorry for not looking into it - when you are old confusion is demotivating :? - but where did you get the bootloader from.

Thanks

petersma
Posts: 12
Joined: Wed Jun 17, 2020 12:54 pm

Re: Connection problem with eBay board

Post by petersma »

I have none bootloader except inbuild STM DFU bootloader. I upload firmware "rusefi.dfu", with linux dfu-util program. Or I upload "rusefi.bin" with openOCD/telnet connection using ST-LinkV2 chinese clone. I don't know have I right version of rusefi firmware and I don't know must I have some bootloader. I think that bootloader is included in "rusefi.dfu".

I don't know:
Which version of rusefi firmware is best for my HW?
Needs ChibiOS something requirements for STM32F407VGT6 REVID or DEVID ?

Code: Select all

	sprintf(Buf, "REVID: %u DEVID: %u\r\n",  HAL_GetREVID(), HAL_GetDEVID());
	CDC_Transmit_FS(Buf, strlen(Buf));
I know that:
My board have working USB
My Linux computer finds my board USB with my own firmware and I can send and reveive with it.
My Linux computer don't find my board USB with some version of rusefi firmware.
I can't communicate with UART (PC11&PC10) with my board with rusefi firmware.

Maybe I jump out of my dummy loop and lift hands up?
I have worked with STM32 some projects, but that I can't understand. Maybe problem is small and dummy.
With ChibiOS I'm not familiar. I write near bare-metal programs.

To NickZ:
Can you send me your working version of rusefi firmware if I send you email? (rusefi.dfu, rusefi.bin, rusefi.hex or rusefi.elf)
Maybe this is my last chance, I have worked too much with this problem and have no ideas more.

User avatar
AndreyB
Site Admin
Posts: 10516
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: Connection problem with eBay board

Post by AndreyB »

Most or all bootloader talk here is a misunderstanding. I would suggest to not talk or think about bootloader going forward since it is completely not relevant.

I would suggest that you try to get some ChibiOS demo applications working before trying to deal with rusEFI+ChibiOS combinations.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

NickZ
Posts: 30
Joined: Sun Sep 01, 2019 9:44 pm

Re: Connection problem with eBay board

Post by NickZ »

ok, im using the Rusefi file rusefi.bin from the "snapshot_20200629_205450_mre-f4_rusefi.zip" file for the STM32F407, using SWD STLINK V2. and i'm doing nothing else. it will run using the USB to the rusefi console. There is no need for a bootloader and im using new blank chips.

Old Grey
contributor
contributor
Posts: 85
Joined: Thu Apr 07, 2016 10:20 pm
Location: AUS Sydney 2200

Re: Connection problem with eBay board

Post by Old Grey »

NickZ wrote:
Tue Jun 30, 2020 7:58 am
i'm doing nothing else. it will run using the USB to the rusefi console. There is no need for a bootloader and im using new blank chips.
Ahh, I was under the impression you needed the USB BL to talk to TS - I guess when you don't know anything you say the wrong thing -. So just load rus with the STLINK V2 and Bob's your uncle.

For me using the programmer is a bit too much, like disassembling my ECU and connecting the programmer each time I want to update is a deal breaker - USB plug from the outside is mandatory for me -. I was hoping to get a decent STM32 with a price point to match the MEGA2560 - my ebay STM32 board was $13 -, but even this board is $25 down here, which is getting up to the DISC that's nearly $40 thesedays.

Hope you get it sorted.

mck1117
running engine in first post
running engine in first post
Posts: 450
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: Connection problem with eBay board

Post by mck1117 »

There are two bootloaders, and you guys are conflating them.

1. Bootloader in mask ROM installed by ST at the factory, we can't change this one. This is what we normally use for firmware upgrade over USB.
2. Custom bootloader in flash, installed along with firmware.

No standard bundle has #2 included. All STM32 chips include #1.

petersma
Posts: 12
Joined: Wed Jun 17, 2020 12:54 pm

Re: Connection problem with eBay board

Post by petersma »

I upload firmware from "rusefi_bundle_mre-f4_20200629_205450.zip" to my board.
No connection.

I upload firmware from "rusefi_bundle_mre-f4_20200629_205450.zip" to my bigger BLACK_VET6 board.
Connection works fine with USB without any other wiring.

I upload firmware from "rusefi_bundle_mre-f4_20200629_205450.zip" to 2nd smaller board.
Connection works fine with USB without any other wiring.

Two smaller boards only difference is text in CPU.
1st have text:
STM32F407
VGT6
AA019 VQ
TWN AA 941 2

2nd have text:
STM32F407
VGT6
9908M VQ
MYS 99 925 2

Maybe 1st have made in Taiwan (TWN).

Bigger board have text:
STM32F407
VET6 Y
7B448 VG
PHL 78 726
Maybe this is made in Philippines (PHL).

USB connection with Tuner Studio work also in both working boards.

It's big mystery why my 1st board don't like ChibiOS/RusEFI. All my own programs/firmwares works fine in it.
Now I know that I have done all right, but there is some problem in my 1st board. I have wasted time many hours with this.

Thanks for everyone that tries help me.
Last edited by petersma on Wed Jul 01, 2020 3:23 pm, edited 1 time in total.

puff
contributor
contributor
Posts: 2812
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Connection problem with eBay board

Post by puff »

have you checked errata?
https://www.st.com/resource/en/errata_sheet/dm00037591-stm32f405-407xx-and-stm32f415-417xx-device-limitations-stmicroelectronics.pdf
The REV_ID bits in the DBGMCU_IDCODE register show the revision code of the device (see the STM32F40x and STM32F41x reference manual for details on how to find the revision code)

Post Reply