Comments (7)
p. 487
USB and CAN share a dedicated 512-byte SRAM memory for data transmission and reception, so they cannot be used concurrently (the shared SRAM is accessed through CAN and USB exclusively). USB and CAN can be used in the same application but not at the same time.
from candlelight_fw.
I have confirmed with Artery tech support that this is no longer the case and that the manual is old and out of date.
Happy to share my correspondence with Artery on this subject.
Please be advised that the CAN and USB can run concurrently with the current AT32F415 MCUs
from candlelight_fw.
you may find this helpful and i quote.
Please check below more details.
Artery and ST, they use the same USB core, so the driver is the same. DFU function is the same too. You can check below link sample codes and documents.
AT32_IAP_using_the_USB_HID Sample code and documents
https://www.arterychip.com/download/AN0007_AT32_IAP_using_the_USB_HID_EN_V1.0.2.pdf
https://www.arterychip.com/download/AN0007_AT32_IAP_using_the_USB_HID_EN_V1.0.2.zip
and some correspondence that is relevant to this...
so.... the engineer at AsiaRF spent some time with ARTERY on the phone today... As it turns out the documents they have
published on their web are for version 1.03... they are shipping v 1.3 which is much newer and...
NO LONGER LIMITS THE USE OF USB and CAN AT THE SAME TIME!
the attached data sheet specifically states that the USB Host controller now has 1280 bytes of dedicated SRAM.
so it seems that they have addressed the issue. The factory has stated that there are no issues running both interfaces
at the same time.
here is a link to additional technical resources. I have been told to look specifically at
https://www.dropbox.com/ ... available on request....
and I quote...
IC company confirmed, USB and CAN can work in the meantime. but
sorry there is no sample codes yet. please refer BSP's VCP_Loopback add on CAN function, sample code directory is below:
..\AT32F4xx_StdPeriph_Lib_V1.3.0\Project\AT_START_F415\Examples\OTG_Device\VCP_Loopback
you will find samples in the zip files in the linkabove.
from candlelight_fw.
Thanks for the info. I don't have time to work on this but wanted to clarify that point since it's the more or less well-known limitation of the F103
from candlelight_fw.
Yes... this is a VERY important issue and one that we were concerned about early on... So... spent some time researching it.
here is the pertinent description of the USB in their latest datasheet. I quote...
- CAN interface (2.0B active) with dedicated 256 bytes SRAM
- USB2.0 full-speed device/host/OTG controller with dedicated 1280 bytes SRAM, device mode supporting crystal-less
from candlelight_fw.
I am thinking that this should be a pretty straightforward project for someone familiar with the STM development tools and architecture.
from candlelight_fw.
Hello All,
as you know by now STM MCUs are in very short supply and very expensive these days if you can even find them. We have seen prices go from $1.80 -> $10 -> $29 two weeks ago and still rising.
We have been looking a replacing the STM MCUs with the Artery AT32F415. The Artery MCU as very similar in architecture to the STM units. We have been able to load the candlelight firmware onto these units but it fails to run and enumerate.
Here is a link to the Artery MCU programming guide.
https://www.arterytek.com/download/RM_AT32F415_EN_V1.03.pdf
Wondering if anyone in the community would be interested in porting Cadelight to this new platform. If so please contact me with contract terms and availabilty.
Thanks,
--luis
I think I should start selling the parts I still have on stock 🤑
from candlelight_fw.
Related Issues (20)
- RFC: cmake-presets to select included toolchain file by default ?
- tweak `atexit` to get rid of malloc HOT 2
- RFC : empty fifos + hardware mailboxes when re-enabling CAN ? HOT 6
- startup.c is broken - hardfault with large BSS HOT 8
- While loops in USB ISR HOT 7
- Feature: add support for `GS_CAN_FEATURE_GET_STATE` and `GS_CAN_FEATURE_BERR_REPORTING` HOT 5
- build warning: "_close is not implemented and will always fail" HOT 2
- Canable device hangs after desktop application crash (= stop without disonnecting) HOT 25
- cansequence tool shows wrong telegram order HOT 19
- Clear internal data structures holding unsent frames HOT 1
- Openmoko firmware upgrade , no jumper to enter DFU mode or button HOT 21
- About candlelight and Cangaroo HOT 2
- version for stm32F042C4xx? HOT 7
- No Can Frames recieved after device reset without a power cycle. candleLight Firmware. HOT 7
- CandleLight FD at 8 Mbps HOT 3
- CPU_FAMILY STM32G0B1XK vs. CPU_FAMILY STM32G0B1XE (not comprehensible for rookies) HOT 4
- Potential firmware / driver issue HOT 21
- Problem building firmware for STM32G0B1 HOT 11
- Problem ACK on tx error HOT 1
- CANable-MKS problem HOT 1
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 candlelight_fw.