Giter Club home page Giter Club logo

Comments (7)

wojciechk8 avatar wojciechk8 commented on August 17, 2024

Yes, I did it because previously I forgot to check which USART pins can be used to communicate with internal bootloader. Later it turned out that PA2, PA3 (USART2) couldn't be used for this purpose, so I changed them to PA9, PA10 (USART1). I suspect that you've changed only pins configuration in the IOSTM_CMSIS.cpp, but it's also required to change the actual USART in the SerialSTM_CMSIS.cpp. I've already done it and I'm attaching this file, but I haven't tested it yet. After I check if it works, I will do a pull request to the main MMDVM repository (now I'm waiting for ordered PCBs).

Regards
Wojciech

USART1_fix.zip

from mmdvm_pog.

N4IRS avatar N4IRS commented on August 17, 2024

Wojciech,
You are correct, I did try changing the pin numbers, but realized that the USART needed to be change. I just tried your changes. MMDVMHost still can not communicate with the processor. I am out of time for the next few days. When I get back I'll work with you to test and refine what is needed. Thank you again for your help.

73, Steve N4IRS

from mmdvm_pog.

N4IRS avatar N4IRS commented on August 17, 2024

Wojciech,
I put the CPU in BOOT_0 and reset the CPU. This is the result I get.
Interface serial_posix: 57600 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0418 (STM32F105xx/F107xx)
RAM : 64KiB (4096b reserved by bootloader)
Flash : 256KiB (size first sector: 2x2048)
Option RAM : 16b
System RAM : 18KiB

No doubt I can talk to the CPU via the USART in boot mode. I applied the code changes you posted. The compile but MMDVMHost can not communicate with the modem.
73, Steve N4IRS

from mmdvm_pog.

wojciechk8 avatar wojciechk8 commented on August 17, 2024

Steve,
Maybe I missed something in USART configuration, I checked the firmware only with the previous PCB revision (on USART2). Now I have the new PCB, but the parts will arrive next week and then I'll test it and commit a fix.

Regards
Wojciech

from mmdvm_pog.

wojciechk8 avatar wojciechk8 commented on August 17, 2024

Hi Steve,
I managed to run the firmware. There was a mistake in USART2Init function.
Instead of:

RCC->APB1ENR |= RCC_APB1ENR_USART2EN;
USART2->BRR = USART_BRR(36000000UL, speed);

it should be:

RCC->APB2ENR |= RCC_APB2ENR_USART1EN;
USART1->BRR = USART_BRR(72000000UL, speed);

I've already done a pull request to the main repository, so you should be able to pull the corrected code from there soon. Please check this on your hardware and tell me if there are any problems.

Regards
Wojciech

from mmdvm_pog.

N4IRS avatar N4IRS commented on August 17, 2024

Wojciech,
I applied your patches and I can now communicate with the MMDVM via the USART. Thanks! I will start testing using it with a radio in DMO this weekend. THANKS!
Steve

from mmdvm_pog.

wojciechk8 avatar wojciechk8 commented on August 17, 2024

That's great!
I've just finished assembling 10 boards.
Paweł SQ6POG had tested them in duplex mode with Motorola GM340/350/950 and it worked great.

73 and good luck
Wojciech

from mmdvm_pog.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.