avrxml / asf Goto Github PK
View Code? Open in Web Editor NEWmerry christmas, have some asf without registration
merry christmas, have some asf without registration
I tried this example with Arduino Due, Atmel Studio 7 and Terminal program CoolTermWin. Transmissions from terminal to controller are working, but there is no echo from controller back to terminal. Is this a bug or do I miss something here.
module->resp.read_length=module->resp.read_length*0x10+ buffer-'a';
should be
module->resp.read_length=module->resp.read_length0x10+ *buffer-'a' + 10;
In handle_received_frame_irq, it reads mpdu content from MMIO
trx_frame_read(frame_ptr, LENGTH_FIELD_LEN + phy_frame_len +
LQI_LEN);
receive_frame->mpdu = frame_ptr;
/* Add ED value at the end of the frame buffer. */
receive_frame->mpdu[phy_frame_len + LQI_LEN + ED_VAL_LEN] = ed_value;
The mpdu content is later parsed here, the first 32 bits is considered as length of the frame without any restriction. This makes frame_ptr
accessing oob memory, causing data corruption, DoS and potientially RCE.
frame_len = last_frame_length = receive_frame->mpdu[0];
...
frame_ptr = &(receive_frame->mpdu[frame_len + LQI_LEN]);
lqi = *frame_ptr++; <-- oob write
ed_level = *frame_ptr;
As all (or almost every) versions in thirdparty/wireless/avr2025_mac/source/tal/
can have the same issue, the best way to fix this might be adding length check in right before actually using the length at here.
This is discoverd by XinDistince and xdchase.
I failed to compile tc45.h/tc45.c in Atmel Studio 7.0 for XMEGA-E5.
It gives 42 errors of undeclared and unknown variables.
Disclaimer: I am new to Atmel.
where is TCC_ASYNC is defined? I can't compile because it doesn't recognize this definition. but it's already being used in other drivers!
IMO
in _http_client_handle_header()
module->req.content_length= -1;
should be
module->resp.content_length= -1;
Hi,
I am using same program, but getting following error:
-- SD/MMC/SDIO Card Example --
-- Compiled: Dec 13 2017 18:16:47 --
Please plug an SD, MMC or SDIO card in slot 1.
Card information:
SDHC
15193 MB
Card R/W test:
Read... 22260 KBps [OK]
Write pattern... 20078 KBps [OK]
Read and check pattern... Check [FAIL]
Test finished, please unplugged the card.
Please see ....Read and check pattern... Check [FAIL] test come fail.
I am running the lwmesh demo code. I found the program run into the while loop in the sys_TimerTaskHandler() in sysTimer.c
Did I mess up somewhere, or this is possible a bug?
I try to use your USB library for my ATSAM3U4E in my embedded system. I find that when I have save around 300Mbytes or more, my embedded system crash so I need to restart 2 or 3 times to finally achieve the full download. I can't figurate out why my embedded system crashes. I send you a quick view of my functions.
I create an app with Qt to download the data from the memory in my embedded system:
bool Device::usbWriteRead(t_usb_packet request, t_usb_packet response, int timeout) {
mutex.lock();
/ Send request /
if (usb_bulk_write(dev_handle, udi_vendor_ep_bulk_out, (char)request, sizeof(t_usb_packet), 10) < 0) {
mutex.unlock();
return false;
}
/ Retrieve response /
if (usb_bulk_read(dev_handle, udi_vendor_ep_bulk_in, (char)response, sizeof(t_usb_packet), timeout) < 0) {
mutex.unlock();
return false;
}
mutex.unlock();
return true;
}
My embedded system threat the bulk communication as follow:
static void usb_bulk_in_received(udd_ep_status_t status, iram_size_t nb_transfered, udd_ep_id_t ep) {
if (UDD_EP_TRANSFER_OK != status) return;
udi_vendor_bulk_out_run((uint8_t*)&usb_packet, sizeof(usb_packet), usb_bulk_out_received);
}
static void usb_bulk_out_received(udd_ep_status_t status, iram_size_t nb_transfered, udd_ep_id_t ep) {
if (UDD_EP_TRANSFER_OK != status) return;
switch (usb_packet.type) {
case USB_PACKET_TYPE_GET_DATA:
/* Return data from flash /
nand_flash_ecc_read_page(&nf_ecc, usb_packet.content.data.block, usb_packet.content.data.page, nf_data_buffer, NULL);
memcpy(&usb_packet.content.data.buffer, &nf_data_buffer[usb_packet.content.data.subpage * 512], 512);
break;
default:
break;
}
udi_vendor_bulk_in_run((uint8_t)&usb_packet, sizeof(usb_packet), usb_bulk_in_received);
}
I appreciate all the help you can give me. Thank you very much.
Jorge.
ILI9225.c
I tried to get my (china) ILI9225 working with ASF and this lib on "Arduino Due" with it's SAM3x8E controller and it's hardware SPI0.
After days of research I found, why it does not work:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.