- Posts: 19
Porting Deviation to F3/F4 MCU, new LCD, etc
- cody
- Offline
Thanks for the info!
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
github.com/notro/fbtft/blob/master/fb_ili9325.c
The register interpretation is in datasheet cdn-shop.adafruit.com/datasheets/ILI9325.pdf
Please Log in or Create an account to join the conversation.
- HappyHarry
- Offline
- Posts: 1136
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- cody
- Offline
- Posts: 19
This also looks ok, right?
eckstein-shop.de/24-Touchscreen-TFT-LCD-...1-Kompatibel-Arduino
It is hard to read but there are also 16 Data Pins.
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- anthony7288
- Offline
- Posts: 51
victzh wrote: Seems to be right display. Funny they publish the photo bottom up, probably for our exercise.
hey Victzh
Can we use that display , do not need to change code ? right ? it is compatible ?
Please Log in or Create an account to join the conversation.
- cody
- Offline
- Posts: 19
First I am trying to flash the devo8.elf to the board.
But it does not boot at all, it looks like the startup code is missing?
Do I need a bootloader and if so how do I flash it?
Or can I just set the right entry point address with the debugger?
On reset execution starts at 0x10100 which does not look right at all.
Or maybe my approach is totally wrong?
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
You have bin files with bootloaders for every Devo at www.deviationtx.com/downloads-new/catego...nsmitter-bootloaders . You need to flash it at 0x08000000, the very beginning of flash ROM.
Please Log in or Create an account to join the conversation.
- cody
- Offline
- Posts: 19
Is there no source code for the bootloader?
Thanks for your help!
Edit:
I started deviation at the reset_handler function which looks right.
It then goes to powerdown after checking for the reset switch.
If I skip that it seems to reboot because of missing display I guess.
So I am on the right track now!
Please Log in or Create an account to join the conversation.
- anthony7288
- Offline
- Posts: 51
my Kit stm32 connect USB ok , can see DEVO 7e on DFU WK . but i OLED not yet work .
OLED - STM32
CS -- B0
SDIN-- A7
SD0-- A6
DC -- A5 .
RESET donot connect
i wrong somewhere ? I test OLED ok with arduino , Oled is good
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- SadSack
- Offline
- Posts: 317
That's root I took using arduino. You need to be sure your deviation is running. You don't need to make any changes to code for oled to run. Once running then adjust.
Check code for connections. Don't rely on the wiki for the correct connections it may be wrong. Button matrix is wrong on wiki.
Connect everything ...
Button matrix
Flash
Oled
USB - if you hold enter on boot can check codes running.
Use bootloader.
I'll try and get to my eagle files.
Please Log in or Create an account to join the conversation.
- anthony7288
- Offline
- Posts: 51
can you help me a diagram correct for Oled ? , i only guess diagram on WIKI and connect , i read source code but can not see clearly . I m not coder .
DFU Wakera detected devo 7e ., i also can loaded file DFU 5.0.
Please Log in or Create an account to join the conversation.
- cody
- Offline
- Posts: 19
Does it rely on the bootloader to initialize the stack pointer?
Update: When manually setting the stack pointer I get to the point where disp_type is NULL because I have no display attached.
I think I have to connect those pins on the display:
VCC -> 3,3V
GND -> GND
DB[0-15] -> PD14, PD15, PD0, PD1, PE7, PE8, PE9, PE10, PE11, PE12, PE13, PE14, PE15, PD8, PD9, PD10
WR -> PD5
RD -> PD4
CS -> PD7
RS -> PD11??(alternate function FSMC_A16, dont know if that makes sense)
I am not sure for the RS pin, but it is the only one that is left.
Would be nice if anyone could comment, firs test did not work. disp_type is still NULL after Init().
Please Log in or Create an account to join the conversation.
- anthony7288
- Offline
- Posts: 51
Please Log in or Create an account to join the conversation.
- cody
- Offline
- Posts: 19
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- cody
- Offline
- Posts: 19
I can see this in the map file:
.text.ili9341_init
0x08005558 0x17c objs/devo8/ili9341.o
0x08005558 ili9341_init
I dont think I modified anything there.
Edit: I did not connect PE0 to REST like on the AT10 schematic. Also the LED(backlight?) connection on PE9 is missing.
I will have one more try during this week.
Edit: display detection returns no display or NULL. I cant remember.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Porting Deviation to F3/F4 MCU, new LCD, etc