Quantcast
Channel: Microcontrollers
Viewing all 216564 articles
Browse latest View live

Forum Post: RE: AM2432: Can support Hyperbus PSRAM on GPMC or OSPI

$
0
0
I realize this is a Hyperbus PSRAM, DRA829 SOM has 8bit Hyperbus pSRAM connects on OSPI interface, can it also support on AM243x OSPI interfface? does it need special software driver?

Forum Post: MSP430FR5989: Determining Stack Space Usage

$
0
0
Part Number: MSP430FR5989 Tool/software: I am trying to a small function to allow me to determine how much stack space my application is using during its run time. One of the big issues I am coming across is that when I read SP/R1, the value does not make sense. It reports back >128k. When looking at all 32 bits, it displays values well in excess of 1M which is not correct for this part as it has 128KB of FRAM on board. Code snippet in question ``` uint32_t get_SP_register ( void ) { uint32_t sp_value ; // Using the `movx` instruction to handle 20-bit addressing in large memory model __asm__ _ _volatile__ ( "movx.a SP, %0" : "=r" ( sp_value ) : : "memory" ); return sp_value & 0xFFFFF ; } extern uint32_t _stack_start[]; void fill_stack_space () { uint32_t sp = get_SP_register (); uint32_t fill_size = sp - ( uint32_t )_stack_start; logger . info ( "Stack Pointer value: %lu bytes" , sp ); logger . info ( "Stack Start: %lu bytes" , ( uint32_t )_stack_start); logger . info ( "fill size: %lu bytes" , fill_size ); } ``` In my linker script ``` .stack : { . = ALIGN ( 2 ); _stack_start = . ; /* Define the start of the stack */ . += STACK_SIZE; _stack_end = . ; /* Define the end of the stack */ PROVIDE ( __stack = . ); * ( .stack ) } > HIFRAM ``` Where STACK_SIZE is equal to 40K for the sake of testing I am using the large memory model and compiling with -Os I'm not sure why the stack pointer would be off by so much but replacing the return value of the function with any known value does show my logger statements properly print out what I am returning.

Forum Post: RE: TMS320F280039C: Interrupt response and GPIO flipping time.

$
0
0
Hi Bhatt, I am assuming B in both time intervals are the same, since they are same functions called with different parameter. I set the CTR=CMPA AQ event as "setting signal high", so that I can capture the CTR=CMPA timing by looking at the rising edge of the ePWM. I captured this timing because interrupt is triggered as this point. This timing is the begging of the "ISR latency". I am measuring this using external hardware because my customer is verifying the results in the application note. they are using a different method to acquire this latency and expect it to match with the result acquired by timer counter. If the current method is somehow wrong, any idea how to measure this latency other than the method in the application note? Regards, Hang.

Forum Post: RE: MSP432E401Y: MSP432E401Y CUSTOM BOARD FLASHING ERROR

$
0
0
[quote userid="93620" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1422317/msp432e401y-msp432e401y-custom-board-flashing-error/5453136#5453136"]What JTAG header do you have? What is the purpose to short pin 9 and 10? I don't understand why you are doing that. [/quote] I'm using 10 pin JTAG header and in that 10 pin connector pin3,5 and 9 are shorted to ground. Since, in my board I didn't have a reset button, I have shorted reset pin(number 10) to pin 9 using a jumper and then I powered on board while connecting the xds 110 debug probe. Later, inorder to release reset I removed the short in power on condition.

Forum Post: RE: AM2431: BissC module not working on PRG1_PRU0

Forum Post: RE: MSP432E401Y: NETWORK DETECTION ISSUE

$
0
0
Hello Charles, [quote userid="93620" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1422336/msp432e401y-network-detection-issue/5453061#5453061"]if you have a MAC address. Where did the program stop when you run the example on your custom board?[/quote] I need one clarification. For example, I have flashed the board with tcpecho code or lwip code, does it not mean that the board is having the MAC address? And after running the program, I'm getting the garbage data like ""222౩౩౩౩-- in display uart terminal. Com port settings are: 115200, 8,N,1.

Forum Post: RE: AM263P4-Q1: PCB Stack up design

$
0
0
Hi Amit, Adding on to what Ralph said above, please do review the Hardware Design guideline what Ralph pointed out above. Most of our EVMs(like PROC159E2) are designed to demonstrate multiple peripherals on the same board for easier evaluation. For this a lot of on-board Mux and De-Mux are used. One starting point would be to start planning with which peripherals to use using Sysconfig and then remove these un-used Muxed peripherals based on your use case. This would greatly reduce the complexity of the board and especially the fanout. Few quick things with respect to PROC159E2 I can think of are below Since you are using AM263P4 with Flash in Package variant, you would not need both the OSPI and QSPI peripherals and their mux. This would greatly help with fanout. If your application does not use HSEC connector of PROC159E2, it will greatly reduce the routing complexity. Multiple muxes for I2C, UART, JTAG, ICSS might not be needed based on use case. Most of then are used for the HSEC edge connector. GPIO Expander might not be needed in all use cases since above changes would free up some GPIOs All ADCs and their Mux might not be used. Few or all of the above should help you reduce the layer count of the board. Thanks, Tejas Kulakarni

Forum Post: MSP430FR6989: Small coil not succesful for calibration and longer detection range

$
0
0
Part Number: MSP430FR6989 Tool/software: Dear Sir/Sis, I had brough the set of MSP430FR6989 LaunchPad Development Kit, also build a coil board based on the material provided by TI “TIDUAK9” app note, while during my evaluation the big coil it can be calibrated, but those 2 small coils can’t be done the calibration, i had move the jumper follow the instruction, it always waiting without report! Could you please share some of idea how could I improve it? My project is a matel detection in range around 2.5 inch, wondering if I can change coil sharp to get better performance! I have take a look on LDC coil design from web. It seems it is not suggest to make an irregular coil sharp, from my application that has the thickness limitation. BRs Henry

Forum Post: RE: LP-MSPM0G3507: IPD startup method using single shunt

$
0
0
Hello Sal, I researched about the current calculations for 3 phase systems and I still needed some clarity on the same . 1. The phase currents that are being used in the FOC algorithm , are those the peak phase currents or the average phase currents ? 2. I need to calculate the output RMS average current , the input dc current ( assuming 80% efficiency for now and PF as 1) and the peak output current . If you could please shed some light on how do I get these values from the phase currents that are being measured across the shunt resistor . Best Regards, Om Dave

Forum Post: RE: TMS570LC4357: Specific procedure to use "Core Idle" and "Flash sleep" feature together?

$
0
0
Hi Anthony, Have you tried to run your code from SRAM rather than from Flash?

Forum Post: RE: TMS320F28377S: ECAP TIME STAMP capture values are varying

$
0
0
since i am configuring using driverlib functions i didnt find the SYNCI_EN , then do I need to use the ECCTL2.SYNCI_EN register only.

Forum Post: RE: MSPM0L1306: Configuration for DataFlash and PA15 pin

$
0
0
Hi Dennis, Thank you for your support. Customer is saying that they do not need the EEPROM emulation but they want to use as usual DataFlash memory as shown on the following diagram on the bottom part. In this case, do we have another SDK that can support them? Best regards, Kenley

Forum Post: RE: LAUNCHXL-F28P65X: FreeRTOS Implementation in 65x

$
0
0
[quote userid="524707" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1421775/launchxl-f28p65x-freertos-implementation-in-65x/5454560#5454560"]Let me know if the same works for you. Also, which version of C2000Ware are you using?[/quote] Hi Arnav, I will recheck it once again with sys config and get back to you . I believe the C2000Ware version is 5.03

Forum Post: TMS320F280039: How to split DCSM Z1 and Z2 into two .hex or .out

$
0
0
Part Number: TMS320F280039 Tool/software: Dear champs, According to below thread if we need to use C2Prog to program the device with zone1 and zone2 both protected by DCSM, we need to split the code for Z1 and Z2 into separate *.hex (or *.out) files and program individually. But how to realize it? I cannot find the tool in CCS to split DCSM Z1 and Z2 into two .hex or .out. Do you have any suggestions? Thanks! https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1304060/tms320f280039-using-c2prog-when-both-zone-are-locked-by-dcsm?tisearch=e2e-sitesearch&keymatch=C2Prog%20AND%20DCSM# Juila

Forum Post: RE: AM2634: OTP Keywriter Build Failing to Boot from QSPI with MCU+ SDK 09.01

$
0
0
Hello Nilabh, initially you mentioned an OTP keywriter version 10.00. Should that already be available, or is it planned in a reasonable timeframe (e.g. next 1-2 months)? If a new keywriter became available I suppose that would be good enough. Maintaining an OpenSSL 1.1.1 installation to generate the keywriter and a 3.x installation "for aynthing else" (e.g. application signing) is not a long-term option. We found a way to sign the OTP keywriter generated with 9.1 using scripts from 9.2. As a workaround that is good enough, now I'm looking for a clean solution going forward. Regards, Dominic

Forum Post: RE: AM2432: How to update the application files of a specific core separately.

$
0
0
Hi Tushar, This understanding isn't right. I can already generate a multicore application file through a system project and boot R5_0_0, R5_1_0 and M4_0_0 with this application file. But this method uses one application file to start AM2432. Now I want to boot a single CPU with a single file. For example, boot R5_0_0 only with the R5_0_0.appimage file. I'll explain my actual needs in detail through the following three pictures: [quote userid="16414" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1422008/am2432-how-to-update-the-application-files-of-a-specific-core-separately/5450085#5450085"]You are trying to create a system project but with different files for each core. Is my understanding correct?[/quote] (1) Figure 1 gives a brief introduction to the system project provided by TI. In Figure 1, a system project can combine the “R5_0_0.appimage”, “R5_1_0.appimage” and “M4_0_0.appimage” application files into a "system.appimage" file. So we can use the “system.appimage” file to boot AM2432 normally. For example, in the SD card boot mode, put the contents of the “sbl_sd_am243x.tiimage” and “system.appimage” files into the "tiboot3.bin" and "app" files on the SD card respectively. After reconnecting the power, R5_0_0, R5_1_0 and M4_0_0 in AM2432 can boot normally. (2) Figure 2 shows my actual needs. In Figure 2, I want to boot R5_0_0, R5_1_0 and M4_0_0 in AM2432 without using the system project by loading the “R5_0_0.appimage”, “R5_1_0.appimage” and “M4_0_0.appimage” application files. For example, in the SD card boot mode, put the content of the “sbl_sd_am243x.tiimage” file into the "tiboot3.bin" file on the SD card. Then access the "R5_0_0.appimage", "R5_1_0.appimage" and "M4_0_0.appimage" files on the SD card to boot the corresponding CPUs. To achieve this need, could you provide some technical guidance? (3) To achieve the need in Figure 2, it might be necessary to modify the sbl_sd_am243x program code. Because the sbl_sd_am243x_evm project can only access the app file on the SD card separately, and can't access three files. I don't know if my research idea is correct. If there's something wrong, I hope you can point it out. Thank you very much. Regards, Weijian.

Forum Post: TMS320F280049C: need to get status for low level driver initialization

$
0
0
Part Number: TMS320F280049C Tool/software: need to get status for low level driver initialize to run my application.

Forum Post: RE: TMS320F2800137: Subfolder limit

$
0
0
Hi Baltasar, Ah alright. I was indeed thinking the same, but not sure what was causing the max path limit. Indeed when i move my project to for example C:/, everything just works fine. I now know the root cause of the problem, so i'll mark this issue as resolved. Thanks for the help!

Forum Post: RE: TMS320F2800132: When angle switch from force angle to real angle?

$
0
0
Hi, Thank you for pointing the document. I was using the one before the april 2024 revision, which did'nt include Apendix A. Apendix A include a lot of usefull infomation, including the answer I was lookin for. Thanks and regard.

Forum Post: RE: RM46L852: Mistake in the datasheet and user guide for the USB_VBUS pin.

$
0
0
Hi Jagadish, The information that you sent me is not safe if there is a risk of 5V voltage on this pin . It is true that there is a SN74CBTLV3257RGYR between MCU and USB connector. However, the V_BUS (ATTACH) signal is 5 V so is higher that the absolute maximum value of the SN74CBTLV3257RGYR (4.6 V). In addition, it is never safe to work with absolute maximum ratings of a device. However, if we consider the pin such as a current source of 20 uA ( as appears on page 23 of the datasheet ), with just this resistor we can get a signal of 3 V. It is correct? Is this the reason why Texas Instrument implemented it like this? https://lushprojects.com/circuitjs/circuitjs.html?ctz=CQAgjCAMB0l3BWcMBMcUHYMGZIA4UA2ATmIxAUgpABZsKBTAWjDACgAlcMFcQqwjT5URtKklEwEbAO4gUePPIy8wxXpl7Y2AJ3mLh+pShRCqYeHDYBLIyGzZCd7HjNRY8NaW8-feWXaazo72AQrGpoEqoQDmdnQaBjSCUFBhBi5C4bTYWmwAHuAK8oQaPCVIWUIAagD6AEIAqgDKAJIBrKr8dmDdkGxAA On the other hand, I am not using this EVB without that I am developing my PCB and I detected this bug and searched information to verify this problem. Therefore, I think that a possible solution is use a resistor divider as it was commented in the post https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/306015/external-pull-down-resistor-on-usb-vbus/1066565?tisearch=e2e-sitesearch&keymatch=%22USB_VBUS%22%20AND%20%22external%20signal%20level%20shifter%22#1066565 , but the links not work. Or using a signal level shifter such as SN74LV1T32 to pass 5 V to 3.3 V. Best regards, Francisco.
Viewing all 216564 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>