BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - scoprioprise

Pages: [1]
1
New Member Introductions / Re: Hi all
« on: December 09, 2020, 09:37:35 AM »
Hi Barracuda01,
I've done some similar thing with custom board, but I think you can do that thing.

Just keep in mind some advices:

- You have limited RAM and flash, so use external memory to keep datafiles (eg images).
- Keep strings (like html files) short, they are stored in your flash. Altering them with code does not solve, sorry. Maybe you can read them from file stored in SD card, but not sure of that.
- Be prepared using directly the code driving BT813 (not using EVE's code) or you'll have tons of code you'll not use. If not, you will end probably not be able tu use the web page part (no room for SSI pages)
- For web pages, use statically managed memory pools (expecially if you plan loading everything from the board) to keep under control memory usage. Doing so, UDP will be your best friend ;). Not doing so, will be your nightmare....

Array / grid managing will only be a question of math, think positions as variables (using constants makes lesser use of memory, but you can't have 110% of the pie...) depending from the previous one element.

2
Discussion - MCU / Re: FT9XX firmware update over UART?
« on: October 05, 2020, 10:53:00 AM »
I can affirm we had it done, but we have a different approach (using external EEPROM instead of directly writing in flash) with XMODEM over UART at 921kbps.
I'm sorry I can't share directly the code, but I can help you find the way if you're interested.

The function you need to write is memcpy_dat2flash()

3
General Discussion / Be aware where you install
« on: September 02, 2020, 09:58:20 AM »
Hi everybody,
I'm facing a strange, where not fancy, behaviour of the Eclipse-for-FT9xx.
And I spotted is caused by the position of libraries.
If you install your eclipse in program files (x86), you will likely have the libraries put in a path like
C:\Program Files (x86)\Bridgetek\FT9xx Toolchain\Toolchain\hardware\include

well, this is a administrative rights protected area (win 7 but every other newer) and you can be misleaded

I've imported a 2.5.0 library includes and source over a 2.3.2 library (and used git to keep the ability of switching back and forth)
But today I've stepped into the fact that what i thought it was a 2.5.0 library is "cached" somewhere and read as a 2.3.2 library.

I'm moving now the include path to see if anything changes.

4
Discussion - EVE / Re: Add code after exporting from Screen Designer
« on: June 12, 2020, 01:22:26 PM »
Hi, sorry for late reply.

I mean, the export from EVE to Eclipse generated the files I was telling about, but as far as I can understand, you are still working under EVE, so you'll never find them....
In my case, changes to every part of the screen have to be applied for each page in the <pagename>_Update() functions.
But in your case I can't help.


5
Hi Vladi,
in fact there is not a main.c, you have to find the "main" function, that lies elewhere in the code (that is Ft_Esd_Framework/Ft_Esd_app.c)
But be aware, the "while" loop in ESD architecture is part of Ft_Esd_MainLoop() in Ft_Esd_Framework/Ft_Esd_MainLoop.c
So,to integrate, I suggest creating a "init" stage just before the  Ft_Esd_MainLoop() call in Ft_Esd_app.c file, and then use the already written while loop in the other file to insert your routine.

I had some struggle in that kind of integration at first sight, but if you work with EVE and some versioning tool (a git GUI , for example), you can:
-save yout eclipse project with git;
-export your interface into the eclipse project when needed;
-revert  to the previous ( or simply not commit the new ones ) Ft_Esd_MainLoop.c and Ft_Esd_app.c
-continue editing building and so on.

My two cents.

6
Discussion - MCU / Re: RTC on FT90x revision C
« on: April 20, 2020, 10:17:40 AM »
In our environment, as we needed a 20year appliance, the battery needed to be replaced, so we used an external RTC + battery assembly. So I'm intrested if we could use an enchancement. Which supercap are you using?

7
Discussion - MCU / Re: RTC on FT90x revision C
« on: April 13, 2020, 01:44:11 PM »
Hi, Minomano, I'm following the discussion.

A supercap is indeed a good energy storage, but how long would you like this storage to last?
I understand that you are asking this to know, instead, how much autonomy you will have given the supercap you are selecting.

8
Discussion - MCU / OTP programming can be triggered unconciously?
« on: November 12, 2019, 11:14:18 AM »
Hi, I'm working on a custom board with FT900, I have a problem that seems to be like I've triggered the OneTimeProgram setup.
How can I detect if I'm in that situation?

Program is still in (so hw is good) and working, but I cannot change it anymore.
The Eclipse cannot recognize device, ftdi programmer shows a BLANK space where shall write "FT900" when abel to program.

Any help?

9
Hi qwerty100,
I faced the very same problem, but I based all exporting the EVE project, not using freeRTOS.
I've posted into  http://www.ftdicommunity.com/index.php?topic=146.msg541#msg541 , it's a "hacked" way of doing this....
Hope this helps

10
Discussion - Cleo / Re: CleO External Flash Fail
« on: March 15, 2019, 08:54:35 AM »
Hi chris,
BRT Community asks about ElectroStaticDischarge ( I think you understood, but others might not ) as you told you were on the sofa.
Maybe you were not grounded when touching the screen.
Were you working with the bare board in your hands?
How did you power the Cleo "in mobility"?

11
Discussion - MCU / Errata in examples for FT90x
« on: February 20, 2019, 01:46:57 PM »
I just wanted to sum up errors ( or, at least, not so clear statements ) in code examples.
By now, I found:

  • CAN example 3: tx.data[] is a 8 byte array, so you can't access the tx.data[8] element. In other languages, you would get an OutOfBoundException, here you read/write spurious data. Not a big deal, however can lead to strange behaviour in other codes.
  • DAC example 1: dac_start(0) with dac_mode_single starts the FIFO mechanism, thus leading to a delay in first output and a buffer delay when passing "realtime" data. DAC_write starts the dac itself, so there's no need (not to say, erroneous)  to explicitly start the DAC.

Hope you all can add your experience, thus helping refining documentation.

12
Discussion - MCU / Re: FT90x ADC & DAC section quite undocumented
« on: January 30, 2019, 04:22:34 PM »
You're right, that was the wrong line: commenting that line makes it work like a charm!
In fact, judging from this beaviour, dac_start implyes a continuous mode, thus fit needs filling the FIFO.
Say it's closed, but please make sure documentation will be expnded.
Thankyou so much!!!

13
Discussion - MCU / Re: FT90x ADC & DAC section quite undocumented
« on: January 30, 2019, 01:37:02 PM »
So, eventually we gained some light ;D ;D ;D ! ADC is now a good boy that does its work!

There is a caveat that was not so easy to understand:

In the examples should be explicit this line of code:
Code: [Select]
ADCDAC->DAC_ADC_CONF |= MASK_DAC_ADC_CONF_ADC_EXT_VREF;this enables the rail-to-rail reference.

 If not enabled, you have a 0.33V -2.97 range which still corresponds to 0x000 - 0x3ff range ( 0d - 1024d ) and leads to a "bathtube" conversion: The center corresponds (1.65V set = 1.65 read), but has an error while going up and down.
Still, in rail-to-rail, you can see the very same phenomenon, but you can see it only near 0.1V or 3.2V, where the error is more explicit.

I STRONGLY suggest to make it explicit in datasheet.

Ok, so let's see the DAC....


14
Discussion - MCU / Re: FT90x ADC & DAC section quite undocumented
« on: January 25, 2019, 01:33:28 PM »
Again, that's not enough. I have a reb B, so I will assume it has the problems with FIFO as you menitoned, ADC converter is fixed to 10bit samples, single speed.

So, let's deal with one problem a time:

DAC: single write mode does not write, it writes only after many times the loop has sent data to DAC.
Why? Seems it has to fill the FIFO buffer, but it is against what is said in datasheet (immediately written).  Maybe have I to force writes when starting to make it "responsive"? But how many writes?

ADC Op-amp? which op-amp? Ok, rev C has it removed. but in B what does it imply?

15
Discussion - MCU / FT90x ADC & DAC section quite undocumented
« on: January 22, 2019, 04:42:44 PM »
Hi Everyone,
I'm developing a custom board based upon FT902 rev B, I'm facing a little problem using ADC's.

In fact, there is little or none documentation on ADC module... but also DAC is missing some important informations

I have a BIG difference between measured (with a calibrated multimeter) and translated from MCU.
I'm using the adc_example3 from the toolchain 2.5.0 installer to get samples.

While 0 is 0 (as channels connected are almost grounded) For instance,measured 0,85V are translated into a 185/1024, which shall mean 0,59V...

In case of DAC , it has a immense delay from setting data to obtaining a real output.

Are there any specific application notes or specific infos?
Everiyhing I found is AN-324, pages 39-41 & BRT_AN_020 pages 42-45 + 223 -224, TN159 where some errata address use of buffer, but nothing else.

Pages: [1]