Comments (7)
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
from mmdvm_pog.
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.
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.
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.
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmdvm_pog.