Great Information... VERY Useful
↧
Forum Post: RE: Display 180 degree rotation?
↧
Forum Post: RE: Error - The Load Image Header was not found for this application.
I can share the whole project, not sure if there's a way to upload this zip files, so I've just uploaded it to OneDrive and linking it here 1drv.ms/.../s!Aoqh2etBS-wrh6lZnmJ1DYQJ-RDLOw
↧
↧
Forum Post: RE: Error - The Load Image Header was not found for this application.
Hello Mike, I've just read your original post and realised you're using IAR. IAR doesn't use .ld files (you've been applying modifications to) and instead .icf file should be modified. In order to change your image size and offset: * increase the addresses for symbols from region_VECT_start to region_FLASH_start by size of your bootloader (0x100000?). * in the code where image header is provided, replace BSP_PLACE_IN_SECTION part with @ 0x100800 (assuming your main app is offset by 0x100000 from the base of flash). IAR provides a way of specifying absolute placement which will take precedence before rules listed in the .icf file. Regards
↧
Forum Post: RE: UART Tx and Rx in RTOS project
Hello Smit Majithia, using a counting semaphore to make one thread wait until another thread finish some processing sounds like a good idea. I suggest the following adjustments in the workflow: RX thread: First receive the data, then put the semaphore. The tx_semaphore_ceiling_put service with the second parameter equal 1 might be suitable in this particular case. TX thread: Just like you wrote in your recent post: call the tx_semaphore_get service before attempting to send a piece of data. The second parameter equal TX_WAIT_FOREVER will cause this instruction to be stepped over only in case the semaphore was put (i.e. infinite time limit). Best regards, anper
↧
Forum Post: RE: How to use the functon "nx_tcp_socket_receive_notify"
Hello wangli675, after reading the documentation more carefully, I assume I was wrong - in case of using the nx_tcp_socket_receive_notify function, the nx_tcp_socket_receive function is still needed. An example workflow could be as follows: TCP thread user's function, infinite loop: wait for a counting semaphore or a flag receive the data by calling the nx_tcp_socket_receive function TCP notify callback function: increment a counting semaphore or set a flag Best regards, anper
↧
↧
Forum Post: RE: Secondary network interface does not come up if primary (Ethernet) not connected
Hi Jeremy, My last theory on the issue with the DHCP Server response was not correct. I did some additional testing and it looks like the RS9113 is not responding as expected to the transmission of the DHCP response. The laptop sends 5 DISCOVER requests and I see all of them received by the DHCP Server and responses for all are sent to the WiFi NSAL. They are all sent to the RS9113 on the SPI, but the Redpine driver never gets the transmit complete event it waits on after the transmit. I will try the latest Redpine pack today, but it may be time for me to open up a support case with the Redpine support team for this issue if that doesn't resolve the problem. We also spent a little time looking at the SPI clock issue. I changed the frequency to 20 MHz in the configurator and we took a look at the clock on a scope. We found that the SPI clock comes out at 30 MHz rather than 20 MHz and the clock edges are significantly rounded as compared to the 15 MHz configuration. This is with the pin drive set at the maximum. The rounded edges are probably OK since there should still be plenty of setup and hold time for the data, but it was unexpected. The RS9113 requires that the SPI be reconfigured to transmit data on the opposite edge above 25 MHz, so I put that on my list to try when we get back to this issue. I have attached a scope trace for the 20 MHz configuration case. thanks, pete
↧
Forum Post: RE: SKS7G2 USB bootloader - HMI app
Hi adboc and @TLHQ I have problem with the imageValidate and it shows error as SSP_ERR_INVALID_IMAGE. Can you please give solution if you have !
↧
Forum Post: RE: How to use the functon "nx_tcp_socket_receive_notify"
As a supplement to my previous post, the nx_tcp_socket_receive function can be called inside the callback function as well. It is important to call it with the 3rd parameter, wait_option, equal NX_NO_WAIT in such scenario. If any other value is used, then it will block the network interface. Using the callback function as above will give the advantage of not blocking the TCP user's thread only to wait for a packet to be received, therefore this thread can be utilised for other processing. Best regards, anper
↧
Forum Post: RE: Fatal Error[Pe035]: #error directive: "Secure builder required to compile this file" when using IarBuild.exe from command line
The issue is probably that you didn't specify the custom argument variables. In IAR they are set under the menu Tools->Configure Custom Argument Variables. The command line argument would then look like: "C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5 EWSYN\common\bin\IarBuild.exe" project.ewp -build Debug -varfile renesas.custom_argvars The resnesas.custom_argvars file needs to have the default Renesas arguments included. The contents of the argvar file are: RENESAS_SYNERGY_INSTALLDIR C:\Renesas\Synergy\ssc_v5.4.0.023_ssp_v1.3.3 RENESAS_SYNERGY_LICENSEFILE C:\Renesas\SSP_Development_and_Production_License_20180216.xml AMS_KEEP_FILE true
↧
↧
Forum Post: BootLoader + Downloader USB CDC Single Slot Flashloader Error!
Hello, Actually my whole concept is my bootloader have Bootlaoder and Downloader both with USB CDC blocking mode and i use the single slot to update the code so bootloader will donwload the code from the Renesas Flashloader Utility and then it sends the bch file to the bootloader and it downloads it and rewrite the MCU by new updated firmware I have built BootLoader + Downloader USB CDC Single Slot Flashloader, and it works perfectly for small sized bch files but for the higher sized bytes it just shows Can any one explain me and my codes are attached here within one is Bootloader+ Downloader and other is image App that i want to update in MCU. i have uploaded on google drive please find the link: code link: https://drive.google.com/open?id=1VkUYG_LOV3fqPHfhzLHHgEld-pbiecwq
↧
Forum Post: RE: Error - The Load Image Header was not found for this application.
I've updated the regions in my .icf file, and changed the struct definition to: const struct { uint8_t valid_mask; uint8_t version_number; uint16_t image_identifier; uint32_t unused[12]; } image_file_header @ 0x100800 = { (uint8_t) 0xAF, 1, 1, {0} }; Now I'm getting "Error - Valid mask in Application Header did not match the value it was supposed to be. Expected Value = 0xaf Actual Value = 0x0" If I take a look at the srec file: "S21410080000000000000000000000000000000000D3" So it looks like the struct isn't being created at the address I've defined. If I manually edit the file: "S214100800AF010001000000000000000000000000D3" Then I can create the BCH file using the Flashloader Utility, however when I try and use either that file, or any of the BCH files included in the images directory on in the Flashloader ZIP, I'm getting the error "SSP_ERR_NO_EMPTY_SLOTS" from the following line: "status = g_sf_firmware.p_api->newImagePrepare(g_sf_firmware.p_ctrl, p_header, &prepare_info);" So I've made some progress and maybe these errors are related, but still can't generate BCH files by script, and the had edited and examples included from Renesas don't actually work with the bootloader...
↧
Forum Post: RE: Error - The Load Image Header was not found for this application.
Oh, also I get a warning that "__vector_table symbol not found. e_entry values:0x00109CF0 does not match reset vector value: 0x00013BDC Initial SP_main value: 0x1FFE1000 uncertain." after moving the stuff in .icf
↧
Forum Post: RE: Error - The Load Image Header was not found for this application.
Okay, so I figured out the SSP_ERR_NO_EMPTY_SLOTS error, I had been trying a different example for the bootloader and it had the application starting at 0x040000, so once I updated it to 0x100000 to match what I was coming from the application that got around that error. That was using the BCH images that came with the Flashloader, I'm still having problems creating the BCH files.
↧
↧
Forum Post: RE: Questions about the Synergy Flash Loader Add-on
So maybe a stupid question, but how would one go about using Standby SRAM in the bootloader?
↧
Forum Post: RE: Implementing both LAN Server and Client using S7G2 with only one physical LAN connection
Hi AJ, Were you able to solve the problem? If not yet, please wait a little bit more until Synergy experts respond to your post. Thank you for waiting. JB RenesasRulz Forum Moderator https://renesasrulz.com/ https://academy.renesas.com/ https://en-us.knowledgebase.renesas.com/
↧
Forum Post: RE: FTP Server on PK board wont accept new files
Hi Larry, Please wait until Synergy experts respond to your post. Thank you for understanding. JB RenesasRulz Forum Moderator https://renesasrulz.com/ https://academy.renesas.com/ https://en-us.knowledgebase.renesas.com/
↧
Forum Post: RE: S7G2 ADC
(Please visit the site to view this file) Hi dxwak, Arjun, Please have a look at the attached project. It may be of interest. It implements the solution as detailed by dxwak, but uses some of the peripheral features that are not fully supported by the SSP. For example, the GPT timer has a dedicated Compare Match register that can generate an event to trigger the ADC. Therefore, we can use 1 GPT, rather than 2, and we do not have to worry about simultaneous starting 2 GPTs. But, as detailed by dxwak, we still use the ELC to link the GPT to the ADC. The project uses 2 DMAC channels to read the ADC results, but the DMAC's write to a single array, interleaving the results into the single array using the address offset feature. This could save processing time once all samples have been taken, as they will be in 200ns spacing in the array. Regards, Richard
↧
↧
Forum Post: How to avoid debugger always halts in "__get_ipsr_value()" during single step debugging (F10)?
Hello, I have a debugging issue when using single step debugging: during this debugging mode the debugger often stops in __get_ipsr_value() instead of jumping over the function and then debugger won't get out of __get_ipsr_value(). The only workaround I actually know is to set breakpoints at a certain line. But this is not the way of perfroming an effective development. I'm not sure but I guess this behaviour occures since I've added the source of tx or nx module, may be anyone has a hint how I can avoid or supress this behaviour? __attribute__( ( always_inline ) ) static inline unsigned int __get_ipsr_value(void) { unsigned int ipsr_value; __asm__ volatile (" MRS %0,IPSR ": "=r" (ipsr_value) ); return(ipsr_value); } Any idea or help, is very appreciated. Thanks in advance and best regards Ralph
↧
Forum Post: RE: BootLoader + Downloader USB CDC Single Slot Flashloader Error!
Hi Smit, Please wait until Synergy experts answer your question. Thank you for understanding. JB RenesasRulz Forum Moderator https://renesasrulz.com/ https://academy.renesas.com/ https://en-us.knowledgebase.renesas.com/
↧
Forum Post: RE: when malloc fails allocation, it doesn't return NULL.
Hello all It is not yet solved, Please tell me if malloc function returns a strange address instead of a Heap area. Thanks.
↧